quotacheck - scan the file system, create, detect and repair quota files

Overview (SYNOPSIS)

quotacheck [ -agucfinvdFR ] filesystem

Description (DESCRIPTION)

quotacheck look at each file system, the establishment of the current disk usage table and the table and compare the contents of the corresponding quota file (if you use the option -c , this step will be omitted). If you find any discrepancies, both the quota file and the current incorrect system quota copy (used only when the selected file system quota, which is updated). By default, only the selected user quota.

quotacheck requires that each file system has been detected in the root directory are called aquota.user and aquota.group quota file. If this file does not exist, quotacheck will create it (them).

quotacheck is typically located at the system startup /etc/init.d established in quotaon (8) before running disk quotas initialization script.

It is strongly recommended to run quotacheck turned off before the quota, unmount the file system or set it to read-only mode, otherwise it will damage the quota.
Quotacheck before starting a scan, it tries to assemble each file system in read-only mode. When the scan is complete, it will re-assemble the file system read-write mode. you can use the -F option quotacheck in read-only mode to try to re-assemble continue to run after the file system failed.

The time required to complete the scan is proportional to the extent of the use of the disk.

Options (OPTIONS)

-v
quotacheck reports which each operation at runtime. does not report in the default state.
-d
Enter debug state. This will generate a lot of information for debugging. Output very detailed information, and the scanning speed will slow down.
-a
If it is substituted with any file system name, the quotacheck will detect all / etc / mtab listed as read-write file system quota. By default, only the / etc / mtab is listed as quota file the system will be detected.
-u
Detected only in the / etc mtab / user quotas listed or specified file system. This is the action taken by default.
-g
Detected only in the / etc / mtab group quotas established in lists or file system
-c
Do not read existing quota files. Perform a new scan, and the results saved to disk.
-f
Mandatory testing for all use quotas file system. This option is not recommended, because it produces quota files may be out of sync.
-F
Mandatory testing file in read-write system. When using this option, make sure the file system at the time of scanning, the process does not need to write data to the file system.
-R
When the -a When used together, detecting the root of all other file systems outside (root) file system.
-i
Interactive mode. By default, the quotacheck exits after the discovery of the error. In interactive mode, the user will be asked to take recommendation Reference option -n .
-n
Sometimes you find on the same ID multiple results. Typically this happens quotacheck will terminate. This option forces the use of the first result (this option is also valid in interactive mode).

Note (NOTE)

quotacheck should only be performed by a superuser, because unauthorized users can not read a normally given all the directories on the file system. 

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11097700.html