Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    26
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,491
    Likes Received:
    1,964
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Sarath Kumar R

    Sarath Kumar R Active Member

    Joined:
    Oct 18, 2016
    Messages:
    26
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,491
    Likes Received:
    1,964
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice