Ever run out of inodes while the disk still showed plenty of free space?
A server started throwing "No space left on device" errors even though df -h showed lots of room. It took me a while to try df -i, which showed inodes were at 100%.
The culprit was a cache directory full of millions of tiny files that never got cleaned up. Deleting them fixed it immediately.
Has this caught anyone else out? What usually causes it on your systems?
Comments · 3
Today I learned
df -iexists. Never had to check inodes before, and I'd have gone in circles looking for big files.Ours was a session directory full of tiny files that nobody cleaned. A simple cron job to prune old ones fixed it for good.
A good illustration of how "disk full" is really two limits, blocks and file entries. Either can run out first.