1 | .TH mmdefedquota 03/02/06 |
---|
2 | mmdefedquota Command |
---|
3 | .SH "Name" |
---|
4 | .PP |
---|
5 | \fBmmdefedquota\fR - Sets default quota limits to a file |
---|
6 | system. |
---|
7 | .SH "Synopsis" |
---|
8 | .PP |
---|
9 | \fBmmdefedquota\fR {\fB-u\fR | \fB-g\fR | \fB-j\fR} |
---|
10 | \fIDevice\fR |
---|
11 | .SH "Description" |
---|
12 | .PP |
---|
13 | Use the \fBmmdefedquota\fR command to set or change default quota |
---|
14 | limits for new users, group and filesets for a file system. Default quota limits |
---|
15 | for a file system may be set or changed only if the file system was created |
---|
16 | with the \fB-Q yes\fR option on the |
---|
17 | \fBmmcrfs\fR |
---|
18 | command or changed with the |
---|
19 | \fBmmchfs\fR |
---|
20 | command. |
---|
21 | .PP |
---|
22 | The \fBmmdefedquota\fR command displays the current values for these |
---|
23 | limits, if any, and prompts you to enter new values using your default |
---|
24 | editor: |
---|
25 | .RS +3 |
---|
26 | .HP 3 |
---|
27 | \(bu Current block usage (display only) |
---|
28 | .HP 3 |
---|
29 | \(bu Current inode usage (display only) |
---|
30 | .HP 3 |
---|
31 | \(bu Inode soft limit |
---|
32 | .HP 3 |
---|
33 | \(bu Inode hard limit |
---|
34 | .HP 3 |
---|
35 | \(bu Block soft limit |
---|
36 | .sp |
---|
37 | Displayed in \fBKB\fR, but may be specified using \fBk\fR, |
---|
38 | \fBK\fR, \fBm\fR, \fBM\fR, \fBg\fR, or \fBG\fR . If no |
---|
39 | suffix is provided, the number is assumed to be in \fBbytes\fR. |
---|
40 | .HP 3 |
---|
41 | \(bu Block hard limit |
---|
42 | .sp |
---|
43 | Displayed in \fBKB\fR, but may be specified using \fBk\fR, |
---|
44 | \fBK\fR, \fBm\fR, \fBM\fR, \fBg\fR, or \fBG\fR. If no |
---|
45 | suffix is provided, the number is assumed to be in \fBbytes\fR. |
---|
46 | .RE |
---|
47 | .RS +3 |
---|
48 | \fBNote:\fR |
---|
49 | .RE |
---|
50 | .RS +9 |
---|
51 | A block or inode limit of 0 indicates no limit. |
---|
52 | .RE |
---|
53 | .PP |
---|
54 | The \fBmmdefedquota\fR command waits for the edit window to be closed |
---|
55 | before checking and applying new values. If an incorrect entry is made, |
---|
56 | you must reissue the command and enter the correct values. |
---|
57 | .PP |
---|
58 | When setting quota limits for a file system, replication within the file |
---|
59 | system should be considered. GPFS quota management takes replication |
---|
60 | into account when reporting on and determining if quota limits have been |
---|
61 | exceeded for both block and file usage. In a file system that has |
---|
62 | either type of replication set to a value of two, the values reported on by |
---|
63 | both the |
---|
64 | \fBmmlsquota\fR command and the \fBmmrepquota\fR command are double the value reported |
---|
65 | by the \fBls\fR command. |
---|
66 | .PP |
---|
67 | The EDITOR environment variable must contain a complete path name, for |
---|
68 | example: |
---|
69 | .sp |
---|
70 | .nf |
---|
71 | export EDITOR=/bin/vi |
---|
72 | .fi |
---|
73 | .sp |
---|
74 | .SH "Parameters" |
---|
75 | .PP |
---|
76 | .RS +3 |
---|
77 | \fB\fIDevice\fR |
---|
78 | \fR |
---|
79 | .RE |
---|
80 | .RS +9 |
---|
81 | The device name of the file system to have default quota values set |
---|
82 | for. |
---|
83 | .PP |
---|
84 | File system names need not be fully-qualified. \fBfs0\fR is |
---|
85 | just as acceptable as \fB/dev/fs0\fR. |
---|
86 | .RE |
---|
87 | .SH "Options" |
---|
88 | .PP |
---|
89 | .RS +3 |
---|
90 | \fB-g |
---|
91 | \fR |
---|
92 | .RE |
---|
93 | .RS +9 |
---|
94 | Specifies that the default quota value is to be applied for new groups |
---|
95 | accessing the specified file system. |
---|
96 | .RE |
---|
97 | .PP |
---|
98 | .RS +3 |
---|
99 | \fB-j |
---|
100 | \fR |
---|
101 | .RE |
---|
102 | .RS +9 |
---|
103 | Specifies that the default quota value is to be applied for new filesets |
---|
104 | in the specified file system. |
---|
105 | .RE |
---|
106 | .PP |
---|
107 | .RS +3 |
---|
108 | \fB-u |
---|
109 | \fR |
---|
110 | .RE |
---|
111 | .RS +9 |
---|
112 | Specifies that the default quota value is to be applied for new users |
---|
113 | accessing the specified file system. |
---|
114 | .RE |
---|
115 | .SH "Exit status" |
---|
116 | .PP |
---|
117 | .PP |
---|
118 | .RS +3 |
---|
119 | \fB0 |
---|
120 | \fR |
---|
121 | .RE |
---|
122 | .RS +9 |
---|
123 | Successful completion. |
---|
124 | .RE |
---|
125 | .PP |
---|
126 | .RS +3 |
---|
127 | \fBnonzero |
---|
128 | \fR |
---|
129 | .RE |
---|
130 | .RS +9 |
---|
131 | A failure has occurred. |
---|
132 | .RE |
---|
133 | .SH "Security" |
---|
134 | .PP |
---|
135 | You must have root authority to run the \fBmmdefedquota\fR |
---|
136 | command. |
---|
137 | .PP |
---|
138 | You must specify either the \fB-u\fR or the \fB-g\fR option. |
---|
139 | .PP |
---|
140 | GPFS must be running on the node from which the \fBmmdefedquota\fR |
---|
141 | command is issued. |
---|
142 | .SH "Examples" |
---|
143 | .PP |
---|
144 | To set default quotas for new users of the file system \fBfs1\fR, |
---|
145 | issue this command: |
---|
146 | .sp |
---|
147 | .nf |
---|
148 | mmdefedquota -u fs1 |
---|
149 | .fi |
---|
150 | .sp |
---|
151 | .PP |
---|
152 | The system displays information in your default editor similar to: |
---|
153 | .sp |
---|
154 | .nf |
---|
155 | *** Edit quota limits for USR DEFAULT entry |
---|
156 | NOTE: block limits will be rounded up to the next multiple |
---|
157 | of the block size. |
---|
158 | block units may be: K, M, or G. |
---|
159 | fs1: blocks in use: 0K, limits (soft = 0K, hard = 0K) |
---|
160 | inodes in use: 0, limits (soft = 0, hard = 0) |
---|
161 | .fi |
---|
162 | .sp |
---|
163 | .PP |
---|
164 | To confirm the change, issue this command: |
---|
165 | .sp |
---|
166 | .nf |
---|
167 | mmlsquota -d -u |
---|
168 | .fi |
---|
169 | .sp |
---|
170 | .PP |
---|
171 | The system displays information similar to: |
---|
172 | .sp |
---|
173 | .nf |
---|
174 | Block Limits | File Limits |
---|
175 | Filesystem type KB quota limit in_doubt grace |files quota limit in_doubt grace |
---|
176 | fs0 USR 0K 2500 10M 0 none | 0 100 1000 0 none |
---|
177 | fs1 USR no default limits |
---|
178 | fs2 USR no default limits |
---|
179 | .fi |
---|
180 | .sp |
---|
181 | .SH "See also" |
---|
182 | .PP |
---|
183 | mmcheckquota Command |
---|
184 | .PP |
---|
185 | mmdefquotaoff Command |
---|
186 | .PP |
---|
187 | mmdefquotaon Command |
---|
188 | .PP |
---|
189 | mmedquota Command |
---|
190 | .PP |
---|
191 | mmlsquota Command |
---|
192 | .PP |
---|
193 | mmquotaoff Command |
---|
194 | .PP |
---|
195 | mmrepquota Command |
---|
196 | .SH "Location" |
---|
197 | .PP |
---|
198 | \fB/usr/lpp/mmfs/bin\fR |
---|
199 | .PP |
---|