| 1 | .TH mmchfs 12/01/06 |
|---|
| 2 | mmchfs Command |
|---|
| 3 | .SH "Name" |
|---|
| 4 | .PP |
|---|
| 5 | \fBmmchfs\fR - Changes the attributes of a GPFS file system. |
|---|
| 6 | .SH "Synopsis" |
|---|
| 7 | .PP |
|---|
| 8 | \fBmmchfs\fR \fIDevice\fR [\fB-A {\fR\fByes\fR | \fBno | |
|---|
| 9 | automount}\fR] [\fB-E {\fR\fByes | |
|---|
| 10 | \fR\fBno\fR\fB}\fR] [\fB-D {\fR\fBnfs4\fR | |
|---|
| 11 | \fBposix\fR\fB}\fR] [\fB-F\fR |
|---|
| 12 | \fIMaxNumInodes\fR[:\fINumInodesToPreallocate\fR]] |
|---|
| 13 | [\fB-k {\fR\fBposix\fR\fB | nfs4 | all}\fR] [\fB-K |
|---|
| 14 | {no | \fR\fBwhenpossible\fR\fB | always}\fR] [\fB-m\fR |
|---|
| 15 | \fIDefaultMetadataReplicas\fR] [\fB-o\fR |
|---|
| 16 | \fIMountOptions\fR] [\fB-Q {yes | \fR\fBno}\fR] |
|---|
| 17 | [\fB-r\fR \fIDefaultDataReplicas\fR] [\fB-S\fR |
|---|
| 18 | \fB{yes\fR\fB | no} ]\fR [\fB-T\fR |
|---|
| 19 | \fIMountpoint\fR] [\fB-V\fR] [\fB-z |
|---|
| 20 | {\fR\fByes\fR \fB| no}\fR] |
|---|
| 21 | .PP |
|---|
| 22 | Or, |
|---|
| 23 | .PP |
|---|
| 24 | \fBmmchfs\fR \fIDevice\fR [\fB-W \fR |
|---|
| 25 | \fINewDeviceName\fR] |
|---|
| 26 | .SH "Description" |
|---|
| 27 | .PP |
|---|
| 28 | Use the \fBmmchfs\fR command to change the attributes of a GPFS file |
|---|
| 29 | system. |
|---|
| 30 | .PP |
|---|
| 31 | All files created after issuing the \fBmmchfs\fR command take on the new |
|---|
| 32 | attributes. Existing files are not affected. Use the |
|---|
| 33 | \fBmmchattr\fR command to change the replication factor of existing |
|---|
| 34 | files. |
|---|
| 35 | .SH "Parameters" |
|---|
| 36 | .PP |
|---|
| 37 | .RS +3 |
|---|
| 38 | \fB\fIDevice\fR |
|---|
| 39 | \fR |
|---|
| 40 | .RE |
|---|
| 41 | .RS +9 |
|---|
| 42 | The device name of the file system to be changed. |
|---|
| 43 | .PP |
|---|
| 44 | File system names need not be fully-qualified. \fBfs0\fR is as |
|---|
| 45 | acceptable as \fB/dev/fs0\fR. However, file system names must be |
|---|
| 46 | unique across GPFS clusters. |
|---|
| 47 | .PP |
|---|
| 48 | This must be the first parameter. |
|---|
| 49 | .RE |
|---|
| 50 | .SH "Options" |
|---|
| 51 | .PP |
|---|
| 52 | .RS +3 |
|---|
| 53 | \fB-A {yes | \fBno\fR | automount} |
|---|
| 54 | \fR |
|---|
| 55 | .RE |
|---|
| 56 | .RS +9 |
|---|
| 57 | Indicates when the file system is to be mounted: |
|---|
| 58 | .PP |
|---|
| 59 | .RS +3 |
|---|
| 60 | \fByes |
|---|
| 61 | \fR |
|---|
| 62 | .RE |
|---|
| 63 | .RS +9 |
|---|
| 64 | When the GPFS daemon starts. |
|---|
| 65 | .RE |
|---|
| 66 | .PP |
|---|
| 67 | .RS +3 |
|---|
| 68 | \fBno |
|---|
| 69 | \fR |
|---|
| 70 | .RE |
|---|
| 71 | .RS +9 |
|---|
| 72 | Manual mount. |
|---|
| 73 | .RE |
|---|
| 74 | .PP |
|---|
| 75 | .RS +3 |
|---|
| 76 | \fBautomount |
|---|
| 77 | \fR |
|---|
| 78 | .RE |
|---|
| 79 | .RS +9 |
|---|
| 80 | When the file system is first accessed. |
|---|
| 81 | .RE |
|---|
| 82 | .RE |
|---|
| 83 | .PP |
|---|
| 84 | .RS +3 |
|---|
| 85 | \fB-D {nfs4 | \fBposix\fR} |
|---|
| 86 | \fR |
|---|
| 87 | .RE |
|---|
| 88 | .RS +9 |
|---|
| 89 | Specifies whether a 'deny-write open lock' will block writes, |
|---|
| 90 | which is expected and required by NFS V4. File systems supporting NFS |
|---|
| 91 | V4 must have \fB-D nfs4\fR set. The option \fB-D posix\fR allows |
|---|
| 92 | NFS writes even in the presence of a deny-write open lock. If you |
|---|
| 93 | intend to export the file system using NFS V4 or Samba, you must use \fB-D |
|---|
| 94 | nfs4\fR. For NFS V3 (or if the file system is not NFS exported at |
|---|
| 95 | all) use \fB-D posix\fR. |
|---|
| 96 | .RE |
|---|
| 97 | .PP |
|---|
| 98 | .RS +3 |
|---|
| 99 | \fB-E {yes | \fBno\fR} |
|---|
| 100 | \fR |
|---|
| 101 | .RE |
|---|
| 102 | .RS +9 |
|---|
| 103 | Specifies whether to report exact \fBmtime\fR values. If \fB-E |
|---|
| 104 | no\fR is specified, the \fBmtime\fR value is periodically updated. |
|---|
| 105 | If you desire to always display exact modification times, specify the \fB-E |
|---|
| 106 | yes\fR option. |
|---|
| 107 | .RE |
|---|
| 108 | .PP |
|---|
| 109 | .RS +3 |
|---|
| 110 | \fB-F \fIMaxNumInodes\fR[:\fINumInodesToPreallocate\fR] |
|---|
| 111 | \fR |
|---|
| 112 | .RE |
|---|
| 113 | .RS +9 |
|---|
| 114 | \fIMaxNumInodes\fR specifies the maximum number of files that can be |
|---|
| 115 | created. Allowable values range from the current number of created |
|---|
| 116 | inodes (determined by issuing the \fBmmdf\fR command with the \fB-F\fR |
|---|
| 117 | option), through the maximum number of files possibly supported as constrained |
|---|
| 118 | by the formula: |
|---|
| 119 | .PP |
|---|
| 120 | \fBmaximum number of files = (total file system space/2) / (inode size + |
|---|
| 121 | subblock size)\fR |
|---|
| 122 | .PP |
|---|
| 123 | If your file system has additional disks added or the number of inodes was |
|---|
| 124 | insufficiently sized at file system creation, you may change the number of |
|---|
| 125 | inodes and hence the maximum number of files that can be created. |
|---|
| 126 | .PP |
|---|
| 127 | For file systems that will be doing parallel file creates, if the total |
|---|
| 128 | number of free inodes is not greater than 5% of the total number of inodes, |
|---|
| 129 | there is the potential for slowdown in file system access. Take this |
|---|
| 130 | into consideration when changing your file system. |
|---|
| 131 | .PP |
|---|
| 132 | \fINumInodesToPreallocate\fR specifies the number of inodes that will be |
|---|
| 133 | preallocated by the system right away. If this number is not specified, |
|---|
| 134 | GPFS allocates inodes dynamically as needed. |
|---|
| 135 | .PP |
|---|
| 136 | The \fIMaxNumInodes\fR and \fINumInodesToPreallocate\fR values can be |
|---|
| 137 | specified with a suffix, for example 100K or 2M. |
|---|
| 138 | .RE |
|---|
| 139 | .PP |
|---|
| 140 | .RS +3 |
|---|
| 141 | \fB\fB-k {\fR\fBposix\fR\fB | nfs4 | all}\fR |
|---|
| 142 | \fR |
|---|
| 143 | .RE |
|---|
| 144 | .RS +9 |
|---|
| 145 | Specifies the type of authorization supported by the file system: |
|---|
| 146 | .PP |
|---|
| 147 | .RS +3 |
|---|
| 148 | \fBposix |
|---|
| 149 | \fR |
|---|
| 150 | .RE |
|---|
| 151 | .RS +9 |
|---|
| 152 | Traditional GPFS ACLs only (NFS V4 ACLs are not allowed). |
|---|
| 153 | Authorization controls are unchanged from earlier releases. |
|---|
| 154 | .RE |
|---|
| 155 | .PP |
|---|
| 156 | .RS +3 |
|---|
| 157 | \fBnfs4 |
|---|
| 158 | \fR |
|---|
| 159 | .RE |
|---|
| 160 | .RS +9 |
|---|
| 161 | Support for NFS V4 ACLs only. Users are not allowed to assign |
|---|
| 162 | traditional GPFS ACLs to any file system objects (directories and individual |
|---|
| 163 | files). |
|---|
| 164 | .RE |
|---|
| 165 | .PP |
|---|
| 166 | .RS +3 |
|---|
| 167 | \fBall |
|---|
| 168 | \fR |
|---|
| 169 | .RE |
|---|
| 170 | .RS +9 |
|---|
| 171 | Any supported ACL type is permitted. This includes traditional GPFS |
|---|
| 172 | (\fBposix\fR) and NFS V4 ACLs (\fBnfs4\fR). |
|---|
| 173 | .PP |
|---|
| 174 | The administrator is allowing a mixture of ACL types. For example, |
|---|
| 175 | \fBfileA\fR may have a \fBposix\fR ACL, while \fBfileB\fR in the same |
|---|
| 176 | file system may have an NFS V4 ACL, implying different access characteristics |
|---|
| 177 | for each file depending on the ACL type that is currently assigned. |
|---|
| 178 | .RE |
|---|
| 179 | .PP |
|---|
| 180 | Neither \fBnfs4\fR nor \fBall\fR should be specified here unless the |
|---|
| 181 | file system is going to be exported to NFS V4 clients. NFS V4 ACLs |
|---|
| 182 | affect file attributes (mode) and have access and authorization |
|---|
| 183 | characteristics that are different from traditional GPFS ACLs. |
|---|
| 184 | .RE |
|---|
| 185 | .PP |
|---|
| 186 | .RS +3 |
|---|
| 187 | \fB\fB-K {no | \fR\fBwhenpossible\fR\fB | always}\fR |
|---|
| 188 | \fR |
|---|
| 189 | .RE |
|---|
| 190 | .RS +9 |
|---|
| 191 | Specifies whether strict replication is to be enforced: |
|---|
| 192 | .PP |
|---|
| 193 | .RS +3 |
|---|
| 194 | \fBno |
|---|
| 195 | \fR |
|---|
| 196 | .RE |
|---|
| 197 | .RS +9 |
|---|
| 198 | Strict replication is not enforced. GPFS will try to create the |
|---|
| 199 | needed number of replicas, but will still return EOK as long as it can |
|---|
| 200 | allocate at least one replica. |
|---|
| 201 | .RE |
|---|
| 202 | .PP |
|---|
| 203 | .RS +3 |
|---|
| 204 | \fBwhenpossible |
|---|
| 205 | \fR |
|---|
| 206 | .RE |
|---|
| 207 | .RS +9 |
|---|
| 208 | Strict replication is enforced provided the disk configuration allows |
|---|
| 209 | it. If there is only one failure group, strict replication will not be |
|---|
| 210 | enforced. |
|---|
| 211 | .RE |
|---|
| 212 | .PP |
|---|
| 213 | .RS +3 |
|---|
| 214 | \fBalways |
|---|
| 215 | \fR |
|---|
| 216 | .RE |
|---|
| 217 | .RS +9 |
|---|
| 218 | Strict replication is enforced. |
|---|
| 219 | .RE |
|---|
| 220 | .RE |
|---|
| 221 | .PP |
|---|
| 222 | .RS +3 |
|---|
| 223 | \fB-m \fIDefaultMetaDataReplicas\fR |
|---|
| 224 | \fR |
|---|
| 225 | .RE |
|---|
| 226 | .RS +9 |
|---|
| 227 | Changes the default number of metadata replicas. Valid values are 1 |
|---|
| 228 | and 2 but cannot exceed the values of \fIMaxMetaDataReplicas\fR set when |
|---|
| 229 | the file system was created. |
|---|
| 230 | .RE |
|---|
| 231 | .PP |
|---|
| 232 | .RS +3 |
|---|
| 233 | \fB-o \fIMountOptions\fR |
|---|
| 234 | \fR |
|---|
| 235 | .RE |
|---|
| 236 | .RS +9 |
|---|
| 237 | Specifies the mount options to pass to the mount command when mounting the |
|---|
| 238 | file system. For a detailed description of the available mount options, |
|---|
| 239 | see GPFS-specific mount options. |
|---|
| 240 | .RE |
|---|
| 241 | .PP |
|---|
| 242 | .RS +3 |
|---|
| 243 | \fB-Q {yes | no} |
|---|
| 244 | \fR |
|---|
| 245 | .RE |
|---|
| 246 | .RS +9 |
|---|
| 247 | If \fByes\fR is specified, quotas are activated automatically when the |
|---|
| 248 | file system is mounted. If \fBno\fR is specified, the quota files |
|---|
| 249 | remain in the file system, but are not used. |
|---|
| 250 | .PP |
|---|
| 251 | To activate quota management: |
|---|
| 252 | .RS +3 |
|---|
| 253 | .HP 3 |
|---|
| 254 | 1. Unmount the file system everywhere |
|---|
| 255 | .HP 3 |
|---|
| 256 | 2. Run the command \fBmmchfs -Q yes\fR |
|---|
| 257 | .HP 3 |
|---|
| 258 | 3. Remount the file system, activating the new quota files |
|---|
| 259 | .HP 3 |
|---|
| 260 | 4. Compile inode and disk block statistics using the \fBmmcheckquota\fR |
|---|
| 261 | command. Use these values as a reference to establish realistic quota |
|---|
| 262 | values when issuing the \fBmmedquota\fR and \fBmmdefedquota\fR |
|---|
| 263 | commands. |
|---|
| 264 | .HP 3 |
|---|
| 265 | 5. For default quotas: |
|---|
| 266 | .RS +3 |
|---|
| 267 | .HP 3 |
|---|
| 268 | a. Issue the \fBmmdefedquota\fR command to establish default quota values |
|---|
| 269 | .HP 3 |
|---|
| 270 | b. Issue the \fBmmdefquotaon -d\fR command to activate default quotas |
|---|
| 271 | .RE |
|---|
| 272 | .HP 3 |
|---|
| 273 | 6. For explicit quotas: |
|---|
| 274 | .RS +3 |
|---|
| 275 | .HP 3 |
|---|
| 276 | a. Issue the \fBmmedquota\fR command to establish quota values |
|---|
| 277 | .RE |
|---|
| 278 | .RE |
|---|
| 279 | .PP |
|---|
| 280 | To deactivate quota management: |
|---|
| 281 | .RS +3 |
|---|
| 282 | .HP 3 |
|---|
| 283 | 1. Unmount the file system everywhere |
|---|
| 284 | .HP 3 |
|---|
| 285 | 2. Run the command \fBmmchfs -Q no\fR |
|---|
| 286 | .HP 3 |
|---|
| 287 | 3. Remount the file system, deactivating the quota files |
|---|
| 288 | .RE |
|---|
| 289 | .RE |
|---|
| 290 | .PP |
|---|
| 291 | .RS +3 |
|---|
| 292 | \fB-r \fIDefaultDataReplicas\fR |
|---|
| 293 | \fR |
|---|
| 294 | .RE |
|---|
| 295 | .RS +9 |
|---|
| 296 | Changes the default number of data replicas. Valid values are 1 and |
|---|
| 297 | 2 but cannot exceed the values of \fIMaxDataReplicas\fR set when the file |
|---|
| 298 | system was created. |
|---|
| 299 | .RE |
|---|
| 300 | .PP |
|---|
| 301 | .RS +3 |
|---|
| 302 | \fB-S {yes | no} |
|---|
| 303 | \fR |
|---|
| 304 | .RE |
|---|
| 305 | .RS +9 |
|---|
| 306 | Suppress the periodic updating of the value of \fBatime\fR as reported |
|---|
| 307 | by the \fBgpfs_stat()\fR, \fBgpfs_fstat()\fR, \fBstat()\fR, and |
|---|
| 308 | \fBfstat()\fR calls. If \fByes\fR is specified these calls report |
|---|
| 309 | the last time the file was accessed when the file system was mounted with the |
|---|
| 310 | \fB-S no\fR option. |
|---|
| 311 | .RE |
|---|
| 312 | .PP |
|---|
| 313 | .RS +3 |
|---|
| 314 | \fB-T \fIMountpoint\fR |
|---|
| 315 | \fR |
|---|
| 316 | .RE |
|---|
| 317 | .RS +9 |
|---|
| 318 | Change the mount point of the file system starting at the next mount of |
|---|
| 319 | the file system. |
|---|
| 320 | .PP |
|---|
| 321 | The file system must be unmounted on all nodes prior to issuing the |
|---|
| 322 | command. |
|---|
| 323 | .RE |
|---|
| 324 | .PP |
|---|
| 325 | .RS +3 |
|---|
| 326 | \fB-V |
|---|
| 327 | \fR |
|---|
| 328 | .RE |
|---|
| 329 | .RS +9 |
|---|
| 330 | After migration, change the file system format to the latest format |
|---|
| 331 | supported by the currently installed level of GPFS. This causes the |
|---|
| 332 | file system to become permanently incompatible with earlier releases of |
|---|
| 333 | GPFS. |
|---|
| 334 | .PP |
|---|
| 335 | Before issuing the \fB-V\fR option, see the \fIGeneral Parallel File |
|---|
| 336 | System: Concepts, Planning, and Installation Guide\fR and search for |
|---|
| 337 | \fIMigration, coexistence and compatibility\fR. |
|---|
| 338 | .RE |
|---|
| 339 | .PP |
|---|
| 340 | .RS +3 |
|---|
| 341 | \fB-W \fINewDeviceName\fR |
|---|
| 342 | \fR |
|---|
| 343 | .RE |
|---|
| 344 | .RS +9 |
|---|
| 345 | Assign \fINewDeviceName\fR to be the device name for the file |
|---|
| 346 | system. |
|---|
| 347 | .RE |
|---|
| 348 | .PP |
|---|
| 349 | .RS +3 |
|---|
| 350 | \fB-z {yes | no} |
|---|
| 351 | \fR |
|---|
| 352 | .RE |
|---|
| 353 | .RS +9 |
|---|
| 354 | Enable or disable DMAPI on the file system. For further information |
|---|
| 355 | on DMAPI for GPFS, see the \fIGeneral Parallel File System: Data |
|---|
| 356 | Management API Guide\fR. |
|---|
| 357 | .RE |
|---|
| 358 | .SH "Exit status" |
|---|
| 359 | .PP |
|---|
| 360 | .PP |
|---|
| 361 | .RS +3 |
|---|
| 362 | \fB0 |
|---|
| 363 | \fR |
|---|
| 364 | .RE |
|---|
| 365 | .RS +9 |
|---|
| 366 | Successful completion. |
|---|
| 367 | .RE |
|---|
| 368 | .PP |
|---|
| 369 | .RS +3 |
|---|
| 370 | \fBnonzero |
|---|
| 371 | \fR |
|---|
| 372 | .RE |
|---|
| 373 | .RS +9 |
|---|
| 374 | A failure has occurred. |
|---|
| 375 | .RE |
|---|
| 376 | .SH "Security" |
|---|
| 377 | .PP |
|---|
| 378 | You must have root authority to run the \fBmmchfs\fR command. |
|---|
| 379 | .PP |
|---|
| 380 | You may issue the \fBmmchfs\fR command from any node in the GPFS |
|---|
| 381 | cluster. |
|---|
| 382 | .PP |
|---|
| 383 | When using the \fBrcp\fR and \fBrsh\fR commands for remote |
|---|
| 384 | communication, a properly configured \fB.rhosts\fR file must exist |
|---|
| 385 | in the root user's home directory on each node in the GPFS |
|---|
| 386 | cluster. If you have designated the use of a different remote |
|---|
| 387 | communication program on either the \fBmmcrcluster\fR or the |
|---|
| 388 | \fBmmchcluster\fR command, you must ensure: |
|---|
| 389 | .RS +3 |
|---|
| 390 | .HP 3 |
|---|
| 391 | 1. Proper authorization is granted to all nodes in the GPFS cluster. |
|---|
| 392 | .HP 3 |
|---|
| 393 | 2. The nodes in the GPFS cluster can communicate without the use of a |
|---|
| 394 | password, and without any extraneous messages. |
|---|
| 395 | .RE |
|---|
| 396 | .PP |
|---|
| 397 | When considering data replication for files accessible to SANergy, see |
|---|
| 398 | \fISANergy export considerations\fR in \fIGeneral Parallel File |
|---|
| 399 | System: Advanced Administration Guide\fR. |
|---|
| 400 | .SH "Examples" |
|---|
| 401 | .PP |
|---|
| 402 | To change the default replicas for metadata to 2 and the default replicas |
|---|
| 403 | for data to 2 for new files created in the \fBfs0\fR file system, issue |
|---|
| 404 | this command: |
|---|
| 405 | .sp |
|---|
| 406 | .nf |
|---|
| 407 | mmchfs fs0 -m 2 -r 2 |
|---|
| 408 | .fi |
|---|
| 409 | .sp |
|---|
| 410 | .PP |
|---|
| 411 | To confirm the change, issue this command: |
|---|
| 412 | .sp |
|---|
| 413 | .nf |
|---|
| 414 | mmlsfs fs0 -m -r |
|---|
| 415 | .fi |
|---|
| 416 | .sp |
|---|
| 417 | .PP |
|---|
| 418 | The system displays information similar to: |
|---|
| 419 | .sp |
|---|
| 420 | .nf |
|---|
| 421 | flag value description |
|---|
| 422 | ---- -------------- ----------------------------------- |
|---|
| 423 | -m 2 Default number of metadata replicas |
|---|
| 424 | -r 2 Default number of data replicas |
|---|
| 425 | .fi |
|---|
| 426 | .sp |
|---|
| 427 | .SH "See also" |
|---|
| 428 | .PP |
|---|
| 429 | mmcrfs Command |
|---|
| 430 | .PP |
|---|
| 431 | mmdelfs Command |
|---|
| 432 | .PP |
|---|
| 433 | mmdf Command |
|---|
| 434 | .PP |
|---|
| 435 | mmfsck Command |
|---|
| 436 | .PP |
|---|
| 437 | mmlsfs Command |
|---|
| 438 | .SH "Location" |
|---|
| 439 | .PP |
|---|
| 440 | \fB/usr/lpp/mmfs/bin\fR |
|---|