source: gpfs_3.1_ker2.6.20/share/man/man8/mmrpldisk.8 @ 66

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