Pcornel
Storage · Logical Volume Management

Resize

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

Back to the Topic

Answer

Growing normally requires LVM capacity plus upper-layer expansion; shrinking is stricter and may require offline operation, prior filesystem shrink or may be unsupported entirely. The safe order depends on direction and consumer semantics.

Remember

  • Resize direction matters.
  • Block-device resize ≠ filesystem resize.
  • Online resize support is implementation-specific.
  • Automatic combined resize ≠ permission to skip recovery and verification.

First checks

  • lvresize -r -L <size> <vg>/<lv> — resize both
  • pvresize /dev/sdX — after disk grew
  • lsblk — sizes at each layer

Commands

df -h
lvs

Verify in this order

disk → partition → PV → LV → filesystem

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 → Resize 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 boundaryMatching reported sizes after resize prove configuration convergence across measured layers; they do not by themselves prove data integrity, performance or recoverability.Correlate LVM evidence with both consumer and lower block path before recovery
AcceptanceHealthy evidence: pre/post sizes are reconciled across LV and consumer, supported ordering was followed, lower storage stayed healthy and consistency plus representative workload tests pass.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=3974

Confirmation

Confirm action

Continue?