Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Oct 2007
    Posts
    21

    Default Disk space usage mismatch

    Hi,

    I've run into an issue that I can't figure out, WHM reports the disk space used as about 5200mb but one of the folders in that account has 12GB of data and the total size of the account on the server is 16GB so why is there such a big difference in the reported size?

  2. #2
    Member
    Join Date
    Dec 2003
    Location
    France
    Posts
    300
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Check that all files are actually owned by the account username. If they are owned by "nobody", for example, they wouldn't count against the owner.
    In this case, run this command in cli :
    chown -R username.username /home/username/public_html/*
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb Use find to pinpoint all relevant files and directories and then take precise action

    Quote Originally Posted by yapluka View Post
    Check that all files are actually owned by the account username. If they are owned by "nobody", for example, they wouldn't count against the owner.
    In this case, run this command in cli :
    chown -R username.username /home/username/public_html/*
    Cautionary Warning: I would not recommend performing a recursive ownership modification in the manner described. Instead, please consider using "find" to search for files not owned by the applicable user, and then decide if any action is necessary. Blindly applying recursive ownership can have undesired consequences.

    Suggested Alternative: Via SSH access, I recommend using "find" to locate files and directories not owned by the user that you expect to own them; in these examples, simply replace "$username" with the desired cPanel account username:
    Code:
    # find ~$username/public_html ! -user $username -print
    # find ~$username/public_html ! -user $username -exec ls -adl '{}' \;
    # find ~$username/public_html ! -user $username -exec stat '{}' \;
    Verbose usage information in the manual "man" page (documentation) for the "find" utility is accessible using the following command via SSH access:
    Code:
    # man find

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb Inspect all possible sources of disk usage to accurately identify quota discrepancies

    I recommend checking what is reported by the file system disk quotas; this is a potential source for disk quota discrepancies. When comparing disk usage and quota information, please also consider and take into account the disk space used by databases (as displayed in cPanel) as well as disk usage from all other file systems that have quota support enabled.

    The following command should output file system disk quota information that is used by cPanel and the output can be compared to the displayed disk usage; in this example simply replace "$username" with the applicable cPanel login username:
    Code:
    # /usr/bin/quota -v $username
    The following commands should report file system disk quota information that is used by WebHost Manager (WHM); the disk space used and quota limits from each command should closely match if not exactly:
    Code:
    # /usr/sbin/repquota -auv
    # cat /var/cpanel/repquota.cache
    # /scripts/dumpstor /var/cpanel/repquota.datastore
    The following command may be used to determine if databases are included in disk usage calculations performed by cPanel and WHM:
    Code:
    # grep disk_usage_include_sqldbs /var/cpanel/cpanel.config

  5. #5
    Member
    Join Date
    Oct 2007
    Posts
    21

    Default

    I've determined that the folder in question is used to upload images for an image hosting site. I'm having a bit of trouble working with the folder that has ~60000+ files in it. But I think it is a problem with the owner being "nobody".

Similar Threads & Tags
Similar threads

  1. Disk Quota Mismatch in WHM (Disk Usage Too high)
    By bmcpanel in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 11-09-2011, 09:43 AM
  2. Disk space usage
    By mightysnake in forum Optimization
    Replies: 2
    Last Post: 05-30-2011, 10:05 PM
  3. disk space usage
    By izghitu in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-25-2010, 03:13 PM
  4. Disk Space Usage
    By kaushik_acharya in forum New User Questions
    Replies: 1
    Last Post: 09-30-2006, 05:17 AM
  5. Mail usage: show disk space used does not match actual disk usage
    By NNNils in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-25-2004, 07:01 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube