source: gpfs_3.1_ker2.6.20/share/man/man8/mmcheckquota.8 @ 16

Last change on this file since 16 was 16, checked in by rock, 16 years ago
File size: 6.2 KB
Line 
1.TH mmcheckquota 02/16/06
2mmcheckquota Command
3.SH "Name"
4.PP
5\fBmmcheckquota\fR - Checks file system user, group and fileset
6quotas.
7.SH "Synopsis"
8.PP
9\fBmmcheckquota\fR [\fB-v\fR] {\fIDevice\fR
10[\fIDevice\fR...] | \fB-a\fR}
11.PP
12Or,
13.PP
14\fBmmcheckquota\fR {[\fB-u \fR \fIUserQuotaFilename\fR]
15| [\fB-g\fR \fIGroupQuotaFileName\fR] | [\fB-j\fR
16\fIFilesetQuotaFilename\fR]} \fIDevice\fR
17.PP
18\fBDescription\fR
19.PP
20The \fBmmcheckquota\fR command serves two purposes:
21.RS +3
22.HP 3
231. Count inode and space usage in a file system by user, group and
24fileset, and write the collected data into quota files.
25.HP 3
262. Replace either the user, group, or fileset quota files, for the file
27system designated by \fIDevice\fR, thereby restoring the quota files for
28the file system. These files must be contained in the root directory of
29\fIDevice\fR. If a backup copy does not exist, an empty file is
30created when the \fBmmcheckquota\fR command is issued.
31.RE
32.PP
33The \fBmmcheckquota\fR command counts inode and space usage for a file
34system and writes the collected data into quota files. Indications
35leading you to the conclusion you should run the \fBmmcheckquota\fR command
36include:
37.RS +3
38.HP 3
391. \fBMMFS_QUOTA\fR error log entries. This error log entry is
40created when the quota manager has a problem reading or writing the quota
41file.
42.HP 3
432. Quota information is lost due to a node failure. A node failure
44could leave users unable to open files or deny them disk space that their
45quotas should allow.
46.HP 3
473.
48The in-doubt value is approaching the quota limit.
49.sp
50The sum of the in-doubt value and the current usage may not exceed the hard
51limit. Consequently, the actual block space and number of files
52available to the user of the group may be constrained by the in-doubt
53value. Should the in-doubt value approach a significant percentage of
54the quota, use the \fBmmcheckquota\fR command to account for the lost space
55and files.
56.HP 3
574. User, group, or fileset quota files are corrupted.
58.RE
59.PP
60The result of an online quota check may be incomplete when files are being
61accessed through SANergy at the time of the file system quota check.
62See
63\fISANergy export considerations\fR in
64\fIGeneral Parallel File System: Advanced
65Administration Guide\fR. To get an accurate online quota check
66result, rerun \fBmmcheckquota\fR when SANergy is not active.
67.PP
68The \fBmmcheckquota\fR command is I/O intensive and should be run when
69the system load is light. When issuing the \fBmmcheckquota\fR
70command on a mounted file system, negative in-doubt values may be reported if
71the quota server processes a combination of up-to-date and back-level
72information. This is a transient situation and may be ignored.
73.SH "Parameters"
74.PP
75.RS +3
76\fB-a
77\fR
78.RE
79.RS +9
80Checks all GPFS file systems in the cluster from which the command is
81issued.
82.RE
83.PP
84.RS +3
85\fB\fI\fR\fIDevice\fR
86\fR
87.RE
88.RS +9
89The device name of the file system. File system names need not be
90fully-qualified. \fBfs0\fR is as acceptable as
91\fB/dev/fs0\fR.
92.RE
93.PP
94.RS +3
95\fB-g \fIGroupQuotaFileName\fR
96\fR
97.RE
98.RS +9
99Replace the current group quota file with the file indicated.
100.PP
101When replacing quota files with the \fB-g\fR option:
102.RS +3
103.HP 3
104\(bu The quota file must be in the root directory of the file system.
105.HP 3
106\(bu The file system must be unmounted.
107.RE
108.RE
109.PP
110.RS +3
111\fB-j \fIFilesetQuotaFilename\fR
112\fR
113.RE
114.RS +9
115Replace the current fileset quota file with the file indicated.
116.PP
117When replacing quota files with the \fB-j\fR option:
118.RS +3
119.HP 3
120\(bu The quota file must be in the root directory of the file system.
121.HP 3
122\(bu The file system must be unmounted.
123.RE
124.RE
125.PP
126.RS +3
127\fB-u \fIUserQuotaFilename\fR
128\fR
129.RE
130.RS +9
131Replace the current user quota file with the file indicated.
132.PP
133When replacing quota files with the \fB-u\fR option:
134.RS +3
135.HP 3
136\(bu The quota file must be in the root directory of the file system.
137.HP 3
138\(bu The file system must be unmounted.
139.RE
140.RE
141.SH "Options"
142.PP
143.RS +3
144\fB-v
145\fR
146.RE
147.RS +9
148Reports discrepancies between calculated and recorded disk quotas.
149.RE
150.SH "Exit status"
151.PP
152.PP
153.RS +3
154\fB0
155\fR
156.RE
157.RS +9
158Successful completion.
159.RE
160.PP
161.RS +3
162\fBnonzero
163\fR
164.RE
165.RS +9
166A failure has occurred.
167.RE
168.SH "Security"
169.PP
170You must have root authority to run the \fBmmcheckquota\fR
171command.
172.PP
173GPFS must be running on the node from which the \fBmmcheckquota\fR
174command is issued.
175.SH "Examples"
176.RS +3
177.HP 3
1781. To check quotas for file system \fBfs0\fR, issue this command:
179.sp
180.nf
181mmcheckquota fs0
182.fi
183.sp
184The system displays information only if a problem is found.
185.HP 3
1862. To check quotas for all file systems, issue this command:
187.sp
188.nf
189mmcheckquota -a
190.fi
191.sp
192The system displays information only if a problem is found or if quota
193management is not enabled for a file system:
194.sp
195.nf
196fs2: no quota management installed
197fs3: no quota management installed
198.fi
199.sp
200.HP 3
2013. To report discrepancies between calculated and recorded disk quotas,
202issue this command:
203.sp
204.nf
205mmcheckquota -v fs1
206.fi
207.sp
208The system displays information similar to:
209.sp
210.nf
211fs1: Start quota check
21219 % complete on Mon Feb 6 17:39:55 2006
21334 % complete on Mon Feb 6 17:40:26 2006
21455 % complete on Mon Feb 6 17:40:57 2006
21564 % complete on Mon Feb 6 17:41:29 2006
21685 % complete on Mon Feb 6 17:42:00 2006
21799 % complete on Mon Feb 6 17:42:33 2006
218fs1: quota check found the following differences:
219USR 0: 98463 subblocks counted (was 3601); 17404 inodes counted (was 15999)
220USR 60001: 4766 subblocks counted (was -4499); 644 inodes counted (was 639)
221USR 60008: 4162 subblocks counted (was -5654); 534 inodes counted (was 532)
222USR 60012: 7248 subblocks counted (was -1619); 2013 inodes counted (was 2217)
223USR 60013: 6915 subblocks counted (was -616); 1773 inodes counted (was 2297)
224USR 60014: 6553 subblocks counted (was -1124); 1885 inodes counted (was 2533)
225USR 60020: 7045 subblocks counted (was -2486); 2050 inodes counted (was 1986)
226GRP 0: 98529 subblocks counted (was 6406); 17437 inodes counted (was 15910)
227GRP 100: 116038 subblocks counted (was -65884); 26277 inodes counted (was 30656)
228FILESET 0: 214567 subblocks counted (was -60842); 43714 inodes counted (was 46661)
229.fi
230.sp
231.RE
232.SH "See also"
233.PP
234mmedquota Command
235.PP
236mmfsck Command
237.PP
238mmlsquota Command
239.PP
240mmquotaon Command
241.PP
242mmquotaoff Command
243.PP
244mmrepquota Command
245.SH "Location"
246.PP
247\fB/usr/lpp/mmfs/bin\fR
248.PP
Note: See TracBrowser for help on using the repository browser.