|
Fix Linux Quotas and Fix Cpanel/WHM quota
How do you fix Linux Quota?
Note:
----- Quota Issues in Linux Common reasons for quota problems
Step 1. Log into your server through SSH as the root user. Step 2. Run the following command /scripts/fixquotas Advanced Fix - other reasons quotas are not working Step 1. Find the user account where the quotas are incorrect and login to your server in SSH as root. Step 2. Go to the users folder and check their disk space being used. cd /home/username
Step 3. Check /etc/passwd and /etc/shadow to make sure there is no weirdness where the username shows up multiple times. Step 4. Try finding other files owned by the user. find -user username | more This will list all files owned by this user that could be affecting the quota reported by Cpanel. Step 5. Uncompressed backups can cause quota problems, ensure your backups are compressed in the WHM backup options. Step 6. After your determine the source of the files and
remove them then run /scripts/fixquotas
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:
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:
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. /scripts/initquota |
|
See Also
Have a Linux Problem
Linux Books
Linux Home: Linux System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|