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.

WHM's Show Current Disk Usage different from du -sh

Discussion in 'General Discussion' started by p9939068, Aug 14, 2013.

  1. p9939068

    p9939068 Member

    Joined:
    Dec 24, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi
    I've been having the strangest issue for the past couple weeks. Like right now, when I go to WHM's Show Current Disk Usage or Server Status, it's show my disk usage as 10G (about 50%) and climbing fast. However, when I go to SSH and type du -sh (or du -a), it shows total disk usage as only 5G. I tried listing files modified in the past day and nothing is out of the ordinary.

    This happens more than just a few times. Also, every time it reaches close to 100%, /var/log/maillog appears and it's 16G, and I'll have to delete it. This only happens when disk usage is close to 100%. Prior to that, maillog does not exist, and find / -noleaf -type f -size +50000k shows nothing.

    I'm not an expert in linux, but I've really tried all I can with the help of google. Any help is greatly appreciated! Thanks in advance.

    Regards, Mike
     
    #1 p9939068, Aug 14, 2013
    Last edited: Aug 14, 2013
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. p9939068

    p9939068 Member

    Joined:
    Dec 24, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    df -h is accurate to what's reported on WHM, but how does this explain the discrepancy between that and du -sh?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. p9939068

    p9939068 Member

    Joined:
    Dec 24, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Here's what I see:

    # du -sh /
    5.2G /
    # df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/vzfs 20G 6.0G 15G 30% /
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can try recalculating disk space usage via:

    Code:
    /scripts/fixquotas
    Also, since this is a VPS, you may want to consult with your VPS hosting provider about this discrepancy. Such usage differences can sometimes be attributed to an issue on the VPS hardware node.

    Thank you.
     
  7. p9939068

    p9939068 Member

    Joined:
    Dec 24, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    You have been most helpful Michael, thanks! I will talk to my hosting provider and see if they can sort it out :)
     
Loading...

Share This Page