Pcornel
Virtualization · Virtual Storage

Storage Troubleshooting

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

Back to the Topic

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 errors
  • df -h; lvs — space and thin pools

Commands

pvesm status
Display configured storage availability/usage.
df -h
virsh pool-list --details
lvs -a -o+data_percent,metadata_percent
zpool status -x
ceph -s
smartctl -a
multipath -ll
virsh resume web01
qm 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

BoundaryMeaningEvidence limit
Guestfilesystem/block/errorStart boundary
Virtualizationcontroller/image/provisioningVM boundary
Hostdatastore/pool/pathHost boundary
Backendstorage service/mediaPersistence boundary

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3519

Confirmation

Confirm action

Continue?