Crusty
Lifer
So for a while now I've been having an issue with a server and it using more and more inodes with little to no disk usage. It wasn't a problem until the FS started to run out of inodes.
I found a neat little perl script to spit out the directories that used the most inodes and low and behold a .spam folder from someones mailbox shows almost 210k inodes(out of 500k) being used and only 1.3GB of disk usage.
So I cd into the directory and try to delete the files...
Oh noes I broke rm 😱
I found a neat little perl script to spit out the directories that used the most inodes and low and behold a .spam folder from someones mailbox shows almost 210k inodes(out of 500k) being used and only 1.3GB of disk usage.
Code:
web2-dltx:/home/vmail/bobmart.com/bob/.spam# du -sh new
1.3G new
web2-dltx:/home/vmail/bobmart.com/bob/.spam# perl ~/inode.pl
0 ./cur
0 ./tmp
208453 ./new
8 .
Code:
web2-dltx:/home/vmali/bobmart.com/bob/.spam/new# rm *
-bash: /bin/rm: Argument list too long
Oh noes I broke rm 😱