| 1 | .TH mmrpldisk 02/16/06 |
|---|
| 2 | mmrpldisk Command |
|---|
| 3 | .SH "Name" |
|---|
| 4 | .PP |
|---|
| 5 | \fBmmrpldisk\fR - Replaces the specified disk. |
|---|
| 6 | .SH "Synopsis" |
|---|
| 7 | .PP |
|---|
| 8 | \fBmmrpldisk\fR \fIDevice DiskName\fR {\fIDiskDesc\fR | |
|---|
| 9 | \fB-F\fR \fIDescFile\fR} [\fB-v\fR \fB\fIyes\fR\fR | |
|---|
| 10 | \fBno\fR] [\fB-N\fR |
|---|
| 11 | {\fINode\fR[,\fINode\fR...] | |
|---|
| 12 | \fINodeFile\fR | \fINodeClass\fR}] |
|---|
| 13 | .SH "Description" |
|---|
| 14 | .PP |
|---|
| 15 | Use the \fBmmrpldisk\fR command to replace an existing disk in the GPFS |
|---|
| 16 | file system with a new one. All data on the old disk is migrated to the |
|---|
| 17 | new one. |
|---|
| 18 | .PP |
|---|
| 19 | To replace disks in a GPFS file system, you must first decide if you |
|---|
| 20 | will: |
|---|
| 21 | .RS +3 |
|---|
| 22 | .HP 3 |
|---|
| 23 | 1. |
|---|
| 24 | Create new disks using the |
|---|
| 25 | \fBmmcrnsd\fR |
|---|
| 26 | command. |
|---|
| 27 | .sp |
|---|
| 28 | Use the rewritten disk descriptor file produced by the \fBmmcrnsd\fR command or create a new disk |
|---|
| 29 | descriptor. When using the rewritten file, the \fIDisk Usage\fR and |
|---|
| 30 | \fIFailure Group\fR specifications remain the same as specified on the \fBmmcrnsd\fR command. |
|---|
| 31 | .HP 3 |
|---|
| 32 | 2. Select disks no longer in use in any file system. Issue the \fBmmlsnsd -F\fR command to display the available |
|---|
| 33 | disks. |
|---|
| 34 | .RE |
|---|
| 35 | .PP |
|---|
| 36 | The disk may then be used to replace a disk in the file system using the \fBmmrpldisk\fR command. |
|---|
| 37 | .PP |
|---|
| 38 | \fBNotes: \fR |
|---|
| 39 | .RS +3 |
|---|
| 40 | .sp |
|---|
| 41 | .HP 3 |
|---|
| 42 | 1. You cannot replace a disk when it is the only remaining disk in the file |
|---|
| 43 | system. |
|---|
| 44 | .sp |
|---|
| 45 | .HP 3 |
|---|
| 46 | 2. Under no circumstances should you replace a stopped disk. You need |
|---|
| 47 | to start a stopped disk before replacing it. If a disk cannot be |
|---|
| 48 | started, you must delete it using the |
|---|
| 49 | \fBmmdeldisk\fR |
|---|
| 50 | command. See the |
|---|
| 51 | \fIGeneral Parallel File |
|---|
| 52 | System: Problem Determination Guide\fR and search for \fIDisk |
|---|
| 53 | media failure\fR. |
|---|
| 54 | .sp |
|---|
| 55 | .HP 3 |
|---|
| 56 | 3. The file system need not be unmounted before the \fBmmrpldisk\fR |
|---|
| 57 | command can be run. |
|---|
| 58 | .sp |
|---|
| 59 | .HP 3 |
|---|
| 60 | 4. |
|---|
| 61 | I/O operations from SANergy clients must terminate before using the |
|---|
| 62 | \fBmmrpldisk\fR command. If not, the client applications receive an |
|---|
| 63 | error. |
|---|
| 64 | .RE |
|---|
| 65 | .PP |
|---|
| 66 | \fBResults\fR |
|---|
| 67 | .PP |
|---|
| 68 | Upon successful completion of the \fBmmrpldisk\fR command, the disk is |
|---|
| 69 | replaced in the file system and data is copied to the new disk without |
|---|
| 70 | restriping. |
|---|
| 71 | .SH "Parameters" |
|---|
| 72 | .PP |
|---|
| 73 | .RS +3 |
|---|
| 74 | \fB\fIDevice\fR |
|---|
| 75 | \fR |
|---|
| 76 | .RE |
|---|
| 77 | .RS +9 |
|---|
| 78 | The device name of the file system where the disk is to be |
|---|
| 79 | replaced. File system names need not be fully-qualified. |
|---|
| 80 | \fBfs0\fR is as acceptable as \fB/dev/fs0\fR. |
|---|
| 81 | .PP |
|---|
| 82 | This must be the first parameter. |
|---|
| 83 | .RE |
|---|
| 84 | .PP |
|---|
| 85 | .RS +3 |
|---|
| 86 | \fB\fIDisk Name\fR |
|---|
| 87 | \fR |
|---|
| 88 | .RE |
|---|
| 89 | .RS +9 |
|---|
| 90 | The name of the disk to be replaced, which was previously passed to the \fBmmcrfs\fR, |
|---|
| 91 | \fBmmadddisk\fR, |
|---|
| 92 | or \fBmmrpldisk\fR commands. You can display the entire list of disk |
|---|
| 93 | names by issuing the |
|---|
| 94 | \fBmmlsdisk\fR command. |
|---|
| 95 | .RE |
|---|
| 96 | .PP |
|---|
| 97 | .RS +3 |
|---|
| 98 | \fB\fIDiskDesc\fR |
|---|
| 99 | \fR |
|---|
| 100 | .RE |
|---|
| 101 | .RS +9 |
|---|
| 102 | A descriptor for the replacement disk. |
|---|
| 103 | .RE |
|---|
| 104 | .PP |
|---|
| 105 | .RS +3 |
|---|
| 106 | \fB-F \fIDescFile\fR |
|---|
| 107 | \fR |
|---|
| 108 | .RE |
|---|
| 109 | .RS +9 |
|---|
| 110 | Specifies a file containing the disk descriptor for the replacement |
|---|
| 111 | disk. |
|---|
| 112 | .PP |
|---|
| 113 | The disk descriptor must be specified in the form (second, third, |
|---|
| 114 | and sixth fields reserved): |
|---|
| 115 | .sp |
|---|
| 116 | .nf |
|---|
| 117 | DiskName:::DiskUsage:FailureGroup::: |
|---|
| 118 | .fi |
|---|
| 119 | .sp |
|---|
| 120 | .PP |
|---|
| 121 | .RS +3 |
|---|
| 122 | \fB\fIDiskName\fR |
|---|
| 123 | \fR |
|---|
| 124 | .RE |
|---|
| 125 | .RS +9 |
|---|
| 126 | .PP |
|---|
| 127 | You must specify the name of the NSD previously created by the \fBmmcrnsd\fR command. For a list of available |
|---|
| 128 | disks, issue the |
|---|
| 129 | \fBmmlsnsd -F\fR command. |
|---|
| 130 | .RE |
|---|
| 131 | .PP |
|---|
| 132 | .RS +3 |
|---|
| 133 | \fB\fIDisk Usage\fR |
|---|
| 134 | \fR |
|---|
| 135 | .RE |
|---|
| 136 | .RS +9 |
|---|
| 137 | Specify a disk usage or inherit the disk usage of the disk being |
|---|
| 138 | replaced: |
|---|
| 139 | .PP |
|---|
| 140 | .RS +3 |
|---|
| 141 | \fBdataAndMetadata |
|---|
| 142 | \fR |
|---|
| 143 | .RE |
|---|
| 144 | .RS +9 |
|---|
| 145 | Indicates that the disk contains both data and metadata. This is |
|---|
| 146 | the default. |
|---|
| 147 | .RE |
|---|
| 148 | .PP |
|---|
| 149 | .RS +3 |
|---|
| 150 | \fBdataOnly |
|---|
| 151 | \fR |
|---|
| 152 | .RE |
|---|
| 153 | .RS +9 |
|---|
| 154 | Indicates that the disk contains data and does not contain |
|---|
| 155 | metadata. |
|---|
| 156 | .RE |
|---|
| 157 | .PP |
|---|
| 158 | .RS +3 |
|---|
| 159 | \fBmetadataOnly |
|---|
| 160 | \fR |
|---|
| 161 | .RE |
|---|
| 162 | .RS +9 |
|---|
| 163 | Indicates that the disk contains metadata and does not contain |
|---|
| 164 | data. |
|---|
| 165 | .RE |
|---|
| 166 | .PP |
|---|
| 167 | .RS +3 |
|---|
| 168 | \fBdescOnly |
|---|
| 169 | \fR |
|---|
| 170 | .RE |
|---|
| 171 | .RS +9 |
|---|
| 172 | Indicates that the disk contains no data and no file metadata. Such |
|---|
| 173 | a disk is used solely to keep a copy of the file system descriptor, and can be |
|---|
| 174 | used as a third failure group in certain disaster recovery |
|---|
| 175 | configurations. For more information, see |
|---|
| 176 | \fIGeneral Parallel File System: Advanced |
|---|
| 177 | Administration\fR and search on \fISynchronous mirroring utilizing |
|---|
| 178 | GPFS replication\fR. |
|---|
| 179 | .RE |
|---|
| 180 | .RE |
|---|
| 181 | .PP |
|---|
| 182 | .RS +3 |
|---|
| 183 | \fB\fIFailure Group\fR |
|---|
| 184 | \fR |
|---|
| 185 | .RE |
|---|
| 186 | .RS +9 |
|---|
| 187 | A number identifying the failure group to which this disk belongs. |
|---|
| 188 | You can specify any value from -1 (where -1 indicates that the disk has no |
|---|
| 189 | point of failure in common with any other disk) to 4000. If you do not |
|---|
| 190 | specify a failure group, the new disk inherits the failure group of the disk |
|---|
| 191 | being replaced. |
|---|
| 192 | .RE |
|---|
| 193 | .RS +3 |
|---|
| 194 | \fBNote:\fR |
|---|
| 195 | .RE |
|---|
| 196 | .RS +9 |
|---|
| 197 | While it is not absolutely necessary to specify the same disk descriptor |
|---|
| 198 | parameters for the new disk as the old disk, it is suggested you do so. |
|---|
| 199 | If the new disk is equivalent in size as the old disk, and if the |
|---|
| 200 | \fIDiskUsage\fR and \fIFailureGroup\fR parameters are the same, the data |
|---|
| 201 | and metadata can be completely migrated from the old disk to the new |
|---|
| 202 | disk. A disk replacement in this manner allows the file system to |
|---|
| 203 | maintain its current data and metadata balance. |
|---|
| 204 | .PP |
|---|
| 205 | If the new disk has a different size, \fIDiskUsage\fR parameter, or |
|---|
| 206 | \fIFailureGroup\fR parameter, the operation may leave the file system |
|---|
| 207 | unbalanced and require a restripe. Additionally, a change in size or |
|---|
| 208 | the \fIDiskUsage\fR parameter may cause the operation to fail since other |
|---|
| 209 | disks in the file system may not have sufficient space to absorb more data or |
|---|
| 210 | metadata. In this case you must first use the \fBmmadddisk\fR command to add the new disk, the \fBmmdeldisk\fR command to delete the old disk, and |
|---|
| 211 | finally the |
|---|
| 212 | \fBmmrestripefs\fR command to rebalance |
|---|
| 213 | the file system. |
|---|
| 214 | .RE |
|---|
| 215 | .RE |
|---|
| 216 | .PP |
|---|
| 217 | .RS +3 |
|---|
| 218 | \fB-N {\fINode\fR[,\fINode\fR...] | |
|---|
| 219 | \fINodeFile\fR | \fINodeClass\fR} |
|---|
| 220 | \fR |
|---|
| 221 | .RE |
|---|
| 222 | .RS +9 |
|---|
| 223 | Specify the nodes that participate in the migration of data from the old |
|---|
| 224 | to the new disk. This command supports all defined node classes. |
|---|
| 225 | The default is \fBall\fR (all nodes in the GPFS cluster will participate in |
|---|
| 226 | the restripe of the file system). |
|---|
| 227 | .PP |
|---|
| 228 | For information on how to specify node names, see \fISpecifying nodes as input to GPFS commands\fR |
|---|
| 229 | in \fIGPFS: Administration and Programming Reference\fR. |
|---|
| 230 | .RE |
|---|
| 231 | .SH "Options" |
|---|
| 232 | .PP |
|---|
| 233 | .RS +3 |
|---|
| 234 | \fB-v {\fB\fIyes\fR\fR | no} |
|---|
| 235 | \fR |
|---|
| 236 | .RE |
|---|
| 237 | .RS +9 |
|---|
| 238 | Verify that specified disks do not belong to an existing file |
|---|
| 239 | system. The default is \fB-v yes\fR. Specify \fB-v no\fR |
|---|
| 240 | only when you want to reuse disks that are no longer needed for an existing |
|---|
| 241 | file system. If the command is interrupted for any reason, you must use |
|---|
| 242 | the \fB-v no\fR option on the next invocation of the command. |
|---|
| 243 | .RE |
|---|
| 244 | .SH "Exit status" |
|---|
| 245 | .PP |
|---|
| 246 | .PP |
|---|
| 247 | .RS +3 |
|---|
| 248 | \fB0 |
|---|
| 249 | \fR |
|---|
| 250 | .RE |
|---|
| 251 | .RS +9 |
|---|
| 252 | Successful completion. |
|---|
| 253 | .RE |
|---|
| 254 | .PP |
|---|
| 255 | .RS +3 |
|---|
| 256 | \fBnonzero |
|---|
| 257 | \fR |
|---|
| 258 | .RE |
|---|
| 259 | .RS +9 |
|---|
| 260 | A failure has occurred. |
|---|
| 261 | .RE |
|---|
| 262 | .SH "Security" |
|---|
| 263 | .PP |
|---|
| 264 | You must have root authority to run the \fBmmrpldisk\fR command. |
|---|
| 265 | .PP |
|---|
| 266 | You may issue the \fBmmrpldisk\fR command from any node in the GPFS |
|---|
| 267 | cluster. |
|---|
| 268 | .PP |
|---|
| 269 | When using the \fBrcp\fR and \fBrsh\fR commands for remote |
|---|
| 270 | communication, a properly configured \fB.rhosts\fR file must exist |
|---|
| 271 | in the root user's home directory on each node in the GPFS |
|---|
| 272 | cluster. If you have designated the use of a different remote |
|---|
| 273 | communication program on either the |
|---|
| 274 | \fBmmcrcluster\fR |
|---|
| 275 | or the |
|---|
| 276 | \fBmmchcluster\fR command, you must |
|---|
| 277 | ensure: |
|---|
| 278 | .RS +3 |
|---|
| 279 | .HP 3 |
|---|
| 280 | 1. Proper authorization is granted to all nodes in the GPFS cluster. |
|---|
| 281 | .HP 3 |
|---|
| 282 | 2. The nodes in the GPFS cluster can communicate without the use of a |
|---|
| 283 | password, and without any extraneous messages. |
|---|
| 284 | .RE |
|---|
| 285 | .SH "Examples" |
|---|
| 286 | .PP |
|---|
| 287 | To replace disk \fBgpfs10nsd\fR in \fBfs3\fR with a new disk, |
|---|
| 288 | \fBgpfs12nsd\fR allowing the disk usage and failure group parameters to |
|---|
| 289 | default to the corresponding values of \fBgpfs10nsd\fR, and have only nodes |
|---|
| 290 | \fBk145n01, k145n03, and k145n05\fR participate in the migration of the |
|---|
| 291 | data, issue this command: |
|---|
| 292 | .sp |
|---|
| 293 | .nf |
|---|
| 294 | mmrpldisk fs3 gpfs10nsd gpfs12nsd -N k145n01,k145n03,k145n05 |
|---|
| 295 | .fi |
|---|
| 296 | .sp |
|---|
| 297 | .PP |
|---|
| 298 | The system displays information similar to: |
|---|
| 299 | .sp |
|---|
| 300 | .nf |
|---|
| 301 | Replacing ... |
|---|
| 302 | GPFS: 6027-531 The following disks of fs3 will be formatted on\ |
|---|
| 303 | node k145n03 gpfs12nsd: size 4390912 KB |
|---|
| 304 | Extending Allocation Map |
|---|
| 305 | GPFS: 6027-1503 Completed adding disks to file system fs3. |
|---|
| 306 | GPFS: 6027-589 Scanning file system metadata, phase 1 ...\ |
|---|
| 307 | 77 % complete on Wed Jul 12 17:33:58 2000 |
|---|
| 308 | 100 % complete on Wed Jul 12 17:33:59 2000 |
|---|
| 309 | GPFS: 6027-552 Scan completed successfully. |
|---|
| 310 | GPFS: 6027-589 Scanning file system metadata, phase 2 ...\ |
|---|
| 311 | GPFS: 6027-552 Scan completed successfully. |
|---|
| 312 | GPFS: 6027-589 Scanning file system metadata, phase 3 ...\ |
|---|
| 313 | GPFS: 6027-552 Scan completed successfully. |
|---|
| 314 | GPFS: 6027-565 Scanning user file metadata ... |
|---|
| 315 | 1 % complete on Wed Jul 12 17:34:12 2000 |
|---|
| 316 | 100 % complete on Wed Jul 12 17:34:15 2000 |
|---|
| 317 | GPFS: 6027-552 Scan completed successfully. |
|---|
| 318 | Done |
|---|
| 319 | mmrpldisk: 6027-1371 Propagating the changes to all affected |
|---|
| 320 | nodes. This is an asynchronous process. |
|---|
| 321 | .fi |
|---|
| 322 | .sp |
|---|
| 323 | .SH "See also" |
|---|
| 324 | .PP |
|---|
| 325 | mmadddisk Command |
|---|
| 326 | .PP |
|---|
| 327 | mmchdisk Command |
|---|
| 328 | .PP |
|---|
| 329 | mmcrnsd Command |
|---|
| 330 | .PP |
|---|
| 331 | mmlsdisk Command |
|---|
| 332 | .PP |
|---|
| 333 | mmlsnsd Command |
|---|
| 334 | .PP |
|---|
| 335 | mmrestripefs Command |
|---|
| 336 | .SH "Location" |
|---|
| 337 | .PP |
|---|
| 338 | \fB/usr/lpp/mmfs/bin\fR |
|---|
| 339 | .PP |
|---|