Resize
Cheat sheet · https://pcornel.dk/topic.php?topic=3974
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 bothpvresize /dev/sdX— after disk grewlsblk— sizes at each layer
Commands
df -hlvs
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 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 | Matching 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 |
| Acceptance | Healthy 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