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.

"du" show 5.1G but "df" show 11G. How should I fix ?

Discussion in 'General Discussion' started by taotoon, Nov 20, 2005.

  1. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    "du" show 5.1G but "df" show 11G. How should I fix ?

    --------------------------------------------------------------------------------

    When I login as root and used command "du -h -s", it reported only 5.1Gb.
    But when I used command "df -h", it reported 11Gb.

    Filesystem Size Used Avail Use% Mounted on
    /dev/vzfs 11G 11G 355M 97% /
    ext3 9.7G 50M 9.1G 1% /tmp


    How should I do ? please advise.
    Thank for advance.
     
  2. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    root@server [/etc]# more fstab.quotas

    none /dev/pts devpts rw 0 0

    root@server [/etc]# more fstab

    none /dev/pts devpts rw 0 0
     
  3. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    root@server [/scripts]# /scripts/fixquotas
    Installing Default Quota Databases......Done
    Warning virtual file systems are mounted. Quota's may be counted as double for users who are currently logged in. Please have jailshell users logout before running quotacheck in the future! All jailed users will be logged out in 60 seconds!

    jailshell: no process killed

    Quotas are now on

    Updating Quota Files......
    quotacheck: Can't stat() mounted device ext3: No such file or directory
    quotacheck: Cannot get quotafile name for /dev/vzfs
    quotacheck: Cannot get quotafile name for /dev/vzfs


    quotacheck: Can't stat() mounted device ext3: No such file or directory
    quotacheck: Cannot get quotafile name for /dev/vzfs
    quotacheck: Cannot get quotafile name for /dev/vzfs

    ....Done

    Note: call resetquota with --useplanquotas to reset all quotas to plan defaults

    edquota: Can't stat() mounted device ext3: No such file or directory
    Resetting quota for boxxx to 2048 Meg....Done
    edquota: Can't stat() mounted device ext3: No such file or directory
    Resetting quota for taoxxx to 2048 Meg....Done
    edquota: Can't stat() mounted device ext3: No such file or directory
    Resetting quota for xxxnow to 2048 Meg....Done
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    A couple of things:

    1. If you're having problems with quotas on a VPS you need to speak to your VPS provider asn only they will be able to fix them

    2. The difference between du and df can sometimes be partly explained by incorrectly rotated log files (where the owning daemon has not detached from a deleted file) or having files open that are no longer stored in the directory file (mysql does this). If that is the cause, then a reboot will often resolve things
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Also, please stop cross-posting on the forums. I've already told you that you will need to speak to your VPS provider about quota problems.
     
Loading...

Share This Page