Storage · Hypervisor Storage
KVM Storage
Cheat sheet · https://pcornel.dk/topic.php?topic=4211
Answer
KVM storage keeps VM disks as qcow2 or raw files, LVM volumes, NFS shares, iSCSI LUNs or Ceph RBD images, managed through libvirt storage pools and volumes (virsh pool-list, vol-list).
Remember
- libvirt pools hold volumes of different types.
- qcow2 is flexible, raw is fastest.
- Shared storage is needed for live migration.
First checks
virsh pool-list --all --details— poolsvirsh vol-list <pool>— volumesvirsh domblklist <vm> --details— VM disks
Commands
zfsvirsh pool-list --allvirsh vol-list <pool>virsh pool-autostart <pool>virsh pool-refresh
Verify in this order
VM disk → libvirt pool → backend
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=4211