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

Resizing LVs (logical volumes — see this diagram)

resizing root partition

If you're resizing the root partition, 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.

resizing non-root partition

Just unmount first.

shrinking

To shrink, you must first resize the internal filesystem, and then shrink the LVM.
  1. Shrink the filesystem. Depending on your filesystem type, use one of:
  2. Shrink the LVM.

expanding

To expand, you must first expand the LVM, and then resize the internal filesystem.
  1. Expand the LVM.
  2. Expand the filesystem.

calculating the size

This is where you can really shoot yourself in the foot. If you tell the filesystem it has more space than the LVM eventually has, then your filesystem will be corrupt.

External links