Pcornel
Storage · Hypervisor Storage › KVM Storage

KVM Storage Troubleshooting

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

Back to the Topic

Answer

Troubleshoot KVM storage with virsh pool-info and vol-list, qemu-img info and check for image chains and corruption, file permissions and SELinux or AppArmor labels, and the host's dmesg and libvirt logs.

Remember

  • Permissions and SELinux labels block access.
  • Backing chains break if files move.
  • Full pools pause VMs.

First checks

  • virsh pool-list --all — inactive pools
  • tail /var/log/libvirt/qemu/<vm>.log — disk errors
  • ausearch -m avc -ts recent — SELinux denials

Commands

virsh domblklist <vm> --details
Operational command for List KVM guest block-device mappings. Focus fields: device type, target, source path/volume and…
virsh pool-info
virsh vol-list
virsh dumpxml
virsh domstate
virsh domblkerror vm1
virsh resume vm01

Verify in this order

libvirt pool → backend → QEMU disk

Where it usually breaks

First mismatch in provider/pool → virtual/logical disk → host/guest mapping → partition/filesystem → mount/drive → workload; preserve identity/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=4217

Confirmation

Confirm action

Continue?