Pcornel
Storage · Logical Volume Management

Logical Volume

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

Back to the Topic

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 — LVs
  • lvdisplay <vg>/<lv> — details
  • lvcreate -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 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 boundaryAn 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?