Disk mount is percent% full
When a disk fills, databases stop writing and apps crash. This one is nearly there.
sudo du -xh mount --max-depth=2 2>/dev/null | sort -rh | head -n 15
Reference The 25 checks
Health check
disk
The mounted file systems in /proc/self/mounts, and the space and inodes on each.
It reads everything it needs as a normal user.
The report lists it as passed, in these words:
Disk mount is percent% full
When a disk fills, databases stop writing and apps crash. This one is nearly there.
sudo du -xh mount --max-depth=2 2>/dev/null | sort -rh | head -n 15
Disk mount has used percent% of its inodes
When inodes run out, no new file can be created even with space left. This disk is nearly there.
sudo find mount -xdev -type f | cut -d/ -f2-3 | sort | uniq -c | sort -rn | head
Disk mount is percent% full
When a disk fills, databases stop writing and apps crash.
sudo du -xh mount --max-depth=2 2>/dev/null | sort -rh | head -n 15
Disk mount has used percent% of its inodes
When inodes run out, no new file can be created even with space left. Many tiny files, such as old sessions or cache entries, cause it.
sudo find mount -xdev -type f | cut -d/ -f2-3 | sort | uniq -c | sort -rn | head