Pcornel
Storage · Logical Volume Management

Reduce

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

Back to the Topic

Answer

Reducing a logical volume removes space from its end and destroys data unless the filesystem has been shrunk first. Shrink the filesystem, then the LV — and note that XFS cannot be shrunk at all.

Remember

  • LV reduce ≠ filesystem shrink.
  • Filesystem supports grow ≠ supports shrink.
  • Free space shown inside filesystem ≠ all high-address blocks are unused.
  • Successful LVM metadata update ≠ user data survived.

First checks

  • lvreduce -r -L 20G <vg>/<lv> — reduce with filesystem resize
  • e2fsck -f <dev> — check before shrink (ext4)
  • df -h — usage below target

Verify in this order

filesystem shrink → LV reduce

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 → Reduce 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 successful LV reduction proves LVM changed the block-device boundary; it does not prove removed blocks contained no live data or that the filesystem/application remains consistent.Correlate LVM evidence with both consumer and lower block path before recovery
AcceptanceHealthy evidence: shrink is supported, recovery is verified, upper data structures were safely reduced first, final LV size matches the validated boundary and post-change consistency plus workload checks 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=3973

Confirmation

Confirm action

Continue?