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

p9939068

Member
Dec 24, 2005
8
0
151
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
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Have you tried using the "df -h" command to see if it matches what's reported in Web Host Manager?

Thank you.
 

p9939068

Member
Dec 24, 2005
8
0
151
df -h is accurate to what's reported on WHM, but how does this explain the discrepancy between that and du -sh?
 

p9939068

Member
Dec 24, 2005
8
0
151
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% /
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
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.
 

p9939068

Member
Dec 24, 2005
8
0
151
You have been most helpful Michael, thanks! I will talk to my hosting provider and see if they can sort it out :)