ukagg

Active Member
Aug 14, 2002
35
0
156
Hi,

Server Information in WHM on my server shows:-

/dev/hda3 6.9G 6.2G 390M 95% /var

But, when I check it from ssh, it shows as under:-

[email protected] [/]# du -sh /var
364M /var

I think, actual usage on my /var is only 364MB, but WHM is showing wrong figure. How can I fix it?

Thanks
UKA
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,462
25
473
Go on, have a guess
WHM isn't showing the wrong figure. They're both right :) The difference comes about because there are open files that have been deleted on the partition. This typically happens if you delete a log file but forget to restart the service that has it open. It will continue to write to the deleted file until it is restarted. df, show is what WHM is using, shows the amount of space used including open files, du shows the amount of space, excluding the deleted, but open files.