Help - Search - Members - Calendar
Full Version: Howto: Fix Corrupted Quota System
The Planet Forums > Control Panels > Ensim > Ensim HOWTOs
Jerry Brady
If the following quota system repair procedure fails:
CODE
quotaoff -avug

quotacheck -augm

quotaon -avug


This will help you to rebuild all the system quotas from scratch:

Start by clearing all existing quotas and reset the quota database and run a report to verify everything is okay (ignore warnings when quotacheck is run):
CODE
quotaoff -a

rm -f /aquota.*

touch /aquota.group

touch /aquota.user

quotacheck -ugamn

quotaon -a

repquota -uga

Now the quota system has been 'purged' and reset. The above procedure shouldn't take more than a few mintues.

The next step is to establish all of the quotas for your Ensim sites. This small snippet of shell script code will iterate across all your sites and apply the quotas as configured within Ensim for your sites. It can be run from the command line:
CODE
for SITE in $(sitelookup -a site_handle); do

/usr/local/bin/EditVirtDomain $SITE

done

This process can take some time and depends on the number of sites you have on your server. After this bit of shell script finishes, run another quota report in order to check the quota status for your sites:
CODE
repquota -ga |egrep "^--|^*|^Block|^Group|^admin|^  "

NOTE: The quotas for the individual users for each site will NOT be preserved when this process is finished. You will have to ask you site administrators to establish new quotas for any of their site's user accounts as necessary.

If anyone can offer suggestions as to how to improve this procedure in order to restore user-level quotas, I would appreciate it.
madsere
Why delete the quota files. Normally all you need to do is:

quotaoff -avug
quotacheck -augm
quotaon -avug
Jerry Brady
My presumption was that that technique failed, as it did for me recently. I've updated the original post accordingly.

Thanks for the feedback.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.