Bytes vs inodes
df -h shows bytes; df -i shows inodes. A filesystem can be out of inodes with free space.
The site is down, df says 100%, and the first instinct is to delete files. The first move is to find out whether it is bytes, inodes, or a deleted file still held open by a process.
df -h shows bytes; df -i shows inodes. A filesystem can be out of inodes with free space.
A process still holds the file descriptor after rm; space is not freed until the process restarts or closes it.
journalctl and Docker logs are the usual consumers, not the application database.
Rotate/vacuum logs, then prune unused images with a dry run, then investigate the application. Never delete a database file to make space.
| Command | What it finds |
|---|---|
| df -h; df -i | Which filesystem and whether it is bytes or inodes. |
| du -x -h --max-depth=1 / | sort -h | Top-level consumers without crossing mounts. |
| lsof +L1 | Deleted files still open by a process. |
| journalctl --disk-usage | Journal size before vacuuming. |
| docker system df | Images, containers, volumes and build cache. |
journalctl --vacuum-size=500M, logrotate, or truncate an open log with : > file.
docker system prune --dry-run first; never prune volumes you have not identified.
Move old backups or exports off the volume; do not delete the live database.
Alert at 80% and 90%, on inode usage, and on log growth rate — not only on 100%.
This page is free. The paid runbooks cover the operational failures around it, with detection commands, five failure modes and a migration checklist.