Skip to main content

Inode usage of .cpanel under root

Comments

3 comments

  • cPanelMichael
    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
  • Sarath Kumar R
    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 service
    0
  • cPanelMichael
    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.