Pcornel
Storage · Storage Monitoring

Filesystem Health

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

Back to the Topic

Answer

Filesystem health monitoring checks free space and inodes, mount status, read-only remounts, journal and checksum errors, and fsck or scrub results, catching corruption and full volumes early.

Remember

  • Watch free space and inodes.
  • Read-only remounts signal errors.
  • Check scrub and fsck results.

First checks

  • dmesg | grep -i -e 'EXT4-fs error' -e 'XFS.*error' -e remount — errors
  • findmnt -o TARGET,OPTIONS | grep -w ro — read-only mounts
  • df -i — inodes

Commands

df -hT
df -i
findmnt -O ro
df -h

Verify in this order

filesystem events → log/metrics → alert

Where it usually breaks

First mismatch in workload → filesystem/volume → queue/cache → path/protocol → controller/pool → media/backend → observed completion; preserve identity/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4378

Confirmation

Confirm action

Continue?