Use it when the symptom is “Disk Full”: work through the layers in order and stop at the first one that fails.
Disk Full
Treat capacity as layered: guest filesystem free space → virtual disk logical size → image/snapshot allocation → datastore/thin pool → backend storage capacity/reservation.
1. Disk full: guest filesystem or host storage?
2. Host full pauses VMs (I/O error).
3. Free space: delete snapshots, old images, move disks.
4. Then resume VMs.
5. Add alerts.
guest writes → disk → host storage
Context & applicabilityCommon mistakes · platform/version boundaries
A “disk full” symptom is ambiguous until the exhausted layer is identified; free space at one layer does not show capacity at the next.
Operational reference
Fast context before you go deeper.
df -hTPrimary 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
Guest filesystem → virtual disk logical allocation → image/snapshot chain → datastore/thin pool → backend capacity → write completion
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.
- 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.
df -h— in guestpvesm status; lvs— host storage/thin poolvirsh domstate <vm> --reason— paused: ENOSPC
ReferenceHow it works1 section · depth on demand
How it works
Path: Virtualization → Virtualization Troubleshooting → Disk Full. Local intent: Disk Full distinguishes guest filesystem exhaustion from virtual-disk limits, snapshot growth, thin-provisioning exhaustion and datastore or storage-pool capacity problems.
ReferenceImportant terms & boundaries3 sections · depth on demand
What this shows and what it does not
A “disk full” symptom is ambiguous until the exhausted layer is identified; free space at one layer does not show capacity at the next.
In depth
Which "disk" is full?
| Layer | Check | Full means |
|---|---|---|
| Guest file system | df -h / Explorer | Application errors inside the VM |
| Virtual disk | qemu-img info virtual size | Guest cannot grow beyond it |
| Image file storage (qcow2 on ext4/xfs/NFS) | df -h /var/lib/libvirt/images | Images cannot grow → VMs pause with I/O error |
| Thin pool (LVM-thin) | lvs -o+data_percent,metadata_percent | All thin VMs on the pool pause |
| ZFS pool | zfs list -o space | Writes fail; ZFS needs free space to operate well (keep < 80 %) |
| Ceph | ceph df, ceph osd df | At full ratio writes stop for the pool |
Virtual size vs. allocated size
$ qemu-img info web01.qcow2
virtual size: 100 GiB (107374182400 bytes)
disk size: 61.3 GiB
The qemu-img documentation describes info reporting both. Thin images only consume what was written; the sum of virtual sizes on a datastore can exceed its capacity (over-provisioning) — safe only with monitoring.
Reclaim space with discard/TRIM
Deleted files inside the guest stay allocated on thin storage unless discard reaches it:
| Step | Configuration |
|---|---|
| Virtual disk passes discard | Proxmox discard=on (VirtIO SCSI), libvirt <driver discard='unmap'/> |
| Guest sends TRIM | Linux fstrim -av (or fstrim.timer), Windows Optimize Drives |
| Storage supports it | LVM-thin, ZFS, Ceph RBD, qcow2 — yes |
Growing a guest disk safely
qm resize 101 scsi0 +20G # Proxmox
virsh blockresize web01 vda 120G # libvirt (live)
# then inside the guest: growpart /dev/sda 1 && resize2fs /dev/sda1 (or xfs_growfs /)
Shrinking is not symmetrical — it requires shrinking the file system first and is risky; prefer creating a new smaller disk and copying.
Snapshots and backups consume space too
Old snapshots and local backup archives are the most common surprise consumers — check qm listsnapshot, zfs list -t snapshot and /var/lib/vz/dump before buying disks.
*The virtual disk size and expansion commands above are illustrative examples, not captured from a lab or production host.*
Method
Disk full — two different problems:
| Where full | Effect | Fix |
|---|---|---|
| Inside the guest filesystem | App errors, guest OS issues | Clean up or grow the virtual disk, then partition/filesystem |
| Datastore / storage pool | VMs paused (I/O error, Paused-Critical), snapshots fail | Free space: delete old snapshots/VMs/ISOs, migrate VMs, grow storage |
# grow a disk end to end
qm resize 120 scsi0 +20G
# in Linux guest:
growpart /dev/sda 2; resize2fs /dev/sda2 # or xfs_growfs /
# Windows guest:
Resize-Partition -DriveLetter C -Size (Get-PartitionSupportedSize -DriveLetter C).SizeMax
A VM with snapshots may not allow disk resize until snapshots are removed (VMware, Hyper-V).
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 Virtualization Troubleshooting → Disk Full. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/docs.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
Virtualization Troubleshooting → Disk Full troubleshooting map
Fast fault-isolation boundaries and proof limits for Virtualization Troubleshooting → Disk Full.
| Boundary | What to verify | Evidence limit |
|---|---|---|
| Symptom/scope | Exact failing test, affected VM/host/cluster and incident time are defined | Symptom classification does not identify root cause |
| Observed boundary | Configuration, runtime and counters/logs for this Virtualization Troubleshooting → Disk Full boundary are time-correlated | One healthy or failed status does not prove adjacent dependencies |
| Adjacent dependency | The next host, storage, network, device, guest or cluster dependency is tested independently | Local success does not prove end-to-end health |
| Verification | The original workload test succeeds after one controlled change and remains healthy in regression checks | Temporary recovery alone is not durable proof |