[ale] Xen Server adding a virtual disk to a VM

DJ-Pfulio DJPfulio at jdpfu.com
Fri Oct 14 06:23:17 EDT 2016


fdisk doesn't handle GPT partitions.
Use parted instead.

lsblk
lvs
vgs
pvs

are handy too.


On 10/13/2016 04:32 PM, Ed Cashin wrote:
> In addition to Allen Beddingfield's suggestion, if you want to ask the
> kernel itself, you can do,
> 
>   cat /proc/partitions
> 
> ... to see all the disks and their partitions, and then,
> 
>   dmesg | less
> 
> ... to show what the kernel logged to the console about the disks listed
> in /proc/partitions.  These techniques are helpful when commands are
> absent or minimal.  Kernel-provided information changes in structure
> less frequently than command-provided information as well.
> 
> 
> On Thu, Oct 13, 2016 at 4:09 PM, Scott Plante <splante at insightsys.com
> <mailto:splante at insightsys.com>> wrote:
> 
>     Hi, I actually know how to add a virtual disk to a VM, but once it's
>     added, how are you supposed to know the device name so you can
>     partition, create a filesystem, and mount it?
> 
>     I usually do this guessing-game where I do "ls /dev/xvd*" and
>     "mount|grep xvd" and try to find what's missing, but this doesn't
>     seem like the best way. Can you find out somehow from the xe command?
> 
>     Scott
> 
>  


More information about the Ale mailing list