[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 4

quotacheck Command

Purpose

Checks file system quota consistency.

Syntax

quotacheck [ -g ] [ -u ] [ -v ] { -a | Filesystem ... }

Description

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.

Flags

-a Checks all file systems with disk quotas and read-write permissions indicated by the /etc/filesystems file.
-g Checks group quotas only.
-u Checks user quotas only.
-v Reports discrepancies between the calculated and recorded disk quotas.

Security

Access Control: Only a user with root user authority can execute this command.

Examples

  1. To check the user and group quotas in the /usr file system, enter:
    quotacheck /usr
  2. To check only the group quotas in the /usr file system, enter:
    quotacheck -g /usr

Files

quota.usr Specifies user quotas.
quota.group Specifies group quotas.
/etc/filesystems Contains file system names and locations.
/etc/group Contains basic group attributes.
/etc/passwd Contains user names.

Related Information

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.


[ Previous | Next | Contents | Glossary | Home | Search ]