CODE
quotaoff -avug
quotacheck -augm
quotaon -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
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
/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.