The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Inode usage of .cpanel under root

Discussion in 'General Discussion' started by Sarath Kumar R, Mar 1, 2017.

Tags:
  1. Sarath Kumar R

    Sarath Kumar R Active Member

    Joined:
    Oct 18, 2016
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Here are some commands to see which directories in /root/.cpanel are utilizing the most inodes:

    Code:
    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:

    Code:
    /usr/local/cpanel/bin/purge_dead_comet_files
    Thanks!
     
  3. Sarath Kumar R

    Sarath Kumar R Active Member

    Joined:
    Oct 18, 2016
    Messages:
    25
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator



    Can I remove .cpanel file from the server. Will it affect any cPanel service
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I don't recommend deleting the entire directory. Were you able to review the troubleshooting information from my previous response?

    Thank you.
     
Loading...

Share This Page