Pcornel
Storage · Logical Volume Management

LVM Fundamentals

Cheat sheet · https://pcornel.dk/topic.php?topic=3966

Back to the Topic

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 sees
  • pvs; vgs; lvs — summary
  • cat /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 boundaryWhat to verifyProof limit
Identity / mappingPV, VG, LV/thin-pool identity, size, membership and activation/mappingObject presence alone does not prove upper filesystem or lower path health
Allocation / capacityVG extents, LV size, thin data + metadata usage and upper-consumer capacityFree capacity at one layer does not prove allocation succeeds end to end
Failure boundaryA 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?