Pcornel
Virtualization · Virtualization Troubleshooting

Disk Full

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

Back to the Topic

Answer

Treat capacity as layered: guest filesystem free space → virtual disk logical size → image/snapshot allocation → datastore/thin pool → backend storage capacity/reservation.

Remember

  • Guest disk full ≠ datastore full; either layer can exhaust independently.
  • Guest free space ≠ reclaimable backend space unless discard/TRIM, image format and storage support align.
  • Thin virtual disk logical capacity ≠ physically reserved capacity.
  • Deleting a snapshot ≠ immediate free space if merge/consolidation still needs temporary capacity or has not completed.

First checks

  • df -h — in guest
  • pvesm status; lvs — host storage/thin pool
  • virsh domstate <vm> --reason — paused: ENOSPC

Commands

df -hT
Mounted filesystem capacity and type.
df -h
df -h /var/lib/libvirt/images
lvs -o+data_percent,metadata_percent
zfs list -o space
ceph df
ceph osd df
qm listsnapshot
zfs list -t snapshot

Verify in this order

guest writes → disk → host storage

Where it usually breaks

First mismatch in management intent → host/cluster capability → hypervisor runtime/task → virtual resource/device → guest state → workload-visible read-back; preserve identity/native error/pre-state before mutation.

Virtualization Troubleshooting → Disk Full troubleshooting map

BoundaryWhat to verifyEvidence limit
Symptom/scopeExact failing test, affected VM/host/cluster and incident time are definedSymptom classification does not identify root cause
Observed boundaryConfiguration, runtime and counters/logs for this Virtualization Troubleshooting → Disk Full boundary are time-correlatedOne healthy or failed status does not prove adjacent dependencies
Adjacent dependencyThe next host, storage, network, device, guest or cluster dependency is tested independentlyLocal success does not prove end-to-end health
VerificationThe original workload test succeeds after one controlled change and remains healthy in regression checksTemporary recovery alone is not durable proof

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

Confirmation

Confirm action

Continue?