Expand Linux storage with LVM safely
8 steps · about 2 h 10 min · Intermediate
- Map disks partitions and filesystems (reference, Linux man-pages, 20 min)
Begin by separating the block-device layers so later capacity changes target the correct object.
- Understand the LVM storage model (reference, Linux man-pages, 18 min)
Physical volumes, volume groups and logical volumes form the vocabulary for every safe LVM operation.
- Inventory physical volumes (reference, Linux man-pages, 12 min)
A concise inventory reveals which devices already belong to LVM and how much space remains available.
- Check volume-group capacity (reference, Linux man-pages, 12 min)
Volume-group free extents determine whether a logical volume can grow without adding another disk.
- Inspect logical-volume attributes (reference, Linux man-pages, 12 min)
Logical-volume type, size and origin information help prevent changes to the wrong target.
- Extend a logical volume deliberately (reference, Linux man-pages, 18 min)
Read the allocation and filesystem-resize options before rehearsing a small, explicit extension.
- Grow and verify an ext4 filesystem (reference, Linux man-pages, 20 min)
Adding blocks to a volume does not make them usable until the filesystem layer is expanded and checked.
- Use snapshots for a bounded operation (reference, Linux man-pages, 18 min)
Snapshot options and limits show how to create temporary rollback space without mistaking it for a backup.