Pcornel
Linux · LVM

LVM Troubleshooting

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

Back to the Topic

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 volumes
  • vgs — volume groups and free space
  • lvs -a -o +devices — logical volumes and their devices
  • lsblk — stack view

Commands

pvs -a
pvs -o+pv_missing
lvs -a -o+lv_active
pvs
lvs -o+data_percent,metadata_percent
lvs

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

Confirmation

Confirm action

Continue?