1 | .TH mmchdisk 03/31/06 |
---|
2 | mmchdisk Command |
---|
3 | .SH "Name" |
---|
4 | .PP |
---|
5 | \fBmmchdisk\fR - Changes state or parameters of one or more disks in |
---|
6 | a GPFS file system. |
---|
7 | .SH "Synopsis" |
---|
8 | .PP |
---|
9 | \fBmmchdisk\fR \fIDevice\fR {\fBsuspend\fR | \fBresume\fR | |
---|
10 | \fBstop\fR | \fBstart\fR | \fBchange\fR} \fB-d\fR |
---|
11 | "\fIDiskDesc\fR[;\fIDiskDesc\fR...]" |
---|
12 | [\fB-N\fR |
---|
13 | {\fINode\fR[,\fINode\fR...] | |
---|
14 | \fINodeFile\fR | \fINodeClass\fR}] |
---|
15 | .PP |
---|
16 | Or, |
---|
17 | .PP |
---|
18 | \fBmmchdisk\fR \fIDevice\fR {\fBresume\fR | \fBstart\fR} |
---|
19 | \fB-a\fR [\fB-N\fR |
---|
20 | {\fINode\fR[,\fINode\fR...] | |
---|
21 | \fINodeFile\fR | \fINodeClass\fR}] |
---|
22 | .SH "Description" |
---|
23 | .PP |
---|
24 | Use the \fBmmchdisk\fR command to change the state or the parameters of |
---|
25 | one or more disks in a GPFS file system. |
---|
26 | .PP |
---|
27 | The state of a disk is a combination of its status and availability, displayed |
---|
28 | with the |
---|
29 | \fBmmlsdisk\fR command. Disk status |
---|
30 | is normally either \fBready\fR or \fBsuspended\fR. A transitional |
---|
31 | status such as \fBreplacing\fR, \fBreplacement\fR, or \fBbeing |
---|
32 | emptied\fR might also appear if a disk is being deleted or replaced. |
---|
33 | A suspended disk is one that the user has decided not to place any new data |
---|
34 | on. Existing data on a suspended disk may still be read or |
---|
35 | updated. Typically, a disk is suspended prior to restriping a file |
---|
36 | system. Suspending a disk tells the \fBmmrestripefs\fR command that data is to be migrated |
---|
37 | off that disk. Disk availability is either \fBup\fR or |
---|
38 | \fBdown\fR. |
---|
39 | .PP |
---|
40 | Be sure to use \fBstop\fR before you take a disk offline for |
---|
41 | maintenance. You should also use \fBstop\fR when a disk has become |
---|
42 | temporarily inaccessible due to a disk failure that is repairable without loss |
---|
43 | of data on that disk (for example, an adapter failure or a failure of the disk |
---|
44 | electronics). |
---|
45 | .PP |
---|
46 | The \fIDisk Usage\fR (\fBdataAndMetadata\fR, \fBdataOnly\fR, |
---|
47 | \fBmetadataOnly\fR, or \fBdescOnly\fR) and \fIFailure Group\fR |
---|
48 | parameters of a disk are adjusted with the \fBchange\fR option. See |
---|
49 | the |
---|
50 | \fIGeneral Parallel File System: |
---|
51 | Concepts, Planning, and Installation Guide\fR and search for |
---|
52 | \fIrecoverability considerations\fR. The \fBmmchdisk change\fR |
---|
53 | command does not move data or metadata that resides on the disk. After |
---|
54 | changing disk parameters, in particular, \fIDisk Usage\fR, you may have to |
---|
55 | issue the |
---|
56 | \fBmmrestripefs\fR command with the |
---|
57 | \fB-r\fR option to relocate data so that it conforms to the new disk |
---|
58 | parameters. |
---|
59 | .PP |
---|
60 | The \fBmmchdisk\fR command can be issued for a mounted or unmounted file system. |
---|
61 | When maintenance is complete or the failure has been repaired, use the \fBmmchdisk\fR command with the start option. |
---|
62 | If the failure cannot be repaired without loss of data, you can use the \fBmmdeldisk\fR command. |
---|
63 | .PP |
---|
64 | Note: |
---|
65 | The \fBmmchdisk\fR command cannot be used to change the NSD servers associated with the disk. |
---|
66 | Use the \fBmmchnsd\fR command for this purpose. |
---|
67 | Similarly, the \fBmmchdisk\fR command cannot be used to change the storage pool for the disk. |
---|
68 | Use the \fBmmdeldisk\fR and \fBmmadddisk\fR commands to move a disk from one storage pool to another. |
---|
69 | .SH "Parameters" |
---|
70 | .PP |
---|
71 | .RS +3 |
---|
72 | \fB\fIDevice\fR |
---|
73 | \fR |
---|
74 | .RE |
---|
75 | .RS +9 |
---|
76 | The device name of the file system to which the disks belong. File |
---|
77 | system names need not be fully-qualified. \fBfs0\fR is as acceptable |
---|
78 | as \fB/dev/fs0\fR. |
---|
79 | .PP |
---|
80 | This must be the first parameter. |
---|
81 | .RE |
---|
82 | .PP |
---|
83 | .RS +3 |
---|
84 | \fB-d "\fIDiskDesc\fR[;\fIDiskDesc\fR... |
---|
85 | ]" |
---|
86 | \fR |
---|
87 | .RE |
---|
88 | .RS +9 |
---|
89 | A descriptor for each disk to be changed. |
---|
90 | .PP |
---|
91 | Specify only disk names when using the \fBsuspend\fR, \fBresume\fR, |
---|
92 | \fBstop\fR, or \fBstart\fR options. Delimit multiple disk names |
---|
93 | with semicolons and enclose the list in quotation marks. For example, |
---|
94 | "gpfs1nsd;gpfs2nsd" |
---|
95 | .PP |
---|
96 | When using the \fBchange\fR option, include the disk name and any new |
---|
97 | \fIDisk Usage\fR and \fIFailure Group\fR positional parameter values in |
---|
98 | the descriptor. Delimit descriptors with semicolons and enclose the |
---|
99 | list in quotation marks, for example, |
---|
100 | "gpfs1nsd:::dataOnly;gpfs2nsd:::metadataOnly:12" |
---|
101 | .PP |
---|
102 | A disk descriptor is defined as (second, third, sixth and sevents |
---|
103 | fields reserved): |
---|
104 | .sp |
---|
105 | .nf |
---|
106 | DiskName:::DiskUsage:FailureGroup::: |
---|
107 | .fi |
---|
108 | .sp |
---|
109 | .PP |
---|
110 | .RS +3 |
---|
111 | \fB\fIDiskName\fR |
---|
112 | \fR |
---|
113 | .RE |
---|
114 | .RS +9 |
---|
115 | .PP |
---|
116 | For a list of disks that belong to a particular file system, issue the \fBmmlsnsd -f\fR, the |
---|
117 | \fBmmlsfs |
---|
118 | -d\fR, or the |
---|
119 | \fBmmlsdisk\fR command. |
---|
120 | The |
---|
121 | \fBmmlsdisk\fR command will also show the current |
---|
122 | disk usage and failure group values for each of the disks. |
---|
123 | .RE |
---|
124 | .PP |
---|
125 | .RS +3 |
---|
126 | \fB\fIDiskUsage\fR |
---|
127 | \fR |
---|
128 | .RE |
---|
129 | .RS +9 |
---|
130 | If a value is not specified, the disk usage remains unchanged: |
---|
131 | .PP |
---|
132 | .RS +3 |
---|
133 | \fBdataAndMetadata |
---|
134 | \fR |
---|
135 | .RE |
---|
136 | .RS +9 |
---|
137 | Indicates that the disk contains both data and metadata. This is |
---|
138 | the default. |
---|
139 | .RE |
---|
140 | .PP |
---|
141 | .RS +3 |
---|
142 | \fBdataOnly |
---|
143 | \fR |
---|
144 | .RE |
---|
145 | .RS +9 |
---|
146 | Indicates that the disk contains data and does not contain |
---|
147 | metadata. |
---|
148 | .RE |
---|
149 | .PP |
---|
150 | .RS +3 |
---|
151 | \fBmetadataOnly |
---|
152 | \fR |
---|
153 | .RE |
---|
154 | .RS +9 |
---|
155 | Indicates that the disk contains metadata and does not contain |
---|
156 | data. |
---|
157 | .RE |
---|
158 | .PP |
---|
159 | .RS +3 |
---|
160 | \fBdescOnly |
---|
161 | \fR |
---|
162 | .RE |
---|
163 | .RS +9 |
---|
164 | Indicates that the disk contains no data and no file metadata. Such |
---|
165 | a disk is used solely to keep a copy of the file system descriptor, and can be |
---|
166 | used as a third failure group in certain disaster recovery |
---|
167 | configurations. For more information, see |
---|
168 | \fIGeneral Parallel File System: Advanced |
---|
169 | Administration\fR and search on \fISynchronous mirroring utilizing |
---|
170 | GPFS replication\fR. |
---|
171 | .RE |
---|
172 | .RE |
---|
173 | .PP |
---|
174 | .RS +3 |
---|
175 | \fB\fIFailureGroup\fR |
---|
176 | \fR |
---|
177 | .RE |
---|
178 | .RS +9 |
---|
179 | A number identifying the failure group to which this disk belongs. |
---|
180 | You can specify any value from -1 (where -1 indicates that the disk has no |
---|
181 | point of failure in common with any other disk) to 4000. If you do not |
---|
182 | specify a failure group, the value remains unchanged. GPFS uses this |
---|
183 | information during data and metadata placement to assure that no two replicas |
---|
184 | of the same block are written in such a way as to become unavailable due to a |
---|
185 | single disk failure. All disks that are attached to the same NSD server |
---|
186 | or adapter should be placed in the same failure group. |
---|
187 | .RE |
---|
188 | .RE |
---|
189 | .PP |
---|
190 | .RS +3 |
---|
191 | \fB-a |
---|
192 | \fR |
---|
193 | .RE |
---|
194 | .RS +9 |
---|
195 | Specifies to change the state of all of the disks belonging to the file |
---|
196 | system, \fIDevice\fR. This operand is valid only on the |
---|
197 | \fBresume\fR and \fBstart\fR options. |
---|
198 | .RE |
---|
199 | .PP |
---|
200 | .RS +3 |
---|
201 | \fB-N {\fINode\fR[,\fINode\fR...] | \fINodeFile\fR | \fINodeClass\fR } |
---|
202 | \fR |
---|
203 | .RE |
---|
204 | .RS +9 |
---|
205 | Specify the nodes to participate in the restripe of the file system after |
---|
206 | the state or parameters of the disks have been changed. This command |
---|
207 | supports all defined node classes. The default is \fBall\fR (all |
---|
208 | nodes in the GPFS cluster will participate in the restripe of the file |
---|
209 | system). |
---|
210 | .PP |
---|
211 | For information on how to specify node names, see \fISpecifying nodes as input to GPFS commands\fR |
---|
212 | in \fIGPFS: Administration and Programming Reference\fR. |
---|
213 | .RE |
---|
214 | .SH "Options" |
---|
215 | .PP |
---|
216 | .RS +3 |
---|
217 | \fBchange |
---|
218 | \fR |
---|
219 | .RE |
---|
220 | .RS +9 |
---|
221 | Instructs GPFS to change the \fIDisk Usage\fR parameter, the |
---|
222 | \fIFailure Group\fR parameter, or both, according to the values specified |
---|
223 | in the \fIDisk Desc\fR. |
---|
224 | .RE |
---|
225 | .PP |
---|
226 | .RS +3 |
---|
227 | \fBresume |
---|
228 | \fR |
---|
229 | .RE |
---|
230 | .RS +9 |
---|
231 | Informs GPFS that a disk previously suspended is now available for |
---|
232 | allocating new space. If the disk is currently in a stopped state, it |
---|
233 | remains stopped until you specify the \fBstart\fR option. Otherwise, |
---|
234 | normal read and write access to the disk resumes. |
---|
235 | .RE |
---|
236 | .PP |
---|
237 | .RS +3 |
---|
238 | \fBstart |
---|
239 | \fR |
---|
240 | .RE |
---|
241 | .RS +9 |
---|
242 | Informs GPFS that disks previously stopped are now accessible. This |
---|
243 | is accomplished by first changing the disk availability from \fBdown\fR to |
---|
244 | \fBrecovering\fR. The file system metadata is then scanned and any |
---|
245 | missing updates (replicated data that was changed while the disk was |
---|
246 | \fBdown\fR) are repaired. If this operation is successful, the |
---|
247 | availability is then changed to \fBup\fR. If the metadata scan |
---|
248 | fails, availability is set to \fBunrecovered\fR. This could occur if |
---|
249 | too many other disks are \fBdown\fR. The metadata scan can be |
---|
250 | re-initiated at a later time by issuing the \fBmmchdisk start\fR command |
---|
251 | again. |
---|
252 | .PP |
---|
253 | If more than one disk in the file system is down, they must all be started |
---|
254 | at the same time by issuing the \fBmmchdisk \fIDevice\fR start -a\fR |
---|
255 | command. If you start them separately and metadata is stored on any |
---|
256 | disk that remains down, the \fBmmchdisk start\fR command fails. |
---|
257 | .RE |
---|
258 | .PP |
---|
259 | .RS +3 |
---|
260 | \fBstop |
---|
261 | \fR |
---|
262 | .RE |
---|
263 | .RS +9 |
---|
264 | Instructs GPFS to stop any attempts to access the specified disks. |
---|
265 | Use this option to tell the file system manager that a disk has failed or is |
---|
266 | currently inaccessible because of maintenance. |
---|
267 | .PP |
---|
268 | A disk remains stopped until it is explicitly started by the |
---|
269 | \fBmmchdisk\fR command with the \fBstart\fR option. Restarting |
---|
270 | the GPFS Server daemon or rebooting does not restore normal access to a |
---|
271 | stopped disk. |
---|
272 | .RE |
---|
273 | .PP |
---|
274 | .RS +3 |
---|
275 | \fBsuspend |
---|
276 | \fR |
---|
277 | .RE |
---|
278 | .RS +9 |
---|
279 | Instructs GPFS to stop allocating space on the specified disk. |
---|
280 | Place a disk in this state when you are preparing to restripe the file system |
---|
281 | off this disk because of faulty performance. This is a user-initiated |
---|
282 | state that GPFS never uses without an explicit command to change disk |
---|
283 | state. Existing data on a suspended disk may still be read or |
---|
284 | updated. |
---|
285 | .PP |
---|
286 | A disk remains suspended until it is explicitly resumed. Restarting |
---|
287 | GPFS or rebooting nodes does not restore normal access to a suspended |
---|
288 | disk. |
---|
289 | .RE |
---|
290 | .SH "Exit status" |
---|
291 | .PP |
---|
292 | .PP |
---|
293 | .RS +3 |
---|
294 | \fB0 |
---|
295 | \fR |
---|
296 | .RE |
---|
297 | .RS +9 |
---|
298 | Successful completion. |
---|
299 | .RE |
---|
300 | .PP |
---|
301 | .RS +3 |
---|
302 | \fBnonzero |
---|
303 | \fR |
---|
304 | .RE |
---|
305 | .RS +9 |
---|
306 | A failure has occurred. |
---|
307 | .RE |
---|
308 | .SH "Security" |
---|
309 | .PP |
---|
310 | You must have root authority to run the \fBmmchdisk\fR command. |
---|
311 | .PP |
---|
312 | You may issue the \fBmmchdisk\fR command from any node in the GPFS |
---|
313 | cluster. |
---|
314 | .PP |
---|
315 | When using the \fBrcp\fR and \fBrsh\fR commands for remote |
---|
316 | communication, a properly configured \fB.rhosts\fR file must exist |
---|
317 | in the root user's home directory on each node in the GPFS |
---|
318 | cluster. If you have designated the use of a different remote |
---|
319 | communication program on either the |
---|
320 | \fBmmcrcluster\fR |
---|
321 | or the |
---|
322 | \fBmmchcluster\fR command, you must |
---|
323 | ensure: |
---|
324 | .RS +3 |
---|
325 | .HP 3 |
---|
326 | 1. Proper authorization is granted to all nodes in the GPFS cluster. |
---|
327 | .HP 3 |
---|
328 | 2. The nodes in the GPFS cluster can communicate without the use of a |
---|
329 | password, and without any extraneous messages. |
---|
330 | .RE |
---|
331 | .SH "Examples" |
---|
332 | .RS +3 |
---|
333 | .HP 3 |
---|
334 | 1. To \fBsuspend\fR active disk \fBgpfs2nsd\fR, issue this |
---|
335 | command: |
---|
336 | .sp |
---|
337 | .nf |
---|
338 | mmchdisk fs0 suspend -d gpfs2nsd |
---|
339 | .fi |
---|
340 | .sp |
---|
341 | To confirm the change, issue this command: |
---|
342 | .sp |
---|
343 | .nf |
---|
344 | mmlsdisk fs0 |
---|
345 | .fi |
---|
346 | .sp |
---|
347 | The system displays information similar to: |
---|
348 | .sp |
---|
349 | .nf |
---|
350 | disk driver sector failure holds holds status storage |
---|
351 | name type size group metadata data availability pool |
---|
352 | --------- ------- ------ ------- ------- ---- ----- --------- ------- |
---|
353 | gpfs2nsd nsd 512 2 yes yes suspended up system |
---|
354 | hd3vsdn01 nsd 512 2 yes yes ready up system |
---|
355 | hd27n01 nsd 512 8 yes yes ready up system |
---|
356 | hd28n01 nsd 512 8 yes yes ready up system |
---|
357 | hd29n01 nsd 512 8 yes yes ready up system |
---|
358 | hd10vsdn09 nsd 512 4003 no yes ready up sp1\ |
---|
359 | hd11vsdn10 nsd 512 4003 no yes ready up sp1\ |
---|
360 | .fi |
---|
361 | .sp |
---|
362 | .HP 3 |
---|
363 | 2. To specify that metadata should no longer be stored on disk |
---|
364 | \fBgpfs1nsd\fR, issue this command: |
---|
365 | .sp |
---|
366 | .nf |
---|
367 | mmchdisk fs0 change -d "gpfs1nsd:::dataOnly" |
---|
368 | .fi |
---|
369 | .sp |
---|
370 | To confirm the change, issue this command: |
---|
371 | .sp |
---|
372 | .nf |
---|
373 | mmlsdisk fs0 |
---|
374 | .fi |
---|
375 | .sp |
---|
376 | The system displays information similar to: |
---|
377 | .sp |
---|
378 | .nf |
---|
379 | disk driver sector failure holds holds status storage |
---|
380 | name type size group metadata data availability pool |
---|
381 | --------- ------ ------ ------- ------ ---- ----- --------- ------- |
---|
382 | hd2vsdn01 nsd 512 2 yes yes ready up system |
---|
383 | hd3vsdn01 nsd 512 2 yes yes ready up system |
---|
384 | hd27n01 nsd 512 8 yes yes ready up system |
---|
385 | gpfs1nsd nsd 512 8 no yes ready up system |
---|
386 | hd29n01 nsd 512 8 yes yes ready up system |
---|
387 | hd10vsdn09 nsd 512 4003 no yes ready up sp1 |
---|
388 | hd11vsdn10 nsd 512 4003 no yes ready up sp1 |
---|
389 | .fi |
---|
390 | .sp |
---|
391 | .RE |
---|
392 | .SH "See also" |
---|
393 | .PP |
---|
394 | Displaying GPFS disk states |
---|
395 | .PP |
---|
396 | mmadddisk Command |
---|
397 | .PP |
---|
398 | mmchnsd Command |
---|
399 | .PP |
---|
400 | mmdeldisk Command |
---|
401 | .PP |
---|
402 | mmlsdisk Command |
---|
403 | .PP |
---|
404 | mmlsnsd Command |
---|
405 | .PP |
---|
406 | mmrpldisk Command |
---|
407 | .SH "Location" |
---|
408 | .PP |
---|
409 | \fB/usr/lpp/mmfs/bin\fR |
---|
410 | .PP |
---|