Expand Linux storage with LVM safely

8 steps · about 2 h 10 min · Intermediate

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. Inspect logical-volume attributes (reference, Linux man-pages, 12 min)

    Logical-volume type, size and origin information help prevent changes to the wrong target.

  6. Extend a logical volume deliberately (reference, Linux man-pages, 18 min)

    Read the allocation and filesystem-resize options before rehearsing a small, explicit extension.

  7. 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.

  8. 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.