Reduce Logical Volume
Cheat sheet · https://pcornel.dk/topic.php?topic=2764
Answer
Reducing a logical volume shrinks the filesystem first and then the LV. ext4 can shrink (offline); XFS cannot.
Remember
Back up first. Shrinking the LV before the filesystem destroys data. lvreduce -r shrinks ext4 and the LV together. For XFS, back up, recreate smaller, and restore.
First checks
pvs— physical volumesvgs— volume groups and free spacelvs -a -o +devices— logical volumes and their deviceslsblk— stack view
Commands
df -h
Verify in this order
backup → filesystem shrunk → LV shrunk to match → extents returned to the VG
Where it usually breaks
First mismatch in hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2764