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.

User has managed to exceed their disk quota

Discussion in 'General Discussion' started by studentwebhosting, Jun 19, 2003.

  1. studentwebhosting

    studentwebhosting Active Member

    Joined:
    Dec 12, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    Firstly, I'm new here so I'm not sure if this has been answered before or if it is in the correct section - I have searched the forums though.

    I've been looking through my accounts list and I have a user with a 50Mb disk space quota and 214Mb of space used - so they've used over 400% of their quota.

    Business wise I can sort it out but I was just wondering *why* it has happened and how I can stop it from happening again?

    It seems a little odd - could it be that something is being misrepresented? or that the user has managed to upload a lot more stuff than they should be allowed to?

    Sam

    cPanel.net Support Ticket Number:
     
  2. hormigo

    hormigo Well-Known Member

    Joined:
    Sep 9, 2002
    Messages:
    108
    Likes Received:
    0
    Trophy Points:
    16
    try this:
    /scripts/fixquotas

    cPanel.net Support Ticket Number:
     
  3. studentwebhosting

    studentwebhosting Active Member

    Joined:
    Dec 12, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    I tried this just after I made the post. It ran ok but I don't know if it has worked or not as there's still excess file space used up - presuming that everything is respresented correctly and the user had uploaded too many files.

    Does anyone know why it has done this? The quotas were right to begin with so it shouldn't have been possible.

    Any ideas gratefully accepted.

    Thanks

    cPanel.net Support Ticket Number:
     
  4. Pilgrim

    Pilgrim Active Member

    Joined:
    Apr 29, 2002
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    To verify if he is really using 400% or if it is just a technical cpanel glitch log into ssh, go to /home/username and do a du -h
    Look at the final number. This will show you how much diskspace the account really uses.

    I'm working on two similar cases myself right now. In both cases cpanel just reports it wrong. Actual diskspace used is much lower.

    cPanel.net Support Ticket Number:
     
  5. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    This could be caused by files erroneously owned by the user you're seeing this increased space by. Simply run the following to see all files owned by a specific user:

    find . -user USERNAME -print | more

    Hit space bar to sift through the results. If you find anything out of the users' home directory, this is probably where the extra space is being consumed.

    cPanel.net Support Ticket Number:
     
  6. Angel78

    Angel78 Well-Known Member

    Joined:
    May 9, 2002
    Messages:
    413
    Likes Received:
    1
    Trophy Points:
    16
    were you doing backup? it also counts against users webspace

    cPanel.net Support Ticket Number:
     
  7. studentwebhosting

    studentwebhosting Active Member

    Joined:
    Dec 12, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    I do have backups set to go onto a second hard drive each night - does that still count?

    I'll try those other ideas in a min

    Sam

    cPanel.net Support Ticket Number:
     
  8. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    Backups shouldn't count towards user quota. You can check this by doing the following (assuming your backup drive is labeled backup)

    grep backup /etc/fstab

    A basic backup drive line should look something like:

    /deve/sdb1 /backup ext3 defaults 1 2

    If you see some stuff in there about usrquota or grpquota, you may want to remove those things to stop backups from being entered into quota.

    cPanel.net Support Ticket Number:
     
  9. studentwebhosting

    studentwebhosting Active Member

    Joined:
    Dec 12, 2002
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Well it doesn't seem to be anything to do with the backups. All seems present and correct there - according to the post above.

    When I did the "du - h" the final number was 282M so I presume they've managed to use up too much space somehow.

    I couldn't get the "find" method to do anything.

    The user still hasn't responded to my email about removing some of their files - guess I'll just have to suspend the account (that usually gets their attention)

    Thanks for your help

    Sam

    (I still don't understand how they were allowed access to that much space in the first place)

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page