Use it when the storage question has been narrowed to Logical Volume Management → Reduce. Map the upper consumer through LV/VG/PV to the backing block path, separate allocation state from filesystem/data state, and preserve metadata plus recovery options before destructive changes.
Reduce
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.
1. Reducing is risky: shrink filesystem first (ext4 only; XFS cannot shrink).
2. -r handles ext4 safely.
3. Unmount for ext4 shrink.
4. Back up first.
5. Verify integrity after.
filesystem shrink → LV reduce
Context & applicabilityCommon mistakes · platform/version boundaries
A successful LV reduction shows LVM changed the block-device boundary, but it does not show removed blocks contained no live data or that the filesystem/application remains consistent.
Suspicious evidence: LV is reduced before filesystem, unsupported filesystem shrink is assumed, recovery copy is absent, size arithmetic is ambiguous or only LVM command success is checked.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
recovery evidence → consumer shrink capability → upper-layer shrink/relocation → verified boundary → LV reduce → reactivation/mount → workload verification
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.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
lvreduce -r -L 20G <vg>/<lv>— reduce with filesystem resizee2fsck -f <dev>— check before shrink (ext4)df -h— usage below target
ReferenceImportant terms & boundaries3 sections · depth on demand
Allocation
A successful LV reduction shows LVM changed the block-device boundary, but it does not show removed blocks contained no live data or that the filesystem/application remains consistent.
Reduce owns LVM-side contraction safety. Filesystems and applications own whether/how their data structures can shrink. Backup/DR owns recovery protection.
In depth
Shrinking is the risky direction
lvreduce(8) warns that data in the reduced area is lost, and that any file system on the LV must be resized before the LV is reduced. Using -r / --resizefs lets fsadm shrink the file system and the LV together in the correct order.
# umount /srv
# e2fsck -f /dev/vg0/data
# lvreduce -r -L 80G vg0/data
Do you want to unmount "/srv" ? [Y|n] y
resize2fs 1.47.0 (5-Feb-2023)
Resizing the filesystem on /dev/mapper/vg0-data to 20971520 (4k) blocks.
Size of logical volume vg0/data changed from 120.00 GiB to 80.00 GiB.
# mount /srv && df -h /srv
Sizes are rounded to whole extents, and striped segments must be multiples of the stripe count.
File system support
| File system | Shrink? |
|---|---|
| ext2/3/4 | Yes, offline (unmounted) |
| XFS | No — XFS cannot be shrunk; back up, recreate smaller, restore |
| Btrfs | Yes, online |
| swap | Recreate with mkswap after resizing |
Safe procedure
1. Take a verified backup or an LVM snapshot that is kept outside the shrinking range.
2. Check used space: the target must be larger than the data plus headroom.
3. Unmount and run e2fsck -f (ext4).
4. lvreduce -r -L <size> vg/lv — never lvreduce without -r on an LV with a file system unless the file system was already shrunk below the target.
5. Mount and verify data.
Usual reason to shrink
Freeing space for another LV. Often the safer alternative is adding a PV to the VG, or moving data with pvmove and then removing a disk.
*The ext4 resize transcript illustrates shrinking a volume offline; no actual filesystem was modified.*
Method
Shrinking is risky: the filesystem must be shrunk before the LV, otherwise the LV cuts off live data. XFS cannot shrink at all.
umount /data
e2fsck -f /dev/vg_data/lv_app
lvreduce -r -L 150G vg_data/lv_app # -r shrinks ext4 first, then the LV
mount /data
Back up first, never shrink below used space plus margin, and for XFS the only path is create a smaller LV, copy the data (xfsdump/rsync) and switch.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Logical Volume Management → Reduce. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/configuring_and_managing_logical_volumes/index · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Logical Volume Management → Reduce LVM map
Fast identity, allocation, capacity and proof boundaries for Logical Volume Management → Reduce.
| 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 |