Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 15 of 53
  1. #1
    Member
    Join Date
    Jan 2005
    Location
    USA
    Posts
    35

    Default *tutorial* How to fix unlimited quotas and 0.00 disk usage problem

    Quota Problem, /scripts/fixquotas no help. [fix]

    Well I figured I would post this here as it seems to be a previously un answered problem, and this may help someone at some time.

    Recently we faced the common cpanel quotas problem, 0mb used and unlimited quota. No problem, run /scripts/fixquotas right? No. Doing this did nothing to aid our problem. After a bit of snooping around and trial and error here is how we managed to fix it.

    Note: Follow my instructions at your OWN risk. If you do this and somehow mess things up I am not to be held responsible. This shouldn't really harm anything even if it isn't the solution but still.. be warned.

    First run "quotacheck -avugm", you should receive "quotacheck: Can't find filesystem to check or filesystem not mounted with quota option." If not you don't have the same problem.

    Next step is to open fstab, type pico /etc/fstab.
    The first line will probably look something like this:
    "/dev/VolGroup00/LogVol00 / ext3 defaults 1 1"

    What we want to do is change "defaults" to "usrquota".

    Now save (ctrl + X, Y, Enter) and run "mount -o remount /".

    Now run "quotacheck -avugm" once more. This time it should run through quotacheck normally.

    After it is done running (and it may very well take quite a long time) you should get:

    "Old group file not found. Usage will not be substracted.
    done
    quotacheck: Checked xxxx directories and xxxx files"

    This is a good thing. Now run run "quotaon /"

    Now your space used should be correct, but quotas may still be unlimited.

    This isn't a problem, just run good old /scripts/fixquotas and let it run through. It will probably run quotacheck again but it won't hurt anything. And when it's done your quotas should be working as normal.

    If this helped, great, but I make no guarantees. Just wanted to share what worked for me.

    ...Yes, I wrote this myself.
    Last edited by CollateralFX; 08-19-2005 at 02:23 AM.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2003
    Posts
    397

    Default

    Hi

    i have the same problem, i have upgrade right now to the latest release and quota not is working anymore! i have follow your tutorial but this dont help me

  3. #3
    Member
    Join Date
    Aug 2005
    Posts
    64

    Default

    I initially had this problem, but running /scripts/fixquotas fixed the problem.

  4. #4
    Member
    Join Date
    Jan 2005
    Location
    USA
    Posts
    35

    Default

    As I mentioned in the tutorial, it may help or it may not. I cannot take any responsibility it may bring or any guarantees that it'll resolve your situation(s).

  5. #5
    aby
    aby is offline
    Member aby's Avatar
    Join Date
    May 2005
    Location
    India
    Posts
    638

    Lightbulb

    Quote Originally Posted by adapter
    Hi

    i have the same problem, i have upgrade right now to the latest release and quota not is working anymore! i have follow your tutorial but this dont help me
    Did you try
    /scripts/initquotas

    Also please check /ect/fstab and see the entries are correct.
    Aby

    MSN "abyvarghese007"
    Yahoo " abyattaikkulathu"

    http://slashome.com

  6. #6
    Member
    Join Date
    Jan 2003
    Posts
    23

    Lightbulb please sticky it. for CentOs

    Bingo
    great tutorial thank you dear.

    Moderator please sticky it.

  7. #7
    Member
    Join Date
    Jan 2006
    Posts
    15

    Default

    thank you, worked great!!!

    MODERATOR, please make a sticky so people like me dont go making posts about it!

  8. #8
    Registered User
    Join Date
    Aug 2005
    Posts
    1

    Default

    Thanks that solved my problem.....

  9. #9
    Member
    Join Date
    Mar 2004
    Posts
    193

    Default

    There was a bug in cPanel that caused cPanl to show 'unlimited disk space available'. Update to the lastest version.

  10. #10
    Member
    Join Date
    Mar 2004
    Posts
    8

    Default

    Quote Originally Posted by CollateralFX
    Quota Problem, /scripts/fixquotas no help. [fix]

    Well I figured I would post this here as it seems to be a previously un answered problem, and this may help someone at some time.

    Recently we faced the common cpanel quotas problem, 0mb used and unlimited quota. No problem, run /scripts/fixquotas right? No. Doing this did nothing to aid our problem. After a bit of snooping around and trial and error here is how we managed to fix it.

    Note: Follow my instructions at your OWN risk. If you do this and somehow mess things up I am not to be held responsible. This shouldn't really harm anything even if it isn't the solution but still.. be warned.

    First run "quotacheck -avugm", you should receive "quotacheck: Can't find filesystem to check or filesystem not mounted with quota option." If not you don't have the same problem.

    Next step is to open fstab, type pico /etc/fstab.
    The first line will probably look something like this:
    "/dev/VolGroup00/LogVol00 / ext3 defaults 1 1"

    What we want to do is change "defaults" to "usrquota".

    Now save (ctrl + X, Y, Enter) and run "mount -o remount /".

    Now run "quotacheck -avugm" once more. This time it should run through quotacheck normally.

    After it is done running (and it may very well take quite a long time) you should get:

    "Old group file not found. Usage will not be substracted.
    done
    quotacheck: Checked xxxx directories and xxxx files"

    This is a good thing. Now run run "quotaon /"

    Now your space used should be correct, but quotas may still be unlimited.

    This isn't a problem, just run good old /scripts/fixquotas and let it run through. It will probably run quotacheck again but it won't hurt anything. And when it's done your quotas should be working as normal.

    If this helped, great, but I make no guarantees. Just wanted to share what worked for me.

    ...Yes, I wrote this myself.
    Best tutorial, congratulations

  11. #11
    Secret Agent
    Guest

    Default

    /scripts/fixquotas gives me No filesystems with quota detected
    but my /etc/fstab is correct as far as I can see it.

    Code:
    # This file is edited by fstab-sync - see 'man fstab-sync' for details
    LABEL=/1                /                       ext3    defaults,usrquota        1 1
    LABEL=/backup           /backup                 ext3    defaults        1 2
    LABEL=/boot1            /boot                   ext3    defaults        1 2
    none                    /dev/pts                devpts  gid=5,mode=620  0 0
    none                    /dev/shm                tmpfs   rw,noexec,nosuid,nodev        0 0
    none                    /proc                   proc    defaults        0 0
    none                    /sys                    sysfs   defaults        0 0
    LABEL=SWAP-sda2         swap                    swap    defaults        0 0
    /dev/hda                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0
    /dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0
    /usr/tmpDSK /tmp ext3 loop,rw,noexec,nosuid,nodev 0 0
    /tmp /var/tmp ext3 rw,noexec,nosuid,nodev,bind 0 0

  12. #12
    Registered User
    Join Date
    Nov 2005
    Posts
    4

    Default

    Well, well, well, well, thanks a bunch for sharing this solution!! You wont be able to imagine how glad i am to have this solution.

    OK, here are the commands i typed and the results that i got.

    Following the steps as "CollateralFX" wrote down::
    >Was facing the same problems as "CollateralFX", but just to verify, i did so as he told, i.e. "quotacheck -avugm", got the result as he said, i.e."quotacheck: Can't find filesystem to check or filesystem not mounted with quota option."
    >Then typed vi /etc/fstab (as i was using vi editor instead of pico)
    >My first line said "LABEL=/1 / ext3 defaults,usrquota 1 1"
    >I changed "defaults,usrquota" to just "usrquota" (just remove defaults) (when you are using vi editor, click on "a" to insert/change text, and then edit as said above)
    >Now save and exit this file (click on "escape" key and then type the following ":wq") (without quotes)
    >Now run "mount -o remount /".
    >Now run "quotacheck -avugm" once more. This time it should run through quotacheck normally.
    >After it is done running (and it may very well take quite a long time) you should get:
    "Old group file not found. Usage will not be substracted.
    done
    quotacheck: Checked xxxx directories and xxxx files"
    >Now run run "quotaon /"
    >Finally run "/scripts/fixquotas"

    And well well well, everything will begin to work perfectly.

    I thank "CollateralFX" for sharing this solution once again.

    Mods, please make this sticky. I am sure many others might be looking forward for a solution for this problem.

  13. #13
    Registered User
    Join Date
    Apr 2003
    Posts
    1

    Default

    BEGIN failed--compilation aborted at /scripts/cPScript/cPQuota.pm line 11.
    Compilation failed in require at /scripts/editquota line 8.
    BEGIN failed--compilation aborted at /scripts/editquota line 8.

    I am getting this error after running /scripts/fixquotas

    Has anyone seen that before? I am still getting unlimited for some reason.


    /etc/fstab

    LABEL=/ / ext3 usrquota 1 1
    LABEL=/boot /boot ext3 defaults 1 2
    none /dev/pts devpts gid=5,mode=620 0 0
    none /proc proc defaults 0 0
    none /dev/shm tmpfs defaults 0 0
    /dev/hda2 swap swap defaults 0 0

  14. #14
    Registered User
    Join Date
    Feb 2006
    Posts
    2

    Question Sometimes 0.00 Sometimes 8GB

    I have this problem with disk space, sometimes its 0.00, sometimes its 8GB and sometimes its 5.2GB. How do we fix this problem

  15. #15
    Member This forum account has been confirmed by cPanel staff to represent a vendor. Radio_Head's Avatar
    Join Date
    Feb 2002
    Posts
    2,064

    Default

    I have this problem on 1 server from months (and fixquota doesn't help)

    when I execute
    #quotacheck -avugm

    I receive this

    quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file.
    Please turn quotas off or use -f to force checking.

    Any suggestion ?
    Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
    █ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.

+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Similar Threads & Tags
Similar threads

  1. Viewing Email Account (Email User) Disk Quotas and Usage
    By crazyaboutlinux in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-16-2010, 04:15 PM
  2. Replies: 0
    Last Post: 10-02-2009, 05:50 AM
  3. cP disk quotas stuck on zero/unlimited, WHM fixed
    By sysnop in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-23-2007, 04:06 PM
  4. Disk Quotas - New User Problem
    By johnmcneely in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-16-2004, 12:29 PM
  5. How to read Disk and Bandwidth Quotas and their Usage ?
    By thesilentman in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-07-2002, 03:25 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube