Filesystem Capacity
Cheat sheet · https://pcornel.dk/topic.php?topic=3963
Answer
Capacity seen by a filesystem is only one layer of storage capacity. Logical free bytes can differ from pool/backend free space, and metadata structures, inodes, reservations, quotas or CoW allocation rules can cause allocation failure before nominal byte capacity reaches zero.
Remember
- Filesystem free space ≠ backend free space.
- Free bytes ≠ free inodes/metadata.
- Thin-provisioned logical free ≠ physical backing free.
- Deleted file ≠ immediately reclaimed space in every case.
First checks
df -h— spacedu -xh --max-depth=1 / | sort -h— largest directorieslsof +L1— deleted but open files
Verify in this order
data growth → free space shrinks
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Filesystems → Filesystem Capacity filesystem map
| Filesystem boundary | What to verify | Proof limit |
|---|---|---|
| Identity / attachment | Filesystem type, source/backing object, mount/attachment target and effective options | Presence or mount state alone does not prove consistency or lower-layer health |
| Capacity / metadata | Data space, metadata/inodes, quotas/reservations and filesystem state | Free bytes at one layer do not prove allocation can succeed end to end |
| Failure boundary | Filesystem free-space reporting proves logical allocation state at that layer; it does not prove thin backing, pool, metadata or physical capacity. | Correlate filesystem evidence with the backing volume/path/backend before repair |
| Acceptance | Healthy evidence: data and metadata/inode capacity have safe headroom, quotas/reservations are understood, lower pools have backing capacity and representative allocations succeed. | Close only after the original path/workload and read-back check succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3963