quotacheck(8) — Maintenance
OSF
NAME
quotacheck − Checks filesystem quota consistency
SYNOPSIS
quotacheck [-guv] filesystem ...
quotacheck -a [-guv]
FLAGS
−aChecks all filesystems identified in /etc/fstab as read/write with disk quotas.
-gChecks group quotas only.
-uChecks user quotas only.
−vReports discrepancies between the calculated and recorded disk quotas.
DESCRIPTION
The quotacheck command examines each specified filesystem, builds a table of current disk usage, and compares this table against that stored in the disk quota file for the filesystem. If any inconsistencies are detected, both the quota file and the current system copy of the incorrect quotas are updated (the latter only occurs if an active filesystem is checked).
quotacheck must be run by a user with superuser authority.
By default both user and group quotas listed in /etc/fstab are checked. The -g flag specifies that only group quotas should be checked; the -u flag specifies that only user quotas should be checked.
quotacheck does not report on any inconsistencies, or any of its activities, unless you use the -v flag.
quotacheck runs parallel passes on the filesystems required, using the pass numbers in /etc/fstab in a manner identical to fsck. quotacheck expects each filesystem to be checked to have quota files named quota.user and quota.group in the root directory. (These default file locations may be overridden in etc/fstab.) If these files are not present, quotacheck creates them.
The quotacheck command is normally invoked before enabling disk quotas with the quotaon command.
The quotacheck command accesses the raw device in calculating the actual disk usage for each user. Thus, the filesystems checked should be quiescent while quotacheck is running.
FILES
/usr/sbin/quotacheck
Specifies the command path
/usr/sbin/fsck
Specifies the filesystems check program
[filesystem_root]/quota.user
Contains user quotas for filesystem
[filesystem_root]/quota.group
Contains user quotas for filesystem
/etc/fstabContains filesystem names and locations
RELATED INFORMATION
Commands: edquota(8), fsck(8), quota(1), quotaon(8), repquota(8).
Functions: quotactl(2).
Files: fstab(4).