android bsd linux unix & open-source world


Linux: How to shrink a Logical Volume with LVM

LVM is a logical volume manager for the Linux kernel. It manages disk drives and similar mass-storage devices, in particular large ones. The term "volume" refers to a disk drive or partition thereof. LVM was originally written in 1998 by Heinz Mauelshagen, who based its design on that of the LVM in HP-UX.

The LVM can:
- Resize logical volumes (LV) online by concatenating extents onto them or truncating extents from them.
- Create read-only snapshots of logical volumes (LVM1).
- Create read-write snapshots of logical volumes (LVM2).
- Stripe whole or parts of logical volumes across multiple PVs, in a fashion similar to RAID 0.
- Mirror whole or parts of logical volumes, in a fashion similar to RAID 1.
- Move online logical volumes between PVs.

In this article I'll show you how to shrink a LVM Volume Safely.

Print This Post Print This Post