LVM Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3976
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— statevgck <vg>— metadata checkvgcfgrestore --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 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 | The 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 |
| Acceptance | Healthy 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