Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    4

    Default CPanel shows incorrect disk usage

    WHM / "Quota Modification" shows correct disk usage:

    Disk Used 159M

    # quota user1
    Disk quotas for user user1 (uid 521):
    Filesystem blocks quota limit grace files quota limit grace
    /dev/sda5 44 10240000 10240000 33 0 0
    /dev/sda8 163548 10240000 10240000 17547 0 0
    /dev/sda2 4 10240000 10240000 3 0 0

    /dev/sda8 /home
    /dev/sda2 /var
    /dev/sda5 /

    But CPanel shows incorrect disk usage:
    0.05/10000 MB

    Please help!

    P.S. /scripts/fixquotas has not helped

  2. #2
    Member arunsv84's Avatar
    Join Date
    Oct 2008
    Location
    India
    Posts
    129
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Common reasons for quota problems
    - There are files owned by the same user elsewhere on the server
    - The backup directory is being counted towards the users disk quota
    - Extra log files are being counted towards the users quota

    Step 1. Find the user account where the quotas are incorrect and login to your server in SSH as root.

    Step 2. Go to the users folder and check their disk space being used.
    cd /home/username
    du -h or try du -hs

    Step 3. Check /etc/passwd and /etc/shadow to make sure there is no weirdness where the username shows up multiple times.

    Step 4. Try finding other files owned by the user.
    find -user username | more
    This will list all files owned by this user that could be affecting the quota reported by Cpanel.

    Step 5. Uncompressed backups can cause quota problems, ensure your backups are compressed in the WHM backup options.

    Step 6. After your determine the source of the files and remove them then run /scripts/fixquotas


  3. #3
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    This can happen when the cache file used to display the quota value is out of date. The file in question is ~/.cpanel/datastore/quota_-v

    Remove that file then refresh the cPanel interface.

  4. #4
    Member
    Join Date
    Jul 2006
    Posts
    13

    Default

    Hi,

    I tried those tricks without success.
    Anything else?

  5. #5
    Member
    Join Date
    Sep 2009
    Location
    Lusby, Maryland, United States
    Posts
    192

    Default

    I had similar issues when I transferred a website over to the server. Some of the directories were used to upload things like pictures etc. They did not share the same ownership. I fixed the owner and now all is well with the world.

Similar Threads & Tags
Similar threads

  1. Cpanel shows wrong disk usage
    By xeonia in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-21-2009, 03:40 PM
  2. Disk Usage Incorrect
    By gertiebeth in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-30-2008, 09:55 AM
  3. Disk usage is incorrect in both WHM and cPanel
    By DBJoshua in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 09-24-2007, 09:23 PM
  4. Disk Space Usage incorrect in cpanel/whm
    By lbeachmike in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-27-2007, 02:11 AM
  5. incorrect disk usage reports
    By pr-design in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 02-05-2003, 08:37 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube