Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    35

    Default Wrong disk usage by /var

    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:-

    root@ns2 [/]# 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

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Disk usage wrong
    By adamneal in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-15-2011, 02:26 AM
  2. Incorrect Disk Usage on /var
    By wipl in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-02-2010, 12:24 PM
  3. Wrong Disk Usage
    By markerpower in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-12-2007, 01:17 AM
  4. disk usage wrong?
    By plague in forum cPanel and WHM Discussions
    Replies: 32
    Last Post: 07-24-2007, 12:36 PM
  5. Wrong Disk Usage?
    By Yaksha in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-31-2004, 08:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube