Inodes usage stats
Is there anyway where we can get a list of inodes usage for a server?
We have some problems with customers having over 1.000.000 files on a small account. Usally the problem is their script (ecommerce).
And instead of getting angry customers it would be nice to be a little proactive and give them a notice about their account reaching the inode limits.
This also effects backup etc...
-
cd /home echo "Inode usage for: $(pwd)" ; for d in `find -maxdepth 1 -type d |cut -d\/ -f2 |grep -xv . |sort`; do c=$(find $d |wc -l) ; printf "$c\t\t- $d\n" ; done ; printf "Total: \t\t$(find $(pwd) | wc -l)\n"
want to see more detail for a specific acount cd /home/username and run the same command0 -
Hello :) Yes, the previous post should help you determine where the inode usage is coming from. Note that for the global inode usage, simply run the "df -i" command. Thank you. 0
Please sign in to leave a comment.
Comments
2 comments