netscrew.dev/playbooks/disk
System & Hardware

Storage Capacity, Health Thresholds & Filesystem Triage

Disk usage warning (>80%) and critical (>95%) thresholds, SSD endurance, TRIM, Linux inode exhaustion (df -i), and NTFS dirty bit recovery.

Read it offline, in your terminal:n -h disk

Disk Capacity Thresholds

Netscrew evaluates filesystem health using established storage engineering thresholds:

Special Trap: Linux Inode Exhaustion (df -i)

The Symptom:

A Linux server returns:

touch: cannot touch 'test.txt': No space left on device

Yet running df -h reports 50 GB of free space!

The Cause:

Every file, directory, and symlink on a Linux filesystem requires an inode. If millions of small zero-byte files (such as PHP session files, mail queue spools, or cache files) are generated, the filesystem can run out of inodes long before running out of disk bytes.

The Fix:

Check inode usage with df -i. Locate and delete directory trees with excessive file counts:

find /var/spool -type f | wc -l