Skip to main content

Why do the disk usage statistics on cPanel and on the server not match?

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey there!  There are several reasons this can happen on a machine, but the most common is that the cPanel interface doesn't update in real-time, as that would be resource intensive.

    If you check the account with the following command directly on the command line:

    du -h --max-depth 1 /home/username

    does that show the same usage as the cPanel interface?

    If not, could you try running

    /scripts/fixquotas

    to see if that changes anything?

    0
  • saigonrun

    Hi,

    It shows the same usage as the cPanel interface

    # du -sh /home/lamkinhc/
    157G    /home/lamkinhc/

    But the usage does not match, I ran the script  /scripts/fixquotas but doesn't work  

    # du -h --max-depth=1 | grep G | sort -hr
    8.5G    ./hoang.huynh
    6.6G    ./le.vo

    # du -sh le.vo/
    12G    le.vo/
    # du -sh hoang.huynh/
    16G    hoang.huynh/

     

     

    0
  • cPRex Jurassic Moderator

    Thanks for the additional details.  Since this is all related to email, it's likely due to hardlinks as outlined here:

    https://support.cpanel.net/hc/en-us/articles/10151202268823-Why-does-the-email-disk-usage-in-cPanel-not-match-the-disk-usage-shown-with-the-du-command

    Do your command line numbers match more closely if you add the "-l" option to your du commands?

    0

Please sign in to leave a comment.