Inode usage of .cpanel under root
Hi,
Under root we can see .cpanel is taking huge inode space. Please let us know whether we can safely delete the same. Will it cause any issue.
-
Hello, Here are some commands to see which directories in /root/.cpanel are utilizing the most inodes: cd /root/.cpanel 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"
If you see a directory with a high inode count, browse to it and run the same command again to see the results for the individual directory. This command is also helpful in some cases where the comet files in the /root partition utilize a large number of inodes:/usr/local/cpanel/bin/purge_dead_comet_files
Thanks!0 -
Hello, Here are some commands to see which directories in /root/.cpanel are utilizing the most inodes:
cd /root/.cpanel 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"
If you see a directory with a high inode count, browse to it and run the same command again to see the results for the individual directory. This command is also helpful in some cases where the comet files in the /root partition utilize a large number of inodes:/usr/local/cpanel/bin/purge_dead_comet_files
Thanks!
Can I remove .cpanel file from the server. Will it affect any cPanel service0 -
Can I remove .cpanel file from the server. Will it affect any cPanel service
Hello, I don't recommend deleting the entire directory. Were you able to review the troubleshooting information from my previous response? Thank you.0
Please sign in to leave a comment.
Comments
3 comments