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.

Disk usage is incorrect in both WHM and cPanel

Discussion in 'General Discussion' started by DBJoshua, Aug 23, 2007.

  1. DBJoshua

    DBJoshua Active Member

    Joined:
    Jun 7, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    I've tried running both quota related fixes :

    - fixquotas
    - updatequota

    I've tried forcing a cPanel update.

    I'm out of ideas. It's a brand new account, using literally 0 resources (no emails, no files), it's showing up as 1gb used.

    Any suggestions?
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    What is your OS and cPanel version?

    Do both WHM and cPanel show 1 GB used, or do they both show different values? What are those values?

    What does:
    Code:
    du -h /home/user
    
    show?
     
  3. bmcpanel

    bmcpanel Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    546
    Likes Received:
    0
    Trophy Points:
    16
    There is probably another file somewhere that has the same UID. Following are the instructions I use to find and fix this problem.

    ---------------------------
    ### First, you need to locate the uid of the customer. You will need to know their username. At shell, run the following command...

    vi /etc/passwd

    #### With that file open, run a search on their username

    /someuser

    ### If the user is found, you will see a 5 digit number and a smaller number. The larger number is the UID.

    ### Now, go to shell and run the following command (Replace "33025" with the UID of the user in question)

    find / -uid 32025

    A listing will be displayed of all of the files that have that UID. My guess is there is a file or files somewhere on the server that have the same UID of the user you have just added.
     
  4. DBJoshua

    DBJoshua Active Member

    Joined:
    Jun 7, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6

    They both show the same value.. 1.9GB now.

    du -h /home/user shows about 2MB used total, with 640k being in /public_html and 20kb being used in /mail (and so on..)
     
  5. DBJoshua

    DBJoshua Active Member

    Joined:
    Jun 7, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Nothing showing up under the uid :(

     
  6. DBJoshua

    DBJoshua Active Member

    Joined:
    Jun 7, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Forgot to mention : CentOS 4.5 / cPanel 11 / Release (right before Stable)
     
  7. DBJoshua

    DBJoshua Active Member

    Joined:
    Jun 7, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Anything new on this?
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  9. Immortal

    Immortal Member

    Joined:
    Oct 14, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Can you please let us know whether the issue was fixed or not? We're facing a similar behaviour on 11.6.0 (R15076) and I'd like to know if this matter got solved before submitting a ticket to CPanel.
     
  10. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    To my knowledge, the tech support ticket was never opened. Thus we could not determine the cause for this issue. We are unable to reproduce this in our testing environment, which is the reason a tech support ticket is needed, in order to determine the variances between our test environment and what some people are doing.

    To reiterate: please open a tech support ticket at http://cpanel.net/support/
     
  11. HH-Steven

    HH-Steven Well-Known Member

    Joined:
    Aug 29, 2004
    Messages:
    284
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    We're having the exact same issue and running the above shows 100's of files on different users having the same UID.

    Is there any update on this?
     
  12. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    If the UID is for the user 'nobody' then that is normal for servers that use mod_php.
     
  13. carock

    carock Well-Known Member

    Joined:
    Sep 25, 2002
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    St. Charles, MO
    The DU on command line will not show you the directories that begin with .

    root@cpanel2 [/home/meangert]# du -sh */
    3.4M access-logs
    92K etc
    12M mail
    8.0K public_ftp
    66M public_html
    16M tmp
    66M www

    root@cpanel2 [/home/meangert]# du -sh
    174M .

    Both cPanel and WHM say this account is using 174 meg.

    These are missing from the above output.

    8.0K ./.sqmaildata
    20K ./.neomail-scflesch/meangert
    24K ./.neomail-scflesch
    82M ./.spamassassin
    40K ./.cpanel-datastore
    96K ./.neomail/meangert
    100K ./.neomail
    52K ./.cpanel/datastore
    64K ./.cpanel

    Which added to the total will be 174 Meg. Notice the .spamassassin is using a lot of space. After I made the Default Address :fail: this directory doesn't grow like that anymore.

    Chuck
     
    #13 carock, Sep 18, 2007
    Last edited: Sep 18, 2007
  14. AlexV.

    AlexV. Well-Known Member

    Joined:
    Jun 15, 2006
    Messages:
    212
    Likes Received:
    1
    Trophy Points:
    16
    carock:

    Could you please advise what OS and cPanel Build and Version are you running.

    I wasn't able to replicate the issue on the latest version of CURRENT.

    Thank you in advance.
     
  15. carock

    carock Well-Known Member

    Joined:
    Sep 25, 2002
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    St. Charles, MO
    What I'm saying is the cPanel/WHM and DU shell command work correctly no actual problem.

    The guy in the first post couldn't find where all the disk space was going and the next response was to use the DU command.

    The reason the DU command doesn't match cPanel and WHM disk usage is the DU command does not include the . directories such as .spamassassin .cpanel and so on...

    I found on my server example that the .spamassassin directory was using 80+ Meg of disk space and that made my comparison between the DU command and WHM/cPanel way off.

    Chuck
     
  16. jumponlinewithu

    Joined:
    Dec 17, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Invalid quotas

    Hi there,

    I could not find any files using the DU command. I did some research and if you run the following command you will find the files and thier locations:

    FIND -user USERNAME

    My problem is I have an old drive hooked up that never got pulled and it was adding the file sizes owned by the users from the new drive and from the old mounted drive as well. I hope that the find will help you out. Granite if you have alot of users that you need to find files for this can be a tedious process.

    Shawn
     
    #16 jumponlinewithu, Sep 24, 2007
    Last edited: Sep 24, 2007
Loading...

Share This Page