Jun 222020
 

I had a server with plenty of disk space, like gigs of space but was out of inodes.  This is a seldom ever used server and it didn’t make any sense to me.  It was used for pentesting and had a minimal install of some vulnerable apps running under nginx.  Anywho, this is the command I used to find the two folders using a combined 100% of inodes:

find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n

So once I found the folders, the two culprits were:

/var/cache/nginx/client_temp
/var/spool/postfix/maildrop

and they were cleaned up using:

find /path/to/dir -type f -delete

and now I have only 3% of inodes in use

# df -i
Filesystem      Inodes IUsed   IFree IUse% Mounted on
/dev/sda       3168000 64684 3103316    3% /
tmpfs           251408   606  250802    1% /dev/shm

This site uses Akismet to reduce spam. Learn how your comment data is processed.