Use it when configuring, checking or troubleshooting Filesystem Capacity in Filesystems.
Filesystem Capacity
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.
1. Watch space and inode usage.
2. Deleted-but-open files keep space used.
3. Reserved blocks (ext4) and snapshots consume space.
4. Alert at 80/90 %.
5. Plan growth.
data growth → free space shrinks
Context & applicabilityCommon mistakes · platform/version boundaries
Filesystem free-space reporting shows logical allocation state at that layer, but it does not show thin backing, pool, metadata or physical capacity.
Suspicious evidence: ENOSPC with apparent free bytes, inode exhaustion, snapshots/deleted-open files retain space, thin pool/backing capacity is critical or only one capacity layer is checked.
Operational reference
Fast context before you go deeper.
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 allocation → filesystem quota/metadata/data free space → volume/pool allocation → backend physical capacity
Healthy evidence: data and metadata/inode capacity have safe headroom, quotas/reservations are understood, lower pools have backing capacity and representative allocations succeed.
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 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.
df -h— spacedu -xh --max-depth=1 / | sort -h— largest directorieslsof +L1— deleted but open files
ReferenceImportant terms & boundaries2 sections · depth on demand
Namespace and consistency
Filesystem free-space reporting shows logical allocation state at that layer, but it does not show thin backing, pool, metadata or physical capacity.
Worked example
Usable space is less than the device size: metadata, journal, reserved blocks (ext4 reserves 5 % for root by default) and, on CoW filesystems, space held by snapshots.
Worked example: a 2 TiB ext4 volume with default settings reserves ~102 GiB for root, so df shows ~1.9 TiB available to users; tune2fs -m 1 lowers the reserve to ~20 GiB.
df -hT; df -i
du -xsh /var/* | sort -h | tail
lsof +L1 # deleted files still held open
When df and du disagree, the usual causes are deleted-but-open files, files hidden under a mount point, or snapshots.
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 Filesystems → Filesystem Capacity. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/filesystems/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
Filesystems → Filesystem Capacity filesystem map
Fast namespace, metadata, capacity, attachment and verification boundaries for Filesystems → Filesystem Capacity.
| 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 |