Pcornel
Storage · Logical Volume Management

LVM Troubleshooting

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

Back to the Topic

Answer

LVM troubleshooting maps the problem from the logical volume down to its volume group, physical volumes and disks, comparing with a known-good state. Back up the LVM metadata before activating, repairing or recreating anything.

Remember

  • Missing LV ≠ automatically lost data.
  • Inactive VG/LV ≠ corrupted filesystem.
  • Missing PV path ≠ failed physical disk necessarily.
  • Recreating PV/VG metadata from guesswork ≠ recovery.

First checks

  • pvs; vgs; lvs -a — state
  • vgck <vg> — metadata check
  • vgcfgrestore --list <vg> — metadata backups

Commands

lvs -a -o lv_name,vg_name,lv_attr,lv_size,devices
Operational command for Inspect LVM logical-volume/device mapping. Focus fields: LV/VG name, attributes, size and backi…
pvs

Verify in this order

devices → PV scan → VG → LV activation

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 Troubleshooting 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 boundaryThe first failed LVM boundary narrows ownership; evidence at one layer does not prove adjacent layers or data integrity. Destructive metadata recreation, forced activation, repair or shrink must wait until identities, lower paths and recovery options are understood.Correlate LVM evidence with both consumer and lower block path before recovery
AcceptanceHealthy evidence: expected PV/VG/LV identities and mappings are complete, target devices activate correctly, lower paths are stable, thin pools have headroom and the original upper-layer workload plus read-back succeeds.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=3976

Confirmation

Confirm action

Continue?