Hands-on task
Where did the inodes go
Files can no longer be created on the server: No space left on device, even though df -h shows free space. That means the inodes ran out — someone spawned a huge number of small files. The suspect is the application cache /var/lib/webcache: it has the subdirectories thumbs, sessions, logs, uploads (with more nested directories inside).
Find out which subdirectory has the most files (by count, across all nested levels) and write its name, without the path, to /root/inode-hog.txt.
- inode
- find
- wc
- counting files
- inode exhaustion