Howto recalculate quotas on CentOs + Bluequartz

Menù di navigazione
  • Home
  • Contacts
HOME | Index |

Recalculate Quotas

How to recalculate quotas

In our Bluequartz servers sometimes we had a few problems with the user's quotas. Yes it happened that, sometimes, some users had reported in the disk usage feature of the control panel a quota that was not real. We don't really know why and how this can happen, but what we did are the following commands, run as root:

First turn off quota

/sbin/quotaoff -ug /home/

Then backup and reset the quota database

mv /home/aquota.user /home/aquota.user.bck
mv /home/aquota.group /home/aquota.group.bck

Then run quotacheck to get the quota back in sync

/sbin/quotacheck /home/ -vugm

Finally turn back on quota

/sbin/quotaon -ug /home/

And restore the values in the CODB database

/usr/sausalito/sbin/disk_restorequotas.pl

Hope this helps!

Labs
  • CentOS + BlueQuartz
  • Installing Spamassassin ClamAv and Mailscanner on Bluequartz
  • SARE Rules & RulesDuJour
  • Installing MRTG
  • Mass Change IP
  • CCED problems
  • Deleting old logfiles
  • POP3 problems
  • Recalculate Quotas
  • How to block an IP address
  • NAMED and DNS
  • PHP
  • Enabling safe mode per-directory
  • Howto install php4 & php5 on Apache2
  • Linux
  • Automating Mysql backups
  • Restoring MySQL dumps
  • Replacing Text In Files
  • Firefox and flash on x86_64
  • Find user's files
  • Lines of code
  • Vsftp with virtual users
  • MSN
  • RandomCase

Home | Contacts | E.R.WEB Official Site