quotacheck - EFS filesystem quota consistency checker
/usr/etc/quotacheck [ -v ] [ -p ] filesystem ...
/usr/etc/quotacheck [ -v ] [ -p ] -a
/usr/etc/quotacheck [ -v ] -n nusers filesystem ...
/usr/etc/quotacheck [ -v ] -n nusers -a
quotacheck examines local EFS filesystems, 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 quotas
file and the current system copy of the incorrect quotas are updated (the
latter only occurs if quotas has been enabled for the filesystem). The
filesystem has to be mounted for quotacheck to be able to operate on it.
quotacheck ignores XFS filesystems since the XFS quota system is
journalled and therefore inherently consistent.
If the -a flag is supplied in place of any filesystem names, quotacheck
checks all the local filesystems indicated in /etc/fstab to be read-write
with disk quotas.
Normally quotacheck operates silently. If the -v option is supplied,
quotacheck indicates the disk quotas for each user whose quota
information was modified.
If the -p flag is supplied then parallel passes are run on the
filesystems required, using the pass numbers in /etc/fstab in an
identical fashion to fsck(1M).
quotacheck expects each filesystem to be checked to have a quota file
with the name quotas in the root directory. If none is present,
quotacheck ignores the filesystem.
The quotas file has an index followed by the users' quota information.
If while adding users with the help of the edquota(1M) command, there is
no more space left in the index, the superuser can increase the index
size with the -n option to permit the addition of more users to the
quotas file. nusers is the new number of users for whom sufficient index
size should be allocated. The default index size allows quotas for 2048
users. It is not possible to shrink the index size. It is advisable to
remount the filesystem after using this option.
quotacheck is normally run at boot time from the /etc/rc2.d directory,
quotacheck accesses the raw device in calculating the actual disk usage
for each user. Thus, the filesystems checked should be quiescent while
quotacheck is running.
quotacheck -v -n 3000 /usr
Increases the quotas file index size to support 3000 users (up from the
default of 2048) for the /usr filesystem.
/etc/fstab default filesystems
fsck(1M), quotaon(1M), quotactl(2).
PPPPaaaaggggeeee 2222 [ Back ]