source: gpfs_3.1_ker2.6.20/share/man/man8/mmchdisk.8 @ 16

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