quotacheck - Checks file system quota consistency
/usr/sbin/quotacheck [-guv] filesystem ...
/usr/sbin/quotacheck -a [-guv] [-l number]
Specifies one or more file systems. Specify any file system by entering its full path name. The full path name is the file system's mount point in the /etc/fstab file. You can also specify a UFS file system by entering the name of its device special file. For example: /dev/rz3c. You can also specify an AdvFS fileset by entering the name of the file domain, a pound sign (#), and the name of the fileset. For example: root_domain#root.
Checks all file systems identified in the /etc/fstab file as read/write with disk quotas. Checks group quotas only. Specifies the number of times to perform disk quota checking. Checks user quotas only. Reports discrepancies between the calculated and recorded disk quotas.
The quotacheck command examines each specified file system, builds a table of current disk usage, and compares this table against that stored in the disk quota file for the file system. If any inconsistencies are detected, both the quota file and the current system copy of the incorrect quotas are updated. Each file system must be mounted with quotas enabled.
The quotacheck command runs parallel passes on file systems using the number specified in the fsck field of the file system's entry in the /etc/fstab file. The quotacheck command only checks file systems with pass number 1 or higher in the fsck field. A file system with no pass number is not checked.
For both UFS file systems and AdvFS filesets, you should assign the root file system a fsck field value of 1, and a value of 2 or higher to other file systems. See fstab(4) for more information.
The quotacheck command checks only file systems that have the userquota or groupquota option specified in the /etc/fstab file.
The quotacheck command must be run by a user with superuser authority.
By default, both user and group quotas listed in the /etc/fstab file are checked. Use the -g flag to specify that only group quotas be checked; use the -u flag to specify that only user quotas be checked.
The quotacheck command does not display activity information while checking file systems. Use the -v flag to report inconsistencies found or procedures performed by the quotacheck command.
The file systems to be checked should be quiescent while the quotacheck command is running.
The term file system represents either a UFS file system or an AdvFS fileset.
You must be the root user to use the quotacheck command.
Specifies the command path Contains user quotas for fileset Contains group quotas for fileset Contains file system names and locations
Commands: edquota(8), fsck(8), quota(1), quotaon(8), repquota(8).
Files: fstab(4). delim off