Pcornel
Storage · Logical Volume Management

Extend

Cheat sheet · https://pcornel.dk/topic.php?topic=3972

Back to the Topic

Answer

Extending a logical volume adds space to it with lvextend; the filesystem on it must then be grown too (or use lvextend -r to do both) before applications can use the new space.

Remember

  • LV extend ≠ filesystem extend.
  • VG free extents ≠ guaranteed usable application capacity until upper layers grow.
  • Online LV growth ≠ every filesystem can be grown in every state.
  • Thin-pool data growth ≠ metadata growth.

First checks

  • lvextend -r -L +10G <vg>/<lv> — extend LV and filesystem
  • xfs_growfs <mount> / resize2fs <dev> — grow filesystem
  • df -h <mount> — verify

Verify in this order

disk/PV grow → VG free → LV extend → filesystem grow

Where it usually breaks

First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.

Logical Volume Management → Extend LVM map

LVM boundaryWhat to verifyProof limit
Identity / mappingPV, VG, LV/thin-pool identity, size, membership and activation/mappingObject presence alone does not prove upper filesystem or lower path health
Allocation / capacityVG extents, LV size, thin data + metadata usage and upper-consumer capacityFree capacity at one layer does not prove allocation succeeds end to end
Failure boundaryA larger LV proves LVM allocated additional extents; it does not prove the filesystem or application can see or safely use the extra space.Correlate LVM evidence with both consumer and lower block path before recovery
AcceptanceHealthy evidence: correct target grew to intended size, VG/PV state remains healthy, upper layer recognizes the new capacity and representative writes/read-back succeed.Close only after the original workload and independent read-back/consistency check succeeds

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3972

Confirmation

Confirm action

Continue?