ÈÐ Wïgê† Ðð† ñåmê

ïñ£ð§ê¢, ïñ£ðrmå†ïðñ §ê¢µr, Ðïgï†ål £ðrêñ§ï¢§, hå¢kïñg, §¥§†êm åÐmïñ阮rå†ïðñ, lïñµx ßlðg


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:

[codesyntax lang=”bash”]

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

[/codesyntax]

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

[codesyntax lang=”bash”]

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

[/codesyntax]

and they were cleaned up using:

[codesyntax lang=”bash”]

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

[/codesyntax]

and now I have only 3% of inodes in use

[codesyntax lang=”bash”]

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

[/codesyntax]


Leave a Reply