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.
To ensure accurate disk data, the file systems being checked should be quiescent when you manually run the quotacheck command.
Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
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.
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)