Use it when the storage question has been narrowed to Logical Volume Management → LVM Troubleshooting. Map the upper consumer through LV/VG/PV to the backing block path, separate allocation state from filesystem/data state, and preserve metadata plus recovery options before destructive changes.
LVM Troubleshooting
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.
1. Problems: missing PV, full thin pool, duplicate PVs (multipath), activation failures.
2. Check filters.
3. Restore metadata from /etc/lvm/archive carefully.
4. vgchange -ay to activate.
5. Never pvcreate over an existing PV.
devices → PV scan → VG → LV activation
Context & applicabilityCommon mistakes · platform/version boundaries
Suspicious evidence: partial VG, unknown PV, duplicate identity, inactive LV, thin metadata/data pressure, stale lower path, forced activation, metadata recreation without backups or multiple simultaneous changes.
Operational reference
Fast context before you go deeper.
lvs -a -o lv_name,vg_name,lv_attr,lv_size,devicesPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
symptom/time → consumer/filesystem → LV/device-mapper → VG metadata/extents → PV identity → block path/media → minimal change → original-test verification
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.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Missing LV ≠ automatically lost data.
- Inactive VG/LV ≠ corrupted filesystem.
- Missing PV path ≠ failed physical disk necessarily.
- Recreating PV/VG metadata from guesswork ≠ recovery.
pvs; vgs; lvs -a— statevgck <vg>— metadata checkvgcfgrestore --list <vg>— metadata backups
ReferenceImportant terms & boundaries3 sections · depth on demand
Allocation
The first failed LVM boundary narrows ownership; evidence at one layer does not show adjacent layers or data integrity. Destructive metadata recreation, forced activation, repair or shrink must wait until identities, lower paths and recovery options are understood.
In depth
Work from physical volumes up to logical volumes
lvm(8) names the configuration files /etc/lvm/lvm.conf and lvmlocal.conf. It also lists the devices-file tools (lvmdevices, vgimportdevices), metadata backup and restore (vgcfgbackup/vgcfgrestore), and -vvvv debug output.
# pvs -o +pv_uuid,devices
# vgs -o +vg_missing_pv_count
VG #PV #LV #SN Attr VSize VFree #PVMissing
vg0 2 4 0 wz-pn- <1.82t 120.00g 1
# lvs -a -o +devices,lv_health_status
# lvmdevices # devices file in use? which PVs are listed
# vgchange -ay vg0
Symptom table
| Symptom | Likely cause | Action |
|---|---|---|
| VG not found after moving disks or cloning a VM | Devices file does not list the new PV | vgimportdevices vg0 or lvmdevices --adddev /dev/sdX |
Couldn't find device with uuid | PV missing (disk failed or not attached) | Reattach; vgreduce --removemissing only if the data is gone |
WARNING: Not using device ... duplicate PV | Multipath members or cloned disks seen twice | Filter to multipath devices; change the clone's UUIDs (vgimportclone) |
| LV inactive after boot | VG not activated (initramfs or filter) | vgchange -ay, rebuild the initramfs |
Insufficient free space | VG full | vgextend, or shrink another LV |
| Metadata damaged | Interrupted change, disk error | vgcfgrestore -l vg0 to list backups, then restore |
Metadata backups
LVM writes metadata backups and archives under /etc/lvm/. Before a risky change, run vgcfgbackup and keep a copy off the system. vgcfgrestore restores the metadata only, not the data.
Debug
Add -vvvv to any LVM command to see device scanning and filtering decisions. That is the quickest way to learn why a disk is ignored.
Illustrative example (not a system capture).
Method
| Symptom | Check / fix |
|---|---|
| VG or LV missing after boot | pvscan --cache, vgchange -ay, missing PV (pvs shows [unknown]) |
Couldn't find device with uuid | Disk missing or renamed; vgchange -ay --activationmode partial only to rescue data |
| Thin pool 100 % | lvextend -L +X vg/pool0, lvextend --poolmetadatasize +1G for metadata |
| Duplicate PV warnings | Same LUN seen via several paths — set filter/use multipath devices |
| Metadata damaged | vgcfgrestore -l vg to list backups, then restore |
lvs -a -o +devices,lv_health_status
journalctl -b | grep -i lvm
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Logical Volume Management → LVM Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/configuring_and_managing_logical_volumes/index · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Logical Volume Management → LVM Troubleshooting LVM map
Fast identity, allocation, capacity and proof boundaries for Logical Volume Management → LVM Troubleshooting.
| 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 |