Use it when the symptom is “Filesystem Full”: work through the layers in order and stop at the first one that fails.
Filesystem Full
Capacity is layered: filesystem free blocks/inodes/metadata → logical volume size → thin allocation/snapshot overhead → pool/datastore → physical backend capacity.
1. Find what grew: logs, dumps, backups, snapshots.
2. Deleted-but-open files hold space — restart the process.
3. Snapshots consume space.
4. Free space safely; don't delete unknown files.
5. Add alerts and fix growth.
growth → full → free space → prevent
Context & applicabilityCommon mistakes · platform/version boundaries
A filesystem ENOSPC/full condition shows allocation failed at that filesystem boundary, but it does not show the underlying storage pool is physically full.
Suspicious evidence includes 100% blocks or inodes, metadata exhaustion, open-deleted files, runaway snapshots or a lower thin/backend pool near exhaustion.
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
Application path → filesystem allocation/inodes/metadata → volume → thin/snapshot layer → pool/datastore → physical capacity → write completion
Healthy evidence shows sufficient filesystem blocks/inodes/metadata and successful original writes without same-window lower-layer capacity errors.
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.
- Filesystem full ≠ underlying disk or pool full.
- Free bytes ≠ free inodes or metadata.
- Deleting files ≠ immediate backend reclamation when open files, snapshots, CoW or discard behavior retain blocks.
- Extending an LV/disk ≠ filesystem automatically grows.
df -h <mount>— fulldu -xh --max-depth=1 <mount> | sort -h | tail— largest dirslsof +L1— deleted open files
ReferenceImportant terms & boundaries3 sections · depth on demand
Scope and what the checks show
A filesystem ENOSPC/full condition shows allocation failed at that filesystem boundary, but it does not show the underlying storage pool is physically full.
In depth
Blocks, inodes or a deleted-but-open file
"No space left on device" has three common causes, and df distinguishes the first two.
# df -hT /var
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda3 ext4 40G 38G 0 100% /var
# df -i /var
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda3 2621440 412337 2209103 16% /var
# du -xh --max-depth=1 /var | sort -h | tail
# lsof +L1 | head
df(1) documents -h (human-readable), -i (inode counts), -T (file system type) and --output= for chosen columns.
Interpretation
| Observation | Cause |
|---|---|
Use% 100 % | Blocks exhausted |
IUse% 100 %, blocks free | Too many small files (mail spools, session files, caches) |
df full, du much smaller | Deleted files still held open (lsof +L1), or data hidden under a mount point |
Avail 0 while Used < Size | ext4 reserved blocks for root |
Recover safely
1. Find the growth: du -xh --max-depth=1 from the mount point down.
2. Truncate logs that are still open instead of deleting them: : > /var/log/app.log.
3. Restart the process holding a deleted file to release the space.
4. Expand the volume if growth is legitimate (lvextend -r).
Prevent recurrence
Alert on both block and inode usage, keep logs under rotation, and put fast-growing data (/var/lib/docker, databases, backups) on its own file system so it cannot fill /.
*The df block and inode figures illustrate capacity exhaustion with available inodes, not measurements from a mounted volume.*
Method
When a filesystem is full, find what grew and whether space is really free:
df -hT /var; df -i /var
du -xh --max-depth=1 /var | sort -h | tail
find /var -xdev -type f -size +1G -exec ls -lh {} \;
lsof +L1 | sort -k7 -n | tail # deleted files still open
journalctl --disk-usage; journalctl --vacuum-size=1G
Windows: Get-PSDrive C, TreeSize/WinDirStat, vssadmin list shadowstorage, Dism /Online /Cleanup-Image /StartComponentCleanup.
Common culprits: logs without rotation, core dumps, container images and volumes (docker system df), package caches, snapshots on CoW filesystems, backups written to the wrong mount. After freeing space, fix the cause (rotation, quota, alert at 80 %).
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 Storage Troubleshooting → Filesystem Full. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/block/index.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
Storage Troubleshooting → Filesystem Full proof map
Fast scope, dependency, failure-boundary and acceptance checks for Storage Troubleshooting → Filesystem Full.
| Troubleshooting boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | Application path → filesystem allocation/inodes/metadata → volume → thin/snapshot layer → pool/datastore → physical capacity → write completion | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | A filesystem ENOSPC/full condition proves allocation failed at that filesystem boundary; it does not prove the underlying storage pool is physically full. | Correlate evidence for the same operation and timestamps |
| Acceptance | Healthy evidence shows sufficient filesystem blocks/inodes/metadata and successful original writes without same-window lower-layer capacity errors. | Close only after the original workload/recovery test and regression check |