[16] | 1 | .TH mmcrnsd 02/16/06 |
---|
| 2 | mmcrnsd Command |
---|
| 3 | .SH "Name" |
---|
| 4 | .PP |
---|
| 5 | \fBmmcrnsd\fR - Creates cluster-wide names for Network Shared Disks |
---|
| 6 | (NSDs) used by GPFS. |
---|
| 7 | .SH "Synopsis" |
---|
| 8 | .PP |
---|
| 9 | \fBmmcrnsd\fR \fB-F\fR \fIDescFile\fR [\fB-v\fR {\fB\fIyes\fR\fR |\fBno\fR}] |
---|
| 10 | .SH "Description" |
---|
| 11 | .PP |
---|
| 12 | The \fBmmcrnsd\fR command is used to create cluster-wide names for NSDs |
---|
| 13 | used by GPFS. |
---|
| 14 | .PP |
---|
| 15 | This is the first GPFS step in preparing a disk for use by a GPFS |
---|
| 16 | file system. A disk descriptor file supplied to this command is |
---|
| 17 | rewritten with the new NSD names and that rewritten disk descriptor file can |
---|
| 18 | then be supplied as input to the |
---|
| 19 | \fBmmcrfs\fR, \fBmmadddisk\fR or \fBmmrpldisk\fR commands. |
---|
| 20 | .PP |
---|
| 21 | The name created by the \fBmmcrnsd\fR command is necessary since disks |
---|
| 22 | connected at multiple nodes may have differing disk device names in |
---|
| 23 | \fB/dev\fR on each node. The name uniquely identifies the |
---|
| 24 | disk. This command must be run for all disks that are to be used in |
---|
| 25 | GPFS file systems. The \fBmmcrnsd\fR command is also used to assign |
---|
| 26 | a primary and backup NSD server that can be used for I/O operations on behalf |
---|
| 27 | of nodes that do not have direct access to the disk. |
---|
| 28 | .PP |
---|
| 29 | To identify that the disk has been processed by the \fBmmcrnsd\fR command, |
---|
| 30 | a unique NSD volume ID is written on sector 2 of the disk. All of the |
---|
| 31 | NSD commands (\fBmmcrnsd\fR, |
---|
| 32 | \fBmmlsnsd\fR, and \fBmmdelnsd\fR) use this unique NSD volume ID to |
---|
| 33 | identify and process NSDs. |
---|
| 34 | .PP |
---|
| 35 | After the NSDs are created, the GPFS cluster data is updated and they are |
---|
| 36 | available for use by GPFS. |
---|
| 37 | .PP |
---|
| 38 | When using an IBM pSeries High Performance Switch |
---|
| 39 | (pSeries HPS) in your configuration, it is suggested you process your disks in |
---|
| 40 | two steps: |
---|
| 41 | .RS +3 |
---|
| 42 | .HP 3 |
---|
| 43 | 1. |
---|
| 44 | Create virtual shared disks on each physical disk through the \fBmmcrvsd\fR command. |
---|
| 45 | .HP 3 |
---|
| 46 | 2. |
---|
| 47 | Using the rewritten disk descriptors from the \fBmmcrvsd\fR command, create NSDs through the |
---|
| 48 | \fBmmcrnsd\fR command. |
---|
| 49 | .RE |
---|
| 50 | .PP |
---|
| 51 | \fBResults\fR |
---|
| 52 | .PP |
---|
| 53 | Upon successful completion of the \fBmmcrnsd\fR command, these tasks are |
---|
| 54 | completed: |
---|
| 55 | .RS +3 |
---|
| 56 | .HP 3 |
---|
| 57 | \(bu NSDs are created. |
---|
| 58 | .HP 3 |
---|
| 59 | \(bu The \fIDescFile\fR contains NSD names to be used as input to the \fBmmcrfs\fR, |
---|
| 60 | \fBmmadddisk\fR, |
---|
| 61 | or the |
---|
| 62 | \fBmmrpldisk\fR commands. |
---|
| 63 | .HP 3 |
---|
| 64 | \(bu |
---|
| 65 | A unique NSD volume ID to identify the disk as an NSD has been written on |
---|
| 66 | sector 2. |
---|
| 67 | .HP 3 |
---|
| 68 | \(bu |
---|
| 69 | An entry for each new disk is created in the GPFS cluster data. |
---|
| 70 | .RE |
---|
| 71 | .SH "Parameters" |
---|
| 72 | .PP |
---|
| 73 | .RS +3 |
---|
| 74 | \fB-F \fIDescFile\fR |
---|
| 75 | \fR |
---|
| 76 | .RE |
---|
| 77 | .RS +9 |
---|
| 78 | The file containing the list of disk descriptors, one per line. |
---|
| 79 | Disk descriptors have this format: |
---|
| 80 | .sp |
---|
| 81 | .nf |
---|
| 82 | DiskName:PrimaryServer:BackupServer:DiskUsage:FailureGroup: |
---|
| 83 | DesiredName:StoragePool |
---|
| 84 | .fi |
---|
| 85 | .sp |
---|
| 86 | .PP |
---|
| 87 | .RS +3 |
---|
| 88 | \fB\fIDiskName\fR |
---|
| 89 | \fR |
---|
| 90 | .RE |
---|
| 91 | .RS +9 |
---|
| 92 | .PP |
---|
| 93 | The block device name appearing in \fB/dev\fR for the disk you want to |
---|
| 94 | define as an NSD. Examples of disks accessible through a block device |
---|
| 95 | are SAN-attached disks or virtual shared disks. If a |
---|
| 96 | \fIPrimaryServer\fR node is specified, \fIDiskName\fR must be the |
---|
| 97 | \fB/dev\fR name for the disk device on the primary NSD server node. |
---|
| 98 | See the Frequently Asked Questions at publib.boulder.ibm.com/infocenter/clresctr/ |
---|
| 99 | topic/com.ibm.cluster.gpfs.doc/ |
---|
| 100 | gpfs_faqs/gpfsclustersfaq.html for the latest supported disk |
---|
| 101 | types. |
---|
| 102 | .PP |
---|
| 103 | GPFS provides the |
---|
| 104 | \fBmmcrvsd\fR helper |
---|
| 105 | command. In an AIX environment, this command can be used to configure |
---|
| 106 | virtual shared disks and make them accessible to nodes connected over a high |
---|
| 107 | performance switch. The output disk descriptor file from an \fBmmcrvsd\fR command can be used as input to the |
---|
| 108 | \fBmmcrnsd\fR command |
---|
| 109 | .RE |
---|
| 110 | .PP |
---|
| 111 | .RS +3 |
---|
| 112 | \fB\fIPrimaryServer\fR |
---|
| 113 | \fR |
---|
| 114 | .RE |
---|
| 115 | .RS +9 |
---|
| 116 | The name of the primary NSD server node. |
---|
| 117 | .PP |
---|
| 118 | If this field is omitted, the disk is assumed to be SAN-attached to all |
---|
| 119 | nodes in the cluster. If not all nodes in the cluster have access to |
---|
| 120 | the disk, or if the file system to which the disk belongs is to be accessed by |
---|
| 121 | other GPFS clusters, \fIPrimaryServer\fR must be specified. |
---|
| 122 | .RE |
---|
| 123 | .PP |
---|
| 124 | .RS +3 |
---|
| 125 | \fB\fIBackupServer\fR |
---|
| 126 | \fR |
---|
| 127 | .RE |
---|
| 128 | .RS +9 |
---|
| 129 | The name of the backup NSD server node. |
---|
| 130 | .PP |
---|
| 131 | If the \fIPrimaryServer\fR has been specified and this field is omitted, |
---|
| 132 | it is assumed you do not want failover in the event that the |
---|
| 133 | \fIPrimaryServer\fR fails. If \fIBackupServer\fR is specified and |
---|
| 134 | the \fIPrimaryServer\fR has not been specified, the command fails. |
---|
| 135 | .PP |
---|
| 136 | For information on how to specify node names, see \fISpecifying nodes as input to GPFS commands\fR |
---|
| 137 | in \fIGPFS: Administration and Programming Reference\fR. |
---|
| 138 | .RE |
---|
| 139 | .PP |
---|
| 140 | .RS +3 |
---|
| 141 | \fB\fIDiskUsage\fR |
---|
| 142 | \fR |
---|
| 143 | .RE |
---|
| 144 | .RS +9 |
---|
| 145 | Specify a disk usage or accept the default. This field is ignored |
---|
| 146 | by the \fBmmcrnsd\fR command, and is passed unchanged to the output |
---|
| 147 | descriptor file produced by the \fBmmcrnsd\fR command. Possible |
---|
| 148 | values are: |
---|
| 149 | .PP |
---|
| 150 | .RS +3 |
---|
| 151 | \fBdataAndMetadata |
---|
| 152 | \fR |
---|
| 153 | .RE |
---|
| 154 | .RS +9 |
---|
| 155 | Indicates that the disk contains both data and metadata. This is |
---|
| 156 | the default. |
---|
| 157 | .RE |
---|
| 158 | .PP |
---|
| 159 | .RS +3 |
---|
| 160 | \fBdataOnly |
---|
| 161 | \fR |
---|
| 162 | .RE |
---|
| 163 | .RS +9 |
---|
| 164 | Indicates that the disk contains data and does not contain |
---|
| 165 | metadata. |
---|
| 166 | .RE |
---|
| 167 | .PP |
---|
| 168 | .RS +3 |
---|
| 169 | \fBmetadataOnly |
---|
| 170 | \fR |
---|
| 171 | .RE |
---|
| 172 | .RS +9 |
---|
| 173 | Indicates that the disk contains metadata and does not contain |
---|
| 174 | data. |
---|
| 175 | .RE |
---|
| 176 | .PP |
---|
| 177 | .RS +3 |
---|
| 178 | \fBdescOnly |
---|
| 179 | \fR |
---|
| 180 | .RE |
---|
| 181 | .RS +9 |
---|
| 182 | Indicates that the disk contains no data and no file metadata. Such |
---|
| 183 | a disk is used solely to keep a copy of the file system descriptor, and can be |
---|
| 184 | used as a third failure group in certain disaster recovery |
---|
| 185 | configurations. For more information, see |
---|
| 186 | \fIGeneral Parallel File System: Advanced |
---|
| 187 | Administration\fR and search on \fISynchronous mirroring utilizing |
---|
| 188 | GPFS replication\fR. |
---|
| 189 | .RE |
---|
| 190 | .RE |
---|
| 191 | .PP |
---|
| 192 | .RS +3 |
---|
| 193 | \fB\fIFailureGroup\fR |
---|
| 194 | \fR |
---|
| 195 | .RE |
---|
| 196 | .RS +9 |
---|
| 197 | A number identifying the failure group to which this disk belongs. |
---|
| 198 | You can specify any value from -1 (where -1 indicates that the disk has no |
---|
| 199 | point of failure in common with any other disk) to 4000. If you do not |
---|
| 200 | specify a failure group, the value defaults to the NSD primary server node |
---|
| 201 | number plus 4000. If an NSD server node is not specified, the value |
---|
| 202 | defaults to -1. |
---|
| 203 | .PP |
---|
| 204 | GPFS uses this information during data and metadata placement to assure |
---|
| 205 | that no two replicas of the same block are written in such a way as to become |
---|
| 206 | unavailable due to a single failure. All disks that are attached to the |
---|
| 207 | same NSD server or adapter should be placed in the same failure group. |
---|
| 208 | .RE |
---|
| 209 | .PP |
---|
| 210 | .RS +3 |
---|
| 211 | \fB\fIDesiredName\fR |
---|
| 212 | \fR |
---|
| 213 | .RE |
---|
| 214 | .RS +9 |
---|
| 215 | Specify the name you desire for the NSD to be created. This name |
---|
| 216 | must not already be used as another GPFS disk name, and it must not begin with |
---|
| 217 | the reserved string 'gpfs'. |
---|
| 218 | .RS +3 |
---|
| 219 | \fBNote:\fR |
---|
| 220 | .RE |
---|
| 221 | .RS +9 |
---|
| 222 | This name can contain only the following characters: 'A' |
---|
| 223 | through 'Z', 'a' through 'z', '0' |
---|
| 224 | through '9', or '_' (the underscore). All other |
---|
| 225 | characters are not valid. |
---|
| 226 | .RE |
---|
| 227 | .PP |
---|
| 228 | If a desired name is not specified, the NSD is assigned a name according to |
---|
| 229 | the convention: |
---|
| 230 | .PP |
---|
| 231 | .RS +3 |
---|
| 232 | \fBgpfs\fINN\fRnsd |
---|
| 233 | \fR |
---|
| 234 | .RE |
---|
| 235 | .RS +9 |
---|
| 236 | where \fINN\fR is a unique nonnegative integer not used in any prior |
---|
| 237 | NSD. |
---|
| 238 | .RE |
---|
| 239 | .RE |
---|
| 240 | .PP |
---|
| 241 | .RS +3 |
---|
| 242 | \fB\fIStoragePool\fR |
---|
| 243 | \fR |
---|
| 244 | .RE |
---|
| 245 | .RS +9 |
---|
| 246 | Specifies the name of the storage pool that the NSD is assigned to. |
---|
| 247 | This field is ignored by the \fBmmcrnsd\fR command, and is passed unchanged |
---|
| 248 | to the output descriptor file produced by the \fBmmcrnsd\fR |
---|
| 249 | command. |
---|
| 250 | .RE |
---|
| 251 | .RE |
---|
| 252 | .PP |
---|
| 253 | Upon successful completion of the \fBmmcrnsd\fR command, the |
---|
| 254 | \fIDescFile\fR file is rewritten to contain the created NSD names in place |
---|
| 255 | of the device name. Primary and backup NSD servers and |
---|
| 256 | \fIdesiredName\fR are omitted from the rewritten disk descriptor and all |
---|
| 257 | other fields, if specified, are copied without modification. The |
---|
| 258 | original lines, as well as descriptor lines in error, are commented out and |
---|
| 259 | preserved for reference. The rewritten disk descriptor file can then be |
---|
| 260 | used as input to the |
---|
| 261 | \fBmmcrfs\fR, \fBmmadddisk\fR, or the \fBmmrpldisk\fR commands. You must have |
---|
| 262 | \fBwrite\fR access to the directory where the \fIDescFile\fR file is |
---|
| 263 | located in order to rewrite the created NSD information. |
---|
| 264 | .PP |
---|
| 265 | The \fIDisk Usage\fR and \fIFailure Group\fR specifications in the |
---|
| 266 | disk descriptor are preserved only if you use the rewritten file produced by |
---|
| 267 | the \fBmmcrnsd\fR command. If you do not use this file, you must |
---|
| 268 | either accept the default values or specify new values when creating disk |
---|
| 269 | descriptors for other commands. |
---|
| 270 | .SH "Options" |
---|
| 271 | .PP |
---|
| 272 | .RS +3 |
---|
| 273 | \fB -v {\fB\fIyes\fR\fR |\fBno\fR} |
---|
| 274 | \fR |
---|
| 275 | .RE |
---|
| 276 | .RS +9 |
---|
| 277 | Verify the disk is not already formatted as an NSD. |
---|
| 278 | .PP |
---|
| 279 | A value of \fB-v yes\fR specifies that the NSD are to be created only |
---|
| 280 | if the disk has not been formatted by a previous invocation of the |
---|
| 281 | \fBmmcrnsd\fR command, as indicated by the NSD volume ID on sector 2 of the |
---|
| 282 | disk. A value of \fB-v no\fR specifies that the disk is to be |
---|
| 283 | formatted irrespective of its previous state. The default is \fB-v |
---|
| 284 | yes\fR. |
---|
| 285 | .RE |
---|
| 286 | .SH "Exit status" |
---|
| 287 | .PP |
---|
| 288 | .PP |
---|
| 289 | .RS +3 |
---|
| 290 | \fB0 |
---|
| 291 | \fR |
---|
| 292 | .RE |
---|
| 293 | .RS +9 |
---|
| 294 | Successful completion. |
---|
| 295 | .RE |
---|
| 296 | .PP |
---|
| 297 | .RS +3 |
---|
| 298 | \fBnonzero |
---|
| 299 | \fR |
---|
| 300 | .RE |
---|
| 301 | .RS +9 |
---|
| 302 | A failure has occurred. |
---|
| 303 | .RE |
---|
| 304 | .SH "Security" |
---|
| 305 | .PP |
---|
| 306 | You must have root authority to run the \fBmmcrnsd\fR command. |
---|
| 307 | .PP |
---|
| 308 | You may issue the \fBmmcrnsd\fR command from any node in the GPFS |
---|
| 309 | cluster. |
---|
| 310 | .PP |
---|
| 311 | When using the \fBrcp\fR and \fBrsh\fR commands for remote |
---|
| 312 | communication, a properly configured \fB.rhosts\fR file must exist |
---|
| 313 | in the root user's home directory, on each node in the GPFS |
---|
| 314 | cluster. If you have designated the use of a different remote |
---|
| 315 | communication program on either the |
---|
| 316 | \fBmmcrcluster\fR |
---|
| 317 | or the |
---|
| 318 | \fBmmchcluster\fR command, you must |
---|
| 319 | ensure: |
---|
| 320 | .RS +3 |
---|
| 321 | .HP 3 |
---|
| 322 | 1. Proper authorization is granted to all nodes in the GPFS cluster. |
---|
| 323 | .HP 3 |
---|
| 324 | 2. The nodes in the GPFS cluster can communicate without the use of a |
---|
| 325 | password, and without any extraneous messages. |
---|
| 326 | .RE |
---|
| 327 | .SH "Examples" |
---|
| 328 | .PP |
---|
| 329 | To create your NSDs from the descriptor file \fBnsdesc\fR |
---|
| 330 | containing: |
---|
| 331 | .sp |
---|
| 332 | .nf |
---|
| 333 | sdav1:k145n05:k145n06:dataOnly:4::poolA\ |
---|
| 334 | sdav2:k145n04::dataAndMetadata:5:ABC |
---|
| 335 | .fi |
---|
| 336 | .sp |
---|
| 337 | .PP |
---|
| 338 | Issue this command: |
---|
| 339 | .sp |
---|
| 340 | .nf |
---|
| 341 | mmcrnsd -F nsdesc\ |
---|
| 342 | .fi |
---|
| 343 | .sp |
---|
| 344 | .PP |
---|
| 345 | These descriptors translate as: |
---|
| 346 | .PP |
---|
| 347 | .RS +3 |
---|
| 348 | \fBDisk Name |
---|
| 349 | \fR |
---|
| 350 | .RE |
---|
| 351 | .RS +9 |
---|
| 352 | sdav1 |
---|
| 353 | .RE |
---|
| 354 | .PP |
---|
| 355 | .RS +3 |
---|
| 356 | \fBPrimaryServer Name |
---|
| 357 | \fR |
---|
| 358 | .RE |
---|
| 359 | .RS +9 |
---|
| 360 | k145n05 |
---|
| 361 | .RE |
---|
| 362 | .PP |
---|
| 363 | .RS +3 |
---|
| 364 | \fBBackupServer Name |
---|
| 365 | \fR |
---|
| 366 | .RE |
---|
| 367 | .RS +9 |
---|
| 368 | k145n06 |
---|
| 369 | .RE |
---|
| 370 | .PP |
---|
| 371 | .RS +3 |
---|
| 372 | \fBDisk Usage |
---|
| 373 | \fR |
---|
| 374 | .RE |
---|
| 375 | .RS +9 |
---|
| 376 | \fBdataOnly\fR |
---|
| 377 | .RE |
---|
| 378 | .PP |
---|
| 379 | .RS +3 |
---|
| 380 | \fBFailure Group |
---|
| 381 | \fR |
---|
| 382 | .RE |
---|
| 383 | .RS +9 |
---|
| 384 | 4 |
---|
| 385 | .RE |
---|
| 386 | .PP |
---|
| 387 | .RS +3 |
---|
| 388 | \fBStorage Pool |
---|
| 389 | \fR |
---|
| 390 | .RE |
---|
| 391 | .RS +9 |
---|
| 392 | poolA |
---|
| 393 | .RE |
---|
| 394 | .PP |
---|
| 395 | and |
---|
| 396 | .PP |
---|
| 397 | .RS +3 |
---|
| 398 | \fBDisk Name |
---|
| 399 | \fR |
---|
| 400 | .RE |
---|
| 401 | .RS +9 |
---|
| 402 | sdav2 |
---|
| 403 | .RE |
---|
| 404 | .PP |
---|
| 405 | .RS +3 |
---|
| 406 | \fBServer Name |
---|
| 407 | \fR |
---|
| 408 | .RE |
---|
| 409 | .RS +9 |
---|
| 410 | k145n04 |
---|
| 411 | .RE |
---|
| 412 | .PP |
---|
| 413 | .RS +3 |
---|
| 414 | \fBBackup Server Name |
---|
| 415 | \fR |
---|
| 416 | .RE |
---|
| 417 | .RS +9 |
---|
| 418 | none |
---|
| 419 | .RE |
---|
| 420 | .PP |
---|
| 421 | .RS +3 |
---|
| 422 | \fBDisk Usage |
---|
| 423 | \fR |
---|
| 424 | .RE |
---|
| 425 | .RS +9 |
---|
| 426 | \fBdataAndMetadata,\fR allowing both |
---|
| 427 | .RE |
---|
| 428 | .PP |
---|
| 429 | .RS +3 |
---|
| 430 | \fBFailure Group |
---|
| 431 | \fR |
---|
| 432 | .RE |
---|
| 433 | .RS +9 |
---|
| 434 | 5 |
---|
| 435 | .RE |
---|
| 436 | .PP |
---|
| 437 | .RS +3 |
---|
| 438 | \fBDesired Name |
---|
| 439 | \fR |
---|
| 440 | .RE |
---|
| 441 | .RS +9 |
---|
| 442 | ABC |
---|
| 443 | .RE |
---|
| 444 | .PP |
---|
| 445 | .RS +3 |
---|
| 446 | \fBStorage Pool |
---|
| 447 | \fR |
---|
| 448 | .RE |
---|
| 449 | .RS +9 |
---|
| 450 | system |
---|
| 451 | .RE |
---|
| 452 | .PP |
---|
| 453 | \fBnsdesc\fR is rewritten as |
---|
| 454 | .sp |
---|
| 455 | .nf |
---|
| 456 | #sdav1:k145n05:k145n06:dataOnly:4::poolA |
---|
| 457 | gpfs20nsd:::dataOnly:4::poolA |
---|
| 458 | #sdav2:k145n04::dataAndMetadata:5:ABC |
---|
| 459 | ABC:::dataAndMetadata:5 |
---|
| 460 | .fi |
---|
| 461 | .sp |
---|
| 462 | .PP |
---|
| 463 | The output is similar to this: |
---|
| 464 | .sp |
---|
| 465 | .nf |
---|
| 466 | mmcrnsd: Processing disk sdav1 |
---|
| 467 | mmcrnsd: Processing disk sdav2 |
---|
| 468 | mmcrnsd: 6027-1371 Propagating the changes to all affected |
---|
| 469 | nodes. This is an asynchronous process. |
---|
| 470 | .fi |
---|
| 471 | .sp |
---|
| 472 | .SH "See also" |
---|
| 473 | .PP |
---|
| 474 | mmadddisk Command |
---|
| 475 | .PP |
---|
| 476 | mmcrfs Command |
---|
| 477 | .PP |
---|
| 478 | mmdeldisk Command |
---|
| 479 | .PP |
---|
| 480 | mmdelnsd Command |
---|
| 481 | .PP |
---|
| 482 | mmlsnsd Command |
---|
| 483 | .PP |
---|
| 484 | mmrpldisk Command |
---|
| 485 | .SH "Location" |
---|
| 486 | .PP |
---|
| 487 | \fB/usr/lpp/mmfs/bin\fR |
---|
| 488 | .PP |
---|