source: gpfs_3.1_ker2.6.20/share/man/man8/mmedquota.8 @ 123

Last change on this file since 123 was 16, checked in by rock, 17 years ago
File size: 6.3 KB
RevLine 
[16]1.TH mmedquota 03/02/06
2mmedquota Command
3.SH "Name"
4.PP
5\fBmmedquota\fR - Sets quota limits.
6.SH "Synopsis"
7.PP
8\fBmmedquota\fR {\fB-u\fR [\fB-p\fR
9\fIProtoUser\fR] \fIUser\fR...| \fB-g\fR
10[\fB-p\fR \fIProtoGroup\fR]
11\fIGroup\fR... | \fB-j\fR [\fB-p\fR
12\fIProtoFileset\fR ] \fIFileset\fR... |
13\fB-d\fR {\fB-u\fR \fIUser\fR...| \fB-g\fR
14\fIGroup\fR... | \fB-j\fR \fIFileset\fR...} |
15\fB-t\fR {\fB-u\fR | \fB-g\fR | \fB-j\fR}}
16.SH "Description"
17.PP
18The \fBmmedquota\fR command serves two purposes:
19.RS +3
20.HP 3
211. Sets or changes quota limits or grace periods for users, groups, and filesets  in the
22cluster from which the command is issued.
23.HP 3
242. Reestablishes user, group, or fileset default quotas for all file systems with
25default quotas enabled in the cluster.
26.RE
27.PP
28The \fBmmedquota\fR command displays the current values for these
29limits, if any, and prompts you to enter new values using your default
30editor:
31.RS +3
32.HP 3
33\(bu Current block usage (display only)
34.HP 3
35\(bu Current inode usage (display only)
36.HP 3
37\(bu Inode soft limit
38.HP 3
39\(bu Inode hard limit
40.HP 3
41\(bu Block soft limit
42.sp
43Displayed in \fBKB\fR, but may be specified using \fBg\fR,
44\fBG\fR, \fBk\fR, \fBK\fR, \fBm\fR, or \fBM\fR. If no
45suffix is provided, the number is assumed to be in \fBbytes\fR.
46.HP 3
47\(bu Block hard limit
48.sp
49Displayed in \fBKB\fR, but may be specified using \fBg\fR,
50\fBG\fR, \fBk\fR, \fBK\fR, \fBm\fR, or \fBM\fR. If no
51suffix is provided, the number is assumed to be in \fBbytes\fR.
52.RE
53.RS +3
54\fBNote:\fR
55.RE
56.RS +9
57A block or inode limit of 0 indicates no limit.
58.RE
59.PP
60The \fBmmedquota\fR command waits for the edit window to be closed
61before checking and applying new values. If an incorrect entry is made,
62you must reissue the command and enter the correct values.
63.PP
64You can also use the \fBmmedquota\fR command to change the file
65system-specific grace periods for block and file usage if the default of one
66week is unsatisfactory. The grace period is the time during which users
67can exceed the soft limit. If the user, group, or fileset does not show reduced usage
68below the soft limit before the grace period expires, the soft limit becomes
69the new hard limit.
70.PP
71When setting quota limits for a file system, replication within the file
72system should be considered. GPFS quota management takes replication
73into account when reporting on and determining if quota limits have been
74exceeded for both block and file usage. In a file system that has
75either type of replication set to a value of two, the values reported by both
76the
77\fBmmlsquota\fR command and the \fBmmrepquota\fR command are double the value reported
78by the \fBls\fR command.
79.PP
80The EDITOR environment variable must contain a complete path name, for
81example:
82.sp
83.nf
84export EDITOR=/bin/vi
85.fi
86.sp
87.SH "Parameters"
88.PP
89.RS +3
90\fB\fIUser\fR
91\fR
92.RE
93.RS +9
94Name or user ID of target user for quota editing.
95.RE
96.PP
97.RS +3
98\fB\fIGroup\fR
99\fR
100.RE
101.RS +9
102Name or group ID of target group for quota editing.
103.RE
104.SH "Options"
105.PP
106.RS +3
107\fB-d
108\fR
109.RE
110.RS +9
111Reestablish default quota limits for a specific user, group, or
112fileset that has had an explicit quota limit set by a previous invocation of
113the \fBmmedquota\fR command.
114.RE
115.PP
116.RS +3
117\fB-g
118\fR
119.RE
120.RS +9
121Sets quota limits or grace times for groups.
122.RE
123.PP
124.RS +3
125\fB-j
126\fR
127.RE
128.RS +9
129Sets quota limits or grace times for filesets.
130.RE
131.PP
132.RS +3
133\fB-p
134\fR
135.RE
136.RS +9
137Applies already-established limits to a particular user, group or
138fileset.
139.PP
140When invoked with the \fB-u\fR option, \fIProtoUser\fR limits are
141automatically applied to the specified \fIUser\fR or space-delimited list
142of users.
143.PP
144When invoked with the \fB-g\fR option, \fIProtoGroup\fR limits are
145automatically applied to the specified \fIGroup\fR or space-delimited list
146of groups.
147.PP
148When invoked with the \fB-j\fR option, \fIProtoFileset\fR limits are
149automatically applied to the specified fileset or space-delimited list of
150fileset names.
151.PP
152You can specify any user as a \fIProtoUser\fR for another \fIUser\fR,
153or any group as a \fIProtoGroup\fR for another \fIGroup\fR, or any
154fileset as a \fIProtoFileset\fR for another \fIFileset\fR.
155.RE
156.PP
157.RS +3
158\fB-t
159\fR
160.RE
161.RS +9
162Sets grace period during which quotas can exceed the soft limit before it
163is imposed as a hard limit. The default grace period is one
164week.
165.PP
166This flag is followed by one of the following flags: \fB-u\fR,
167\fB-g\fR or \fB-j\fR, to specify whether the changes apply to users,
168groups, or filesets respectively.
169.RE
170.PP
171.RS +3
172\fB-u
173\fR
174.RE
175.RS +9
176Sets quota limits or grace times for users.
177.RE
178.SH "Exit status"
179.PP
180.PP
181.RS +3
182\fB0
183\fR
184.RE
185.RS +9
186Successful completion.
187.RE
188.PP
189.RS +3
190\fBnonzero
191\fR
192.RE
193.RS +9
194A failure has occurred.
195.RE
196.SH "Security"
197.PP
198You must have root authority to run the \fBmmedquota\fR command.
199.PP
200GPFS must be running on the node from which the \fBmmedquota\fR command
201is issued.
202.SH "Examples"
203.RS +3
204.HP 3
2051. To set user quotas for userid \fBpaul\fR, issue this command:
206.sp
207.nf
208mmedquota -u paul
209.fi
210.sp
211The system displays information in your default editor similar to:
212.sp
213.nf
214*** Edit quota limits for USR paul:
215NOTE: block limits will be rounded up to the next multiple of
216the block size.  block units may be: K, M, or G
217gpfs0: blocks in use: 864K, limits (soft = 2500K , hard = 10M)
218inodes in use: 9, limits (soft = 100, hard = 1000)
219.fi
220.sp
221.HP 3
2222. To reset default group quota values for the group
223blueteam, issue this command:
224.sp
225.nf
226mmedquota -d -g blueteam
227.fi
228.sp
229To verify the change, issue this command:
230.sp
231.nf
232mmrepquota -q fs1
233.fi
234.sp
235The system displays information similar to:
236.sp
237.nf
238fs1: USR quota is on; default quota is on
239fs1: GRP quota is on; default quota is on
240fs1: FILESET quota is on; default quota is off
241.fi
242.sp
243.HP 3
2443. To change the grace periods for all users, issue this command:
245.sp
246.nf
247mmedquota -t -u
248.fi
249.sp
250The system displays information in your default editor similar to:
251.sp
252.nf
253*** Edit grace times:
254Time units may be : days, hours, minutes, or seconds
255Grace period before enforcing soft limits for USRs:
256gpfs0: block grace period: 7 days, file grace period: 7 days
257.fi
258.sp
259.RE
260.SH "See also"
261.PP
262mmcheckquota Command
263.PP
264mmdefedquota Command
265.PP
266mmdefquotaoff Command
267.PP
268mmdefquotaon Command
269.PP
270mmlsquota Command
271.PP
272mmquotaon Command
273.PP
274mmquotaoff Command
275.PP
276mmrepquota Command
277.SH "Location"
278.PP
279\fB/usr/lpp/mmfs/bin\fR
280.PP
Note: See TracBrowser for help on using the repository browser.