paperlined.org
apps > lvm
document updated 13 years ago, on May 18, 2011

Resizing LVM PVs (physical volumes — see this diagram)

resizing root partition

If you're resizing the root VG, you have to do some extra steps beforehand:
  1. Boot into a LiveCD that has LVM support built-in.
  2. Locate and activate the LVMs.

shrinking

  1. "Defragment" the PEs (physical extents)
  2. Shrink the PV
  3. Shrink the physical partition.

expanding

  1. expand the physical partition (eg. in gparted)
  2. lvm pvresize /dev/sda1

calculating the correct partition size after shrinking

  1. lvm pvs --units s
  2. ... SEE HERE

External links