1 | .TH mmcheckquota 02/16/06 |
---|
2 | mmcheckquota Command |
---|
3 | .SH "Name" |
---|
4 | .PP |
---|
5 | \fBmmcheckquota\fR - Checks file system user, group and fileset |
---|
6 | quotas. |
---|
7 | .SH "Synopsis" |
---|
8 | .PP |
---|
9 | \fBmmcheckquota\fR [\fB-v\fR] {\fIDevice\fR |
---|
10 | [\fIDevice\fR...] | \fB-a\fR} |
---|
11 | .PP |
---|
12 | Or, |
---|
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 |
---|
20 | The \fBmmcheckquota\fR command serves two purposes: |
---|
21 | .RS +3 |
---|
22 | .HP 3 |
---|
23 | 1. Count inode and space usage in a file system by user, group and |
---|
24 | fileset, and write the collected data into quota files. |
---|
25 | .HP 3 |
---|
26 | 2. Replace either the user, group, or fileset quota files, for the file |
---|
27 | system designated by \fIDevice\fR, thereby restoring the quota files for |
---|
28 | the 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 |
---|
30 | created when the \fBmmcheckquota\fR command is issued. |
---|
31 | .RE |
---|
32 | .PP |
---|
33 | The \fBmmcheckquota\fR command counts inode and space usage for a file |
---|
34 | system and writes the collected data into quota files. Indications |
---|
35 | leading you to the conclusion you should run the \fBmmcheckquota\fR command |
---|
36 | include: |
---|
37 | .RS +3 |
---|
38 | .HP 3 |
---|
39 | 1. \fBMMFS_QUOTA\fR error log entries. This error log entry is |
---|
40 | created when the quota manager has a problem reading or writing the quota |
---|
41 | file. |
---|
42 | .HP 3 |
---|
43 | 2. Quota information is lost due to a node failure. A node failure |
---|
44 | could leave users unable to open files or deny them disk space that their |
---|
45 | quotas should allow. |
---|
46 | .HP 3 |
---|
47 | 3. |
---|
48 | The in-doubt value is approaching the quota limit. |
---|
49 | .sp |
---|
50 | The sum of the in-doubt value and the current usage may not exceed the hard |
---|
51 | limit. Consequently, the actual block space and number of files |
---|
52 | available to the user of the group may be constrained by the in-doubt |
---|
53 | value. Should the in-doubt value approach a significant percentage of |
---|
54 | the quota, use the \fBmmcheckquota\fR command to account for the lost space |
---|
55 | and files. |
---|
56 | .HP 3 |
---|
57 | 4. User, group, or fileset quota files are corrupted. |
---|
58 | .RE |
---|
59 | .PP |
---|
60 | The result of an online quota check may be incomplete when files are being |
---|
61 | accessed through SANergy at the time of the file system quota check. |
---|
62 | See |
---|
63 | \fISANergy export considerations\fR in |
---|
64 | \fIGeneral Parallel File System: Advanced |
---|
65 | Administration Guide\fR. To get an accurate online quota check |
---|
66 | result, rerun \fBmmcheckquota\fR when SANergy is not active. |
---|
67 | .PP |
---|
68 | The \fBmmcheckquota\fR command is I/O intensive and should be run when |
---|
69 | the system load is light. When issuing the \fBmmcheckquota\fR |
---|
70 | command on a mounted file system, negative in-doubt values may be reported if |
---|
71 | the quota server processes a combination of up-to-date and back-level |
---|
72 | information. 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 |
---|
80 | Checks all GPFS file systems in the cluster from which the command is |
---|
81 | issued. |
---|
82 | .RE |
---|
83 | .PP |
---|
84 | .RS +3 |
---|
85 | \fB\fI\fR\fIDevice\fR |
---|
86 | \fR |
---|
87 | .RE |
---|
88 | .RS +9 |
---|
89 | The device name of the file system. File system names need not be |
---|
90 | fully-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 |
---|
99 | Replace the current group quota file with the file indicated. |
---|
100 | .PP |
---|
101 | When 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 |
---|
115 | Replace the current fileset quota file with the file indicated. |
---|
116 | .PP |
---|
117 | When 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 |
---|
131 | Replace the current user quota file with the file indicated. |
---|
132 | .PP |
---|
133 | When 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 |
---|
148 | Reports 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 |
---|
158 | Successful completion. |
---|
159 | .RE |
---|
160 | .PP |
---|
161 | .RS +3 |
---|
162 | \fBnonzero |
---|
163 | \fR |
---|
164 | .RE |
---|
165 | .RS +9 |
---|
166 | A failure has occurred. |
---|
167 | .RE |
---|
168 | .SH "Security" |
---|
169 | .PP |
---|
170 | You must have root authority to run the \fBmmcheckquota\fR |
---|
171 | command. |
---|
172 | .PP |
---|
173 | GPFS must be running on the node from which the \fBmmcheckquota\fR |
---|
174 | command is issued. |
---|
175 | .SH "Examples" |
---|
176 | .RS +3 |
---|
177 | .HP 3 |
---|
178 | 1. To check quotas for file system \fBfs0\fR, issue this command: |
---|
179 | .sp |
---|
180 | .nf |
---|
181 | mmcheckquota fs0 |
---|
182 | .fi |
---|
183 | .sp |
---|
184 | The system displays information only if a problem is found. |
---|
185 | .HP 3 |
---|
186 | 2. To check quotas for all file systems, issue this command: |
---|
187 | .sp |
---|
188 | .nf |
---|
189 | mmcheckquota -a |
---|
190 | .fi |
---|
191 | .sp |
---|
192 | The system displays information only if a problem is found or if quota |
---|
193 | management is not enabled for a file system: |
---|
194 | .sp |
---|
195 | .nf |
---|
196 | fs2: no quota management installed |
---|
197 | fs3: no quota management installed |
---|
198 | .fi |
---|
199 | .sp |
---|
200 | .HP 3 |
---|
201 | 3. To report discrepancies between calculated and recorded disk quotas, |
---|
202 | issue this command: |
---|
203 | .sp |
---|
204 | .nf |
---|
205 | mmcheckquota -v fs1 |
---|
206 | .fi |
---|
207 | .sp |
---|
208 | The system displays information similar to: |
---|
209 | .sp |
---|
210 | .nf |
---|
211 | fs1: Start quota check |
---|
212 | 19 % complete on Mon Feb 6 17:39:55 2006 |
---|
213 | 34 % complete on Mon Feb 6 17:40:26 2006 |
---|
214 | 55 % complete on Mon Feb 6 17:40:57 2006 |
---|
215 | 64 % complete on Mon Feb 6 17:41:29 2006 |
---|
216 | 85 % complete on Mon Feb 6 17:42:00 2006 |
---|
217 | 99 % complete on Mon Feb 6 17:42:33 2006 |
---|
218 | fs1: quota check found the following differences: |
---|
219 | USR 0: 98463 subblocks counted (was 3601); 17404 inodes counted (was 15999) |
---|
220 | USR 60001: 4766 subblocks counted (was -4499); 644 inodes counted (was 639) |
---|
221 | USR 60008: 4162 subblocks counted (was -5654); 534 inodes counted (was 532) |
---|
222 | USR 60012: 7248 subblocks counted (was -1619); 2013 inodes counted (was 2217) |
---|
223 | USR 60013: 6915 subblocks counted (was -616); 1773 inodes counted (was 2297) |
---|
224 | USR 60014: 6553 subblocks counted (was -1124); 1885 inodes counted (was 2533) |
---|
225 | USR 60020: 7045 subblocks counted (was -2486); 2050 inodes counted (was 1986) |
---|
226 | GRP 0: 98529 subblocks counted (was 6406); 17437 inodes counted (was 15910) |
---|
227 | GRP 100: 116038 subblocks counted (was -65884); 26277 inodes counted (was 30656) |
---|
228 | FILESET 0: 214567 subblocks counted (was -60842); 43714 inodes counted (was 46661) |
---|
229 | .fi |
---|
230 | .sp |
---|
231 | .RE |
---|
232 | .SH "See also" |
---|
233 | .PP |
---|
234 | mmedquota Command |
---|
235 | .PP |
---|
236 | mmfsck Command |
---|
237 | .PP |
---|
238 | mmlsquota Command |
---|
239 | .PP |
---|
240 | mmquotaon Command |
---|
241 | .PP |
---|
242 | mmquotaoff Command |
---|
243 | .PP |
---|
244 | mmrepquota Command |
---|
245 | .SH "Location" |
---|
246 | .PP |
---|
247 | \fB/usr/lpp/mmfs/bin\fR |
---|
248 | .PP |
---|