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

Discussions related with hosting control panels used, which include cPanel, Plesk, Directadmin etc..
Post Reply
chris ben
Posts: 0
Joined: Fri Sep 16, 2016 10:09 am

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

Post by chris ben »

df -i command shows inode usage is 100% on my centos server. How to check whats using inode?



Martin
Posts: 36
Joined: Fri Sep 16, 2016 10:34 am

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

Post 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



Post Reply