Pcornel
Storage

Filesystems

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

Back to the Topic

Answer

A filesystem maps application-visible paths and file metadata onto logical storage blocks or objects. Correct operation depends on the underlying volume/device, filesystem metadata, mount/attachment state, available data and metadata capacity, and implementation-specific consistency mechanisms.

Remember

  • Filesystem ≠ partition or volume.
  • Mounted/attached ≠ healthy or writable.
  • Free bytes ≠ free metadata/inodes.
  • Filesystem consistency ≠ backup or application consistency.

First checks

  • df -hT — usage per filesystem
  • df -i — inode usage
  • findmnt -o TARGET,FSTYPE,OPTIONS — mount options

Commands

findmnt
Read current Filesystems state for a bounded verification step.
lsblk
df -hT
df -i

Verify in this order

files → filesystem → volume

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 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 boundaryA mounted and readable filesystem proves namespace access for tested paths at that moment; it does not prove metadata consistency everywhere, writable capacity, lower-layer health, backup coverage or application-level correctness.Correlate filesystem evidence with the backing volume/path/backend before repair
AcceptanceHealthy evidence: expected filesystem type and backing object are present, mount/attachment state is correct, metadata and data capacity are available, representative reads/writes succeed and no relevant consistency errors are observed.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=396

Confirmation

Confirm action

Continue?