Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Nov 2004
    Posts
    135

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

    "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. #2
    Member
    Join Date
    Nov 2004
    Posts
    135

    Default

    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. #3
    Member
    Join Date
    Nov 2004
    Posts
    135

    Default

    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. #4
    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

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

  5. #5
    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

    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.
    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. Duplicated domain under "FTP Usage" in "Show IP Address Usage"
    By mikelegg in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-09-2010, 08:54 PM
  2. Created User dont show up in "MODIFY AN ACCOUNT" list :(
    By rdpcom in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-27-2008, 06:40 AM
  3. In WHM >> Show Reseller Accounts packges showing "undefined"
    By its_joe in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-24-2007, 11:19 AM
  4. Replies: 1
    Last Post: 04-15-2007, 05:00 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube