I've got a RAID 10 arrays on a couple of KVM host machines. The RAID 10 array is one big
VG. I usually create a small
LV for guest disk image storage then the rest of the
VG I carve out as
LVs to add additional disks to guests.
Within these guests I usually run
fdisk on the newly added device and create a single partition using 100% of the added drive, then run
pvcreate on the partition rather than the device.
pvcreate /dev/vdb1 vs
I realise that
LVM itself operates perfectly normally when creating a
PV from full devices rather than partitions. But my habit has always been to partition first.
Can anyone see any downsides to using a non-partitioned drive in my particular scenario?
Any further disks that I add to guests are going to either expand an already existing data logical volume, or to create an additional data partition. I usually leave root/boot alone and just add additional data storage under existing/new mount points.
The advantage of using a non-partitioned drive within my guest is that I don't have to bother partitioning it with
fdisk first. Though I realise this probably only saves about 1 minute of time.
Does this have any effects on the potential recovery of data, e.g. being able to access the guest's logical volume from outside the guest in case of VM failure.
Or being able to attach the LVs carved out of the host as additional drives on new VMs in a rebuild scenario?