Using parted on > 2TB drives to create new partitions for LVM

On your Linux based hardware with “large” disks (>> 2TB drives to Linux) you may want to use the GNU ‘parted’ disk partition utility to create storage that’s available to the kernel & LVM.

As root run ‘parted /dev/sdX’ where X is the SAS/SATA/whatever controller’s drive as presented to the Linux kernel.

At the ‘(parted)’ prompt, enter:

mkpart primary ext3 0 -1
set 1 lvm on

Then ‘quit’ Parted to save your changes to the partition table on the relevant drive.

This creates a new partition assigned the whole drive capacity and gives it the LVM partition type, then saves those changes & exits parted.

This entry was posted in Network Presence and tagged , . Bookmark the permalink.