Storage · Hypervisor Storage › KVM Storage
KVM Storage Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=4217
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 poolstail /var/log/libvirt/qemu/<vm>.log— disk errorsausearch -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-infovirsh vol-listvirsh dumpxmlvirsh domstatevirsh domblkerror vm1virsh 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