Checks file system quota consistency.
quotacheck [ -g ] [ -u ] [ -v ] { -a | Filesystem ... }
The quotacheck command examines a file system specified by the FileSystem parameter, builds a table of current disk usage, and compares the information in the table to that recorded in the file system's disk quota file. If any inconsistencies are detected, the quota files are updated. If an active file system is checked, the current system copy of the incorrect quotas is updated as well. By default, both user and group quotas are checked.
The optional -g flag specifies that only group quotas are checked. The optional -u flag specifies that only user quotas are checked. Specifying both -g and -u flags is equivalent to the default option. The -a flag specifies that all file systems with disk quotas in the /etc/filesystems file are checked.
The quotacheck command normally operates silently. If the -v flag is specified, the quotacheck command reports discrepancies between the calculated and recorded disk quotas.
The quotacheck command expects each filesystem to contain the quota.user and quota.group files, located at the root of the associated file system. These default file names can be changed in the /etc/filesystems file. If these files do not exist, the quotacheck command creates them.
Note: Do not run the quotacheck command against an active filesystem. If the filesystem has any current activity, running quotacheck may result in incorrect disk usage information.
Access Control: Only a user with root user authority can execute this command.
quotacheck /usr
quotacheck -g /usr
The quota command displays disk usage and quotas. The repquota command summarizes quotas for a file system. The quotaon and quotaoff commands enable and disable disk quotas, respectively. The edquota command edits user and group quotas.
How to Set Up the Disk Quota System in AIX Version 4.3 System Management Guide: Operating System and Devices.