18.9.7 Maintaining the Accuracy of Disk Quota Reporting

Uncontrolled system shutdowns can lead to inaccuracies in disk quota reports.

To rebuild the quota database for a file system:

  1. Disable disk quotas for the file system:

    # quotaoff -guv filesystem
  2. Unmount the file system:

    # umount filesystem
  3. Enter the following command to rebuild the quota databases:

    # quotacheck -guv filesystem
  4. Mount the file system:

    # mount filesystem
  5. Enable disk quotas for the file system:

    # quotaoff -guv filesystem

For more information, see the quotacheck(8) manual page.