Skip to content

LVM

pvcreate Failed due to Existing Partitions

The pvcreate command on an entire disk may fail due to existing partitions. In this case, wiping the whole disk may be an effective solution:

wipefs --all --backup /dev/sda

Resize Filesystem After LVM Configuration

LVM operations, such as increasing or decreasing size, may not affect your mounted filesystems.

We use resize2fs to remount filesystems:

resize2fs /path/to/your/logic-volume