LVM Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=3966
Answer
A physical volume contributes allocatable extents to a volume group. Logical volumes consume extents from the VG and are presented through device-mapper as block devices. Filesystems and applications live above that abstraction and must be resized or verified separately.
Remember
- PV ≠ ordinary partition semantics; a PV is an LVM-initialized block object.
- VG ≠ filesystem.
- LV ≠ mountpoint.
- LVM metadata state ≠ user-data integrity.
First checks
lvmdiskscan— devices LVM seespvs; vgs; lvs— summarycat /etc/lvm/lvm.conf | grep -E '^\s*filter|global_filter'— device filters
Verify in this order
PV → VG → LV
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 → LVM Fundamentals 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 complete PV/VG/LV inventory proves the expected LVM objects are visible; it does not prove the upper filesystem, lower storage path or application data is healthy. | Correlate LVM evidence with both consumer and lower block path before recovery |
| Acceptance | Healthy evidence: stable PV/VG/LV identity, complete mappings, expected extent counts, active targets and successful upper-layer I/O are mutually consistent. | 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=3966