Storage Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3519
Answer
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.
Remember
- 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.
First checks
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
Commands
pvesm status- Display configured storage availability/usage.
df -hvirsh pool-list --detailslvs -a -o+data_percent,metadata_percentzpool status -xceph -ssmartctl -amultipath -llvirsh resume web01qm resume 101
Verify in this order
guest error → host I/O → path → storage
Where it usually breaks
First mismatch in guest block/filesystem view → virtual controller/disk → hypervisor mapping → datastore/path → storage backend → durability/read-back; preserve identity/native error/pre-state before mutation.
Virtual Storage → Storage Troubleshooting reference map
| 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3519