Difference between revisions of "Fixing Quota"

From Pulsed Media Wiki
(style fix. Earlier was for additional information.)
Line 2: Line 2:
  
 
Situations where this maybe necessary are and may fix:
 
Situations where this maybe necessary are and may fix:
* Quotas show up as 0 (limits or used)
+
* Quotas show up as 0 (limits or used)
* Removed accounts still showing up on [[repquota]]
+
* Removed accounts still showing up on [[repquota]]
* Reported usage does not reflect reality (ie. shows more used for a user than actually is used)
+
* Reported usage does not reflect reality (ie. shows more used for a user than actually is used)
* Accounts missing from report
+
* Accounts missing from report
  
 
  cd /scripts/util
 
  cd /scripts/util

Revision as of 15:41, 24 March 2011

Occasionally quota data becomes skewed and requires a recheck. PM Software Stack includes automated script which does more than just rechecks the quota.

Situations where this maybe necessary are and may fix:

  • Quotas show up as 0 (limits or used)
  • Removed accounts still showing up on repquota
  • Reported usage does not reflect reality (ie. shows more used for a user than actually is used)
  • Accounts missing from report
cd /scripts/util
quotaoff -av
./quotaFix.php

After a while quota has been checked and new quota files have been created, and quota will be re-enabled automatically.

If you get write permission error, you might need to remove aquota.* from the FS and rerun quotafix, in case of /home:

rm -rf /home/aquota.*
quotaoff -av
./quotaFix.php