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