Storage · Logical Volume Management
Extend
Cheat sheet · https://pcornel.dk/topic.php?topic=3972
Answer
Extending a logical volume adds space to it with lvextend; the filesystem on it must then be grown too (or use lvextend -r to do both) before applications can use the new space.
Remember
- LV extend ≠ filesystem extend.
- VG free extents ≠ guaranteed usable application capacity until upper layers grow.
- Online LV growth ≠ every filesystem can be grown in every state.
- Thin-pool data growth ≠ metadata growth.
First checks
lvextend -r -L +10G <vg>/<lv>— extend LV and filesystemxfs_growfs <mount> / resize2fs <dev>— grow filesystemdf -h <mount>— verify
Verify in this order
disk/PV grow → VG free → LV extend → filesystem grow
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 → Extend 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 larger LV proves LVM allocated additional extents; it does not prove the filesystem or application can see or safely use the extra space. | Correlate LVM evidence with both consumer and lower block path before recovery |
| Acceptance | Healthy evidence: correct target grew to intended size, VG/PV state remains healthy, upper layer recognizes the new capacity and representative writes/read-back succeed. | 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=3972