Use it for missing disks, read/write errors, out-of-space events, high latency, stalled I/O or inconsistent performance without jumping directly to the physical storage backend.
Storage Troubleshooting
Virtual Storage Troubleshooting isolates VM I/O failures by tracing the exact operation from guest application and filesystem through virtual device, image/provisioning and host storage layers to the backend and completion path.
1. Start with the VM state: paused on I/O error = storage full or lost.
2. Check host logs.
3. Check capacity and thin pools.
4. Check latency and paths.
5. Check guest filesystem.
guest error → host I/O → path → storage
Run representative regression I/O, verify capacity headroom and preserve before/after evidence.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show unrelated disks, paths, snapshots, VMs or failure scenarios are healthy.
Next check: Run representative regression I/O, verify capacity headroom and preserve before/after evidence.
Operational reference
Fast context before you go deeper.
pvesm statusPrimary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
problem definition → guest evidence → virtual device mapping → image/provisioning state → host/datastore/pool evidence → backend path → return/completion → application
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A disk visible in the guest does not prove reads/writes can complete.
- A datastore or pool showing online does not prove capacity, path or latency health.
- An out-of-space symptom must be localized because guest, image, datastore, thin pool and backend capacity are different boundaries.
- A performance symptom must correlate latency, IOPS and queueing over the same time window.
virsh domstate <vm> --reason— paused: I/O error?dmesg | grep -i -e 'i/o error' -e blk— host I/O errorsdf -h; lvs— space and thin pools
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
A successful check at one storage boundary shows only that boundary for the tested operation; it must not be promoted into evidence that the entire VM storage path is healthy.
When the first failing step is identified, continue in the specialist branch: guest OS/filesystem, VM Hardware, image/provisioning, Storage backend, clustering/migration or platform-specific storage.
In depth
Layer the investigation
| Layer | Question | Command (KVM/Proxmox host) |
|---|---|---|
| Guest | Is the guest file system full or erroring? | df -h, dmesg \| grep -i error in the guest |
| Virtual disk | Image healthy, chain intact, size as expected? | qemu-img info --backing-chain, qemu-img check -U |
| Storage pool | Pool online, space left? | pvesm status, virsh pool-list --details |
| Thin layer | Thin pool data/metadata usage | lvs -a -o+data_percent,metadata_percent |
| ZFS / Ceph | Pool health | zpool status -x, ceph -s |
| Physical | Disk errors, path failures | dmesg, smartctl -a, multipath -ll |
A VM paused with I/O error
# virsh domstate web01 --reason
paused (I/O error)
QEMU pauses the guest instead of passing write errors on (werror=stop), protecting guest file systems. The usual cause is a full thin pool or a full file system holding qcow2 files. Free space or extend the pool, then virsh resume web01 (qm resume 101).
Thin pool full — the dangerous one
lvs -o lv_name,data_percent,metadata_percent pve/data
data 100.00 42.10
lvextend -L +200G pve/data # needs free space in the VG
Metadata at 100 % is worse than data at 100 % and can corrupt the pool; monitor both and set thin_pool_autoextend_threshold where free VG space exists.
qcow2 image problems
The qemu-img reference documents check with repair modes and convert between formats. Leaked clusters after a host crash are harmless and fixed with qemu-img check -r leaks; real corruption calls for restoring from backup rather than -r all on the only copy — make a copy first if you try repair.
Performance-type storage problems
Latency spikes show as high await in iostat -x 1 on the host and in the guest at the same time. If only the guest is slow, look at the virtual disk configuration (cache mode, VirtIO SCSI vs IDE, iothread).
*The paused-domain state and LVM thin-pool utilization above are illustrative examples, not captured from a lab or production host.*
Method
| Symptom | Check |
|---|---|
| VM paused / I/O error | Datastore full, storage path lost |
| Slow disk in one VM | Emulated controller, IOPS limit, snapshot chain, guest-side issue |
| Slow disks in many VMs on one datastore | Array/LUN latency (DAVG), noisy neighbour, rebuild |
| Disk not growing after resize | Partition/filesystem not extended inside guest |
| Thin disk never shrinks | Discard not enabled end to end |
qm config 120; virsh domblkerror vm1
esxtop (u, v)
Get-VMHardDiskDrive vm1 | Get-VHD
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtual Storage → Storage Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/storage.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Virtual Storage → Storage Troubleshooting reference map
Fast virtual-storage boundaries for Virtual Storage → Storage Troubleshooting.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Guest | filesystem/block/error | Start boundary |
| Virtualization | controller/image/provisioning | VM boundary |
| Host | datastore/pool/path | Host boundary |
| Backend | storage service/media | Persistence boundary |