Skip to content

LVM

pvcreate Failed due to Existing Partitions

pvcreate command on an entir disk may fail due to existing partitions. In this way, wipe out the whole disk may be an effective solution:

wipefs --all --backup /dev/sda

Resize Filesystem After LVM Configuration

LVM operations, such asincrease or decrease size, may not effect your mounted filesystems.

We use resize2fs to remount filesystems:

resize2fs /path/to/your/logic-volume