[16] | 1 | .TH mmdeldisk 03/31/06 |
---|
| 2 | mmdeldisk Command |
---|
| 3 | .SH "Name" |
---|
| 4 | .PP |
---|
| 5 | \fBmmdeldisk\fR - Deletes disks from a GPFS file system. |
---|
| 6 | .SH "Synopsis" |
---|
| 7 | .PP |
---|
| 8 | \fBmmdeldisk\fR \fIDevice\fR |
---|
| 9 | {"\fIDiskDesc\fR[;\fIDiskDesc\fR...]" |
---|
| 10 | | \fB-F\fR \fIDescFile\fR} [\fB-a\fR] |
---|
| 11 | [\fB-c\fR] [\fB-r\fR] [\fB-N\fR |
---|
| 12 | {\fINode\fR[,\fINode\fR...] | \fINodeFile\fR | \fINodeClass\fR}] |
---|
| 13 | .SH "Description" |
---|
| 14 | .PP |
---|
| 15 | The \fBmmdeldisk\fR command migrates all data that would otherwise be |
---|
| 16 | lost to the remaining disks in the file system. It then removes the |
---|
| 17 | disks from the file system descriptor and optionally rebalances the file |
---|
| 18 | system after removing the disks. |
---|
| 19 | .PP |
---|
| 20 | Run the \fBmmdeldisk\fR command when system demand is low. |
---|
| 21 | .PP |
---|
| 22 | I/O operations from SANergy clients must terminate before using the |
---|
| 23 | \fBmmdeldisk\fR command. If not, the client applications receive an |
---|
| 24 | error. |
---|
| 25 | .PP |
---|
| 26 | If a replacement for a failing disk is available, use the \fBmmrpldisk\fR command in order to keep the file system |
---|
| 27 | balanced. Otherwise, use one of these procedures to delete a |
---|
| 28 | disk: |
---|
| 29 | .RS +3 |
---|
| 30 | .HP 3 |
---|
| 31 | \(bu If the disk is not failing and GPFS can still read from it: |
---|
| 32 | .RS +3 |
---|
| 33 | .HP 3 |
---|
| 34 | 1. Suspend the disk |
---|
| 35 | .HP 3 |
---|
| 36 | 2. Restripe to rebalance all data onto other disks |
---|
| 37 | .HP 3 |
---|
| 38 | 3. Delete the disk |
---|
| 39 | .RE |
---|
| 40 | .HP 3 |
---|
| 41 | \(bu If the disk is permanently damaged and the file system is |
---|
| 42 | replicated: |
---|
| 43 | .RS +3 |
---|
| 44 | .HP 3 |
---|
| 45 | 1. Suspend and stop the disk. |
---|
| 46 | .HP 3 |
---|
| 47 | 2. restripe and restore replication for the file system, if possible. |
---|
| 48 | .HP 3 |
---|
| 49 | 3. Delete the disk from the file system. |
---|
| 50 | .RE |
---|
| 51 | .HP 3 |
---|
| 52 | \(bu If the disk is permanently damaged and the file system is not replicated, |
---|
| 53 | or if the \fBmmdeldisk\fR command repeatedly fails, see the |
---|
| 54 | \fIGeneral Parallel File System: Problem |
---|
| 55 | Determination Guide\fR and search for \fIDisk media |
---|
| 56 | failure\fR. |
---|
| 57 | .RE |
---|
| 58 | .PP |
---|
| 59 | If the last disk in a storage pool is deleted, the storage pool is |
---|
| 60 | deleted. The \fBmmdeldisk\fR command is not permitted to delete the |
---|
| 61 | \fBsystem\fR storage pool. A storage pool must be empty in order for |
---|
| 62 | it to be deleted. |
---|
| 63 | .PP |
---|
| 64 | \fBResults\fR |
---|
| 65 | .PP |
---|
| 66 | Upon successful completion of the \fBmmdeldisk\fR command, these tasks |
---|
| 67 | are completed: |
---|
| 68 | .RS +3 |
---|
| 69 | .HP 3 |
---|
| 70 | \(bu Data that has not been replicated from the target disks is migrated to |
---|
| 71 | other disks in the file system. |
---|
| 72 | .HP 3 |
---|
| 73 | \(bu Remaining disks are rebalanced, if specified. |
---|
| 74 | .RE |
---|
| 75 | .SH "Parameters" |
---|
| 76 | .PP |
---|
| 77 | .RS +3 |
---|
| 78 | \fB\fIDevice\fR |
---|
| 79 | \fR |
---|
| 80 | .RE |
---|
| 81 | .RS +9 |
---|
| 82 | The device name of the file system to delete the disks from. File |
---|
| 83 | system names need not be fully-qualified. \fBfs0\fR is as acceptable |
---|
| 84 | as \fB/dev/fs0\fR. This must be the first parameter. |
---|
| 85 | .RE |
---|
| 86 | .PP |
---|
| 87 | .RS +3 |
---|
| 88 | \fB"\fIDiskDesc\fR[;\fIDiskDesc\fR...]" |
---|
| 89 | .PP |
---|
| 90 | \fR |
---|
| 91 | .RE |
---|
| 92 | .RS +9 |
---|
| 93 | The disk descriptors of the disks to be deleted from the file |
---|
| 94 | system. If there is more than one disk to be deleted, delimit each |
---|
| 95 | descriptor with a semicolon (;) and enclose the list of disk descriptors |
---|
| 96 | in quotation marks. |
---|
| 97 | .RE |
---|
| 98 | .PP |
---|
| 99 | .RS +3 |
---|
| 100 | \fB-F \fIDescFile\fR |
---|
| 101 | \fR |
---|
| 102 | .RE |
---|
| 103 | .RS +9 |
---|
| 104 | A file that contains a list of disk descriptors, one per line representing |
---|
| 105 | disks, to be deleted. |
---|
| 106 | .RE |
---|
| 107 | .PP |
---|
| 108 | .RS +3 |
---|
| 109 | \fB-N {\fINode\fR[,\fINode\fR...] | |
---|
| 110 | \fINodeFile\fR | \fINodeClass\fR } |
---|
| 111 | \fR |
---|
| 112 | .RE |
---|
| 113 | .RS +9 |
---|
| 114 | Specify the nodes that participate in the restripe of the file system |
---|
| 115 | after the specified disks have been removed. This command supports all |
---|
| 116 | defined node classes. The default is \fBall\fR (all nodes in the |
---|
| 117 | GPFS cluster will participate in the restripe of the file system). |
---|
| 118 | .PP |
---|
| 119 | For information on how to specify node names, see \fISpecifying nodes as input to GPFS commands\fR |
---|
| 120 | in \fIGPFS: Administration and Programming Reference\fR. |
---|
| 121 | .RE |
---|
| 122 | .SH "Options" |
---|
| 123 | .PP |
---|
| 124 | .RS +3 |
---|
| 125 | \fB-a |
---|
| 126 | \fR |
---|
| 127 | .RE |
---|
| 128 | .RS +9 |
---|
| 129 | Specifies that the \fBmmdeldisk\fR command \fInot\fR wait for |
---|
| 130 | rebalancing to complete before returning. When this flag is specified, |
---|
| 131 | the \fBmmdeldisk\fR command runs asynchronously and returns after the file |
---|
| 132 | system descriptor is updated and the rebalancing scan is started, but it does |
---|
| 133 | not wait for rebalancing to finish. If no rebalancing is requested |
---|
| 134 | (\fB-r \fR option is not specified), this option has no effect. |
---|
| 135 | .RE |
---|
| 136 | .PP |
---|
| 137 | .RS +3 |
---|
| 138 | \fB-c |
---|
| 139 | \fR |
---|
| 140 | .RE |
---|
| 141 | .RS +9 |
---|
| 142 | Specifies that processing continues even in the event that unreadable data |
---|
| 143 | exists on the disks being deleted. Data that has not been replicated is |
---|
| 144 | lost. Replicated data is not lost as long as the disks containing the |
---|
| 145 | replication are accessible. |
---|
| 146 | .RE |
---|
| 147 | .PP |
---|
| 148 | .RS +3 |
---|
| 149 | \fB-r |
---|
| 150 | \fR |
---|
| 151 | .RE |
---|
| 152 | .RS +9 |
---|
| 153 | Rebalance all existing files in the file system to make more efficient use |
---|
| 154 | of the remaining disks. |
---|
| 155 | .RS +3 |
---|
| 156 | \fBNote:\fR |
---|
| 157 | .RE |
---|
| 158 | .RS +9 |
---|
| 159 | Rebalancing of files is an I/O intensive and time consuming operation, and is |
---|
| 160 | important only for file systems with large files that are mostly |
---|
| 161 | invariant. In many cases, normal file update and creation will |
---|
| 162 | rebalance your file system over time, without the cost of the |
---|
| 163 | rebalancing. |
---|
| 164 | .RE |
---|
| 165 | .RE |
---|
| 166 | .SH "Exit status" |
---|
| 167 | .PP |
---|
| 168 | .PP |
---|
| 169 | .RS +3 |
---|
| 170 | \fB0 |
---|
| 171 | \fR |
---|
| 172 | .RE |
---|
| 173 | .RS +9 |
---|
| 174 | Successful completion. |
---|
| 175 | .RE |
---|
| 176 | .PP |
---|
| 177 | .RS +3 |
---|
| 178 | \fBnonzero |
---|
| 179 | \fR |
---|
| 180 | .RE |
---|
| 181 | .RS +9 |
---|
| 182 | A failure has occurred. |
---|
| 183 | .RE |
---|
| 184 | .SH "Security" |
---|
| 185 | .PP |
---|
| 186 | You must have root authority to run the \fBmmdeldisk\fR command. |
---|
| 187 | .PP |
---|
| 188 | You may issue the \fBmmdeldisk\fR command from any node in the GPFS |
---|
| 189 | cluster. |
---|
| 190 | .PP |
---|
| 191 | When using the \fBrcp\fR and \fBrsh\fR commands for remote |
---|
| 192 | communication, a properly configured \fB.rhosts\fR file must exist |
---|
| 193 | in the root user's home directory on each node in the GPFS |
---|
| 194 | cluster. If you have designated the use of a different remote |
---|
| 195 | communication program on either the |
---|
| 196 | \fBmmcrcluster\fR |
---|
| 197 | or the |
---|
| 198 | \fBmmchcluster\fR command, you must |
---|
| 199 | ensure: |
---|
| 200 | .RS +3 |
---|
| 201 | .HP 3 |
---|
| 202 | 1. Proper authorization is granted to all nodes in the GPFS cluster. |
---|
| 203 | .HP 3 |
---|
| 204 | 2. The nodes in the GPFS cluster can communicate without the use of a |
---|
| 205 | password, and without any extraneous messages. |
---|
| 206 | .RE |
---|
| 207 | .SH "Examples" |
---|
| 208 | .PP |
---|
| 209 | To delete \fBgpfs2nsd\fR and \fBgpfs3nsd\fR from file system |
---|
| 210 | \fBfs0\fR and rebalance the files across the remaining disks, issue this |
---|
| 211 | command: |
---|
| 212 | .sp |
---|
| 213 | .nf |
---|
| 214 | mmdeldisk fs0 "gpfs2nsd;gpfs3nsd" -r |
---|
| 215 | .fi |
---|
| 216 | .sp |
---|
| 217 | .PP |
---|
| 218 | The system displays information similar to: |
---|
| 219 | .sp |
---|
| 220 | .nf |
---|
| 221 | Dleting disks ... |
---|
| 222 | Scanning 'system' storage pool |
---|
| 223 | Scanning file system metadata, phase 1 ...\ |
---|
| 224 | Scan completed successfully. |
---|
| 225 | Scanning file system metadata, phase 2 ...\ |
---|
| 226 | Scan completed successfully. |
---|
| 227 | Scanning file system metadata, phase 3 ...\ |
---|
| 228 | Scan completed successfully. |
---|
| 229 | Scanning file system metadata, phase 4 ...\ |
---|
| 230 | Scan completed successfully. |
---|
| 231 | Scanning user file metadata ... |
---|
| 232 | 2 % complete on Tue Feb 14 14:45:18 2006 |
---|
| 233 | 3 % complete on Tue Feb 14 14:45:21 2006 |
---|
| 234 | 9 % complete on Tue Feb 14 14:45:24 2006 |
---|
| 235 | 18 % complete on Tue Feb 14 14:45:27 2006 |
---|
| 236 | 27 % complete on Tue Feb 14 14:45:35 2006 |
---|
| 237 | 28 % complete on Tue Feb 14 14:45:39 2006 |
---|
| 238 | 29 % complete on Tue Feb 14 14:45:43 2006 |
---|
| 239 | 30 % complete on Tue Feb 14 14:45:52 2006 |
---|
| 240 | 34 % complete on Tue Feb 14 14:46:04 2006 |
---|
| 241 | 37 % complete on Tue Feb 14 14:46:18 2006 |
---|
| 242 | 45 % complete on Tue Feb 14 14:46:22 2006 |
---|
| 243 | 51 % complete on Tue Feb 14 14:46:26 2006 |
---|
| 244 | 94 % complete on Tue Feb 14 14:46:29 2006 |
---|
| 245 | 100 % complete on Tue Feb 14 14:46:32 2006 |
---|
| 246 | Scan completed successfully. |
---|
| 247 | tsdeldisk64 completed. |
---|
| 248 | mmdeldisk: Propagating the cluster configuration data to all |
---|
| 249 | affected nodes. This is an asynchronous process. |
---|
| 250 | .fi |
---|
| 251 | .sp |
---|
| 252 | .SH "See also" |
---|
| 253 | .PP |
---|
| 254 | mmadddisk Command |
---|
| 255 | .PP |
---|
| 256 | mmchdisk Command |
---|
| 257 | .PP |
---|
| 258 | mmlsdisk Command |
---|
| 259 | .PP |
---|
| 260 | mmrpldisk Command |
---|
| 261 | .SH "Location" |
---|
| 262 | .PP |
---|
| 263 | \fB/usr/lpp/mmfs/bin\fR |
---|
| 264 | .PP |
---|