I was following this tutorial found here: How to set up multiple hard drives as one volume?
Which was working out great however i have a 3TB drive and every time i create the partition (whether it be via fdisk or gparted), after i start creating the volumes in LVM, my partition is re-sized to 2TB and the partition table becomes msdos which doesn't allow me to create any more partitions or to extend the current partition.
Is there a way that i can get a 3TB drive working with LVM?
Thanks,
Adam
Best Answer
It seems that by creating a partition to use as a physical volume in LVM, we're limited to a 2TB volume size. This is due to the limitations in the legacy MSDOS partition table system managed by
fdisk
and why one should use GPT.Fortunately, LVM also understands plain devices without a partition table. This has the drawback that you'll have to use the whole device as physical volume, but that's exactly what I want to achieve.
To erase the current partition table execute the following command (Warning: this effectively erases all contents on the disk!):
replacing
PhysicalVolume
with your device path, e.g./dev/sdb
. Then runto let the kernel re-read the new now non-existing partition table.
Now actually format it as an LVM physical volume:
(again, replace
PhysicalVolume
with your device path)This is based on the information mentioned in the manpage of
pvcreate
: