Storage · Logical Volume Management
Logical Volume
Cheat sheet · https://pcornel.dk/topic.php?topic=3969
Answer
An LV provides a logical block address space independent of physical device placement. Its configured size and active mapping are separate from filesystem size, used data, performance and protection of the backing PVs.
Remember
- LV size ≠ filesystem size.
- LV active ≠ filesystem mounted.
- LV visible ≠ application healthy.
- LV placement ≠ automatic redundancy.
First checks
lvs -o +lv_size,devices— LVslvdisplay <vg>/<lv>— detailslvcreate -L 20G -n data <vg>— create
Verify in this order
VG extents → 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 → Logical Volume 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 | An active LV proves the device-mapper target is assembled; it does not prove the filesystem recognizes the same size, data is intact or lower storage is fault-free. | Correlate LVM evidence with both consumer and lower block path before recovery |
| Acceptance | Healthy evidence: intended LV is active with correct size/mapping, its VG/PVs are complete and representative upper-layer I/O succeeds with expected capacity. | 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=3969