System Administration Guide: Advanced Administration

ProcedureHow to Check Quota Consistency

The quotacheck command is run automatically when a system is rebooted. You generally do not have to run the quotacheck command on an empty file system with quotas. However, if you are setting up quotas on a file system with existing files, you need to run the quotacheck command to synchronize the quota database with the files or inodes that already exist in the file system.

Also keep in mind that running the quotacheck command on large file systems can be time-consuming.

Note –

To ensure accurate disk data, the file systems being checked should be quiescent when you run the quotacheck command manually.

  1. Become superuser or assume an equivalent role.


  2. Run a consistency check on UFS file systems.

    # quotacheck [-va] filesystem 

    (Optional) Identifies the disk quotas for each user on a particular file system.


    Checks all file systems with an rq entry in the /etc/vfstab file.


    Specifies the file system to check.

    See the quotacheck(1M) man page for more information.

Example 7–4 Checking Quota Consistency

The following example shows how to check quotas for the /export/home file system on the /dev/rdsk/c0t0d0s7 slice. The /export/home file system is the only file system with an rq entry in the /etc/vfstab file.

# quotacheck -va
*** Checking quotas for /dev/rdsk/c0t0d0s7 (/export/home)