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 problems

Discussion in 'General Discussion' started by spletnet, Dec 27, 2008.

  1. spletnet

    spletnet Registered

    Joined:
    Nov 29, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi all,

    I'm having problems with the quota of used disk space in accounts compared to the actual use of disk space. I have a dedicated server with WHM/cPanel installed. In some accounts the cPanel shows that they use 1170 MB od 100MB that is allocated to them. Since they are over quota I have first increased the quota to 1500 MB and than tried to locate the files that are causing this over quota problem. I was unable to find the files, so the tech support at the data centre offered their sollution, to run the fixquota script and to delete the apache logs. Now the fixquota script alone solved nothing and as far as I know, if I delete the apache logs, all the stats are lost.

    Besides trying to find a solution to the problem I'd also like to know how to avoid it in the future?

    Tnx for any help in advance.

    Cheers.
     
  2. Paonza

    Paonza Member

    Joined:
    Apr 19, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Hi! I have the same problem!
    Account that used more than allocated space, disk usage reported wrong on WHM "list account" panel, into CpanelX Disk usage is wrong but if you lokk into "disk usage viewer" the quotas are correct for folders!
    For exampre for one account I have: allocated 50M, CpanelX & WHM told me used 36M, but into CpanelX/Disk Usage Viewer there is a folder with 90M of REAL files! :eek:
    How to fix this issue?????? /scripts/fixquotas don't solve anything!

    HELP!
    thx
    Fabio
     
  3. seba.o

    seba.o Registered

    Joined:
    Feb 10, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Chicago, Ill
    i would suggest checking file ownership. cpanel's file manager will only calculate files owned by the specific user. if there's files owned by somebody else in the user's home dir, you'll see discrepancies like that.
     
  4. gegervision

    gegervision Active Member

    Joined:
    Aug 10, 2002
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    I'm having a very similar problem. I had accounts stating over quota but I know for a fact they were not. I tried to run /scripts/fixquotas but it just hangs. Once it actually completed all accounts came back with 0 disk usage. I tried rebuilding quotas but still no resolve. This is a major issue as now all accounts have "unlimited" disk quota and are show 0 usage.

    I was able to cancel the running fixquotas after 2 hours of it running. Upon doing so the quotas are now back but all dsk usage for all accounts is showing 0. What went wrong? I've made no changes to the server in over 2 months except running fix quotas today. Please Help!!!

    I'm running: cPanel 11.24.4-R33609 - WHM 11.24.2 - X 3.9
     
    #4 gegervision, Feb 10, 2009
    Last edited: Feb 10, 2009
  5. Paonza

    Paonza Member

    Joined:
    Apr 19, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    I noticed that ALL file uploaded by PHP have nobody:nobody as ownership!
    That's a problem! I running only content manager on my server and my client can upload images/download/movies throght the content manager panel!
    If these file aren't calculated into account disk usage is a BIG problem!!
    Damn!
    Why WHM is so weakness on there BASIC issues?????? It's so sad! :(
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Yes, PHP by default runs as user nobody and thus creates files/directories as owned by user nobody.

    I recommend using SuPHP as it runs PHP as the cPanel user (not user nobody) and as such resolves all the issues created when PHP creates files under user nobody (such as the user being unable to delete such files from File Manager due to incorrect file ownership).
     
  7. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You may want to let our technical analysts take a look at your server: http://tickets.cPanel.net/submit
     
  8. gegervision

    gegervision Active Member

    Joined:
    Aug 10, 2002
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    I just did. Thanks for you help.:)
     
  9. Paonza

    Paonza Member

    Joined:
    Apr 19, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Why Cpanel don't sum file space owned by cpanel users PLUS file space owned by user 'nobody'??? It's so easy!
     
  10. erinspice

    erinspice Well-Known Member

    Joined:
    Feb 12, 2006
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    16
    I'm having a similar problem not related to PHP-created files. Some accounts are showing high disk usage in cPanel, but "du" shows they are actually using half of that amount. MySQL databases do not make up the difference, and other places in cPanel show the correct disk usage. This problem showed up almost immediately after I ran /scripts/fixeverything in an attempt to fix an unrelated problem.
     
Loading...

Share This Page