Page 1 of 1

inode usage is 100%. How to check whats using inode?

Posted: Mon Dec 05, 2016 4:57 am
by chris ben
df -i command shows inode usage is 100% on my centos server. How to check whats using inode?

Re: inode usage is 100%. How to check whats using inode?

Posted: Mon Dec 05, 2016 5:03 am
by Martin
Hello,

Run the below command on your server to check the inode usage.

=======
Command :

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"
=======

Example :

Inode usage for: /home/user/public_html

1 - dump
525 - wp-admin
44425 - wp-content
805 - wp-includes

Inode usage is high on 'wp-content' so run the same command inside wp-content directory. This will help us finding out which directory is having high inode usage.


=============================
Martin
Linux Support Engineer.
Nixtree Solutions
Managed Full Server Backups
https://www.nixtree.com/managed-backups.php
Follow us on : https://twitter.com/nixtree