Chapter 18: Logical volume management
Build storage with LVM, grow and shrink volumes online, replace disks without downtime, and diagnose common LVM problems.
What you will learn
- Describe physical volumes, volume groups and logical volumes, and create and inspect them.
- Extend logical volumes and their file systems, add disks to a group, and shrink ext4 safely.
- Move data between disks with pvmove, rename and remove volumes, and make LVM mounts and swap permanent.
- Diagnose inactive volumes, full groups, busy volumes and missing devices.
Sections
- Logical volumes: why and how
- Exercise: Build your first volume group
- Growing and shrinking volumes
- Exercise: Grow and shrink volumes
- Replacing disks and everyday maintenance
- Exercise: Move data to a new disk
- When LVM does not behave
- Exercise: Fix three LVM problems
- Exercise: LVM review
- LVM quiz
- LVM cheat sheet