LVM Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=2767
Answer
LVM troubleshooting covers missing PVs, partial VGs, LVs not activating at boot, full snapshots and duplicate PV IDs from cloned disks.
Remember
Read the warnings of pvs/vgs first. Inactive LVs: vgchange -ay. Root on LVM not found → initramfs and root= parameter. Cloned disks with duplicate PV UUIDs need vgimportclone.
First checks
pvs— physical volumesvgs— volume groups and free spacelvs -a -o +devices— logical volumes and their deviceslsblk— stack view
Commands
pvs -apvs -o+pv_missinglvs -a -o+lv_activepvslvs -o+data_percent,metadata_percentlvs
Verify in this order
PVs present → VG complete → LVs activated → filesystems mounted
Where it usually breaks
First mismatch in hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2767