Storage · Logical Volume Management
Reduce
Cheat sheet · https://pcornel.dk/topic.php?topic=3973
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 resizee2fsck -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 boundary | What to verify | Proof limit |
|---|---|---|
| Identity / mapping | PV, VG, LV/thin-pool identity, size, membership and activation/mapping | Object presence alone does not prove upper filesystem or lower path health |
| Allocation / capacity | VG extents, LV size, thin data + metadata usage and upper-consumer capacity | Free capacity at one layer does not prove allocation succeeds end to end |
| Failure boundary | A 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 |
| Acceptance | Healthy 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