Pcornel
Storage · Filesystems

Filesystem Capacity

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

Back to the Topic

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 — space
  • du -xh --max-depth=1 / | sort -h — largest directories
  • lsof +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 boundaryWhat to verifyProof limit
Identity / attachmentFilesystem type, source/backing object, mount/attachment target and effective optionsPresence or mount state alone does not prove consistency or lower-layer health
Capacity / metadataData space, metadata/inodes, quotas/reservations and filesystem stateFree bytes at one layer do not prove allocation can succeed end to end
Failure boundaryFilesystem 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?