source: gpfs_3.1_ker2.6.20/share/man/man8/mmcrnsd.8 @ 219

Last change on this file since 219 was 16, checked in by rock, 17 years ago
File size: 10.8 KB
Line 
1.TH mmcrnsd 02/16/06
2mmcrnsd Command
3.SH "Name"
4.PP
5\fBmmcrnsd\fR - Creates cluster-wide names for Network Shared Disks
6(NSDs) used by GPFS.
7.SH "Synopsis"
8.PP
9\fBmmcrnsd\fR \fB-F\fR \fIDescFile\fR [\fB-v\fR {\fB\fIyes\fR\fR |\fBno\fR}]
10.SH "Description"
11.PP
12The \fBmmcrnsd\fR command is used to create cluster-wide names for NSDs
13used by GPFS.
14.PP
15This is the first GPFS step in preparing a disk for use by a GPFS
16file system. A disk descriptor file supplied to this command is
17rewritten with the new NSD names and that rewritten disk descriptor file can
18then be supplied as input to the
19\fBmmcrfs\fR, \fBmmadddisk\fR or \fBmmrpldisk\fR commands.
20.PP
21The name created by the \fBmmcrnsd\fR command is necessary since disks
22connected at multiple nodes may have differing disk device names in
23\fB/dev\fR on each node. The name uniquely identifies the
24disk. This command must be run for all disks that are to be used in
25GPFS file systems. The \fBmmcrnsd\fR command is also used to assign
26a primary and backup NSD server that can be used for I/O operations on behalf
27of nodes that do not have direct access to the disk.
28.PP
29To identify that the disk has been processed by the \fBmmcrnsd\fR command,
30a unique NSD volume ID is written on sector 2 of the disk. All of the
31NSD commands (\fBmmcrnsd\fR,
32\fBmmlsnsd\fR, and \fBmmdelnsd\fR) use this unique NSD volume ID to
33identify and process NSDs.
34.PP
35After the NSDs are created, the GPFS cluster data is updated and they are
36available for use by GPFS.
37.PP
38When using an IBM  pSeries High Performance Switch
39(pSeries HPS) in your configuration, it is suggested you process your disks in
40two steps:
41.RS +3
42.HP 3
431.
44Create virtual shared disks on each physical disk through the \fBmmcrvsd\fR command.
45.HP 3
462.
47Using the rewritten disk descriptors from the \fBmmcrvsd\fR command, create NSDs through the
48\fBmmcrnsd\fR command.
49.RE
50.PP
51\fBResults\fR
52.PP
53Upon successful completion of the \fBmmcrnsd\fR command, these tasks are
54completed:
55.RS +3
56.HP 3
57\(bu NSDs are created.
58.HP 3
59\(bu The \fIDescFile\fR contains NSD names to be used as input to the \fBmmcrfs\fR,
60\fBmmadddisk\fR,
61or the
62\fBmmrpldisk\fR commands.
63.HP 3
64\(bu
65A unique NSD volume ID to identify the disk as an NSD has been written on
66sector 2.
67.HP 3
68\(bu
69An entry for each new disk is created in the GPFS cluster data.
70.RE
71.SH "Parameters"
72.PP
73.RS +3
74\fB-F \fIDescFile\fR
75\fR
76.RE
77.RS +9
78The file containing the list of disk descriptors, one per line.
79Disk descriptors have this format:
80.sp
81.nf
82DiskName:PrimaryServer:BackupServer:DiskUsage:FailureGroup:
83DesiredName:StoragePool
84.fi
85.sp
86.PP
87.RS +3
88\fB\fIDiskName\fR
89\fR
90.RE
91.RS +9
92.PP
93The block device name appearing in \fB/dev\fR for the disk you want to
94define as an NSD. Examples of disks accessible through a block device
95are SAN-attached disks or virtual shared disks. If a
96\fIPrimaryServer\fR node is specified, \fIDiskName\fR must be the
97\fB/dev\fR name for the disk device on the primary NSD server node.
98See the Frequently Asked Questions at publib.boulder.ibm.com/infocenter/clresctr/
99topic/com.ibm.cluster.gpfs.doc/
100gpfs_faqs/gpfsclustersfaq.html for the latest supported disk
101types.
102.PP
103GPFS provides the
104\fBmmcrvsd\fR helper
105command. In an AIX environment, this command can be used to configure
106virtual shared disks and make them accessible to nodes connected over a high
107performance switch. The output disk descriptor file from an \fBmmcrvsd\fR command can be used as input to the
108\fBmmcrnsd\fR command
109.RE
110.PP
111.RS +3
112\fB\fIPrimaryServer\fR
113\fR
114.RE
115.RS +9
116The name of the primary NSD server node.
117.PP
118If this field is omitted, the disk is assumed to be SAN-attached to all
119nodes in the cluster. If not all nodes in the cluster have access to
120the disk, or if the file system to which the disk belongs is to be accessed by
121other GPFS clusters, \fIPrimaryServer\fR must be specified.
122.RE
123.PP
124.RS +3
125\fB\fIBackupServer\fR
126\fR
127.RE
128.RS +9
129The name of the backup NSD server node.
130.PP
131If the \fIPrimaryServer\fR has been specified and this field is omitted,
132it is assumed you do not want failover in the event that the
133\fIPrimaryServer\fR fails. If \fIBackupServer\fR is specified and
134the \fIPrimaryServer\fR has not been specified, the command fails.
135.PP
136For information on how to specify node names, see \fISpecifying nodes as input to GPFS commands\fR
137in \fIGPFS: Administration and Programming Reference\fR.
138.RE
139.PP
140.RS +3
141\fB\fIDiskUsage\fR
142\fR
143.RE
144.RS +9
145Specify a disk usage or accept the default. This field is ignored
146by the \fBmmcrnsd\fR command, and is passed unchanged to the output
147descriptor file produced by the \fBmmcrnsd\fR command. Possible
148values are:
149.PP
150.RS +3
151\fBdataAndMetadata
152\fR
153.RE
154.RS +9
155Indicates that the disk contains both data and metadata. This is
156the default.
157.RE
158.PP
159.RS +3
160\fBdataOnly
161\fR
162.RE
163.RS +9
164Indicates that the disk contains data and does not contain
165metadata.
166.RE
167.PP
168.RS +3
169\fBmetadataOnly
170\fR
171.RE
172.RS +9
173Indicates that the disk contains metadata and does not contain
174data.
175.RE
176.PP
177.RS +3
178\fBdescOnly
179\fR
180.RE
181.RS +9
182Indicates that the disk contains no data and no file metadata. Such
183a disk is used solely to keep a copy of the file system descriptor, and can be
184used as a third failure group in certain disaster recovery
185configurations. For more information, see
186\fIGeneral Parallel File System: Advanced
187Administration\fR and search on \fISynchronous mirroring utilizing
188GPFS replication\fR.
189.RE
190.RE
191.PP
192.RS +3
193\fB\fIFailureGroup\fR
194\fR
195.RE
196.RS +9
197A number identifying the failure group to which this disk belongs.
198You can specify any value from -1 (where -1 indicates that the disk has no
199point of failure in common with any other disk) to 4000. If you do not
200specify a failure group, the value defaults to the NSD primary server node
201number plus 4000. If an NSD server node is not specified, the value
202defaults to -1.
203.PP
204GPFS uses this information during data and metadata placement to assure
205that no two replicas of the same block are written in such a way as to become
206unavailable due to a single failure. All disks that are attached to the
207same NSD server or adapter should be placed in the same failure group.
208.RE
209.PP
210.RS +3
211\fB\fIDesiredName\fR
212\fR
213.RE
214.RS +9
215Specify the name you desire for the NSD to be created. This name
216must not already be used as another GPFS disk name, and it must not begin with
217the reserved string 'gpfs'.
218.RS +3
219\fBNote:\fR
220.RE
221.RS +9
222This name can contain only the following characters: 'A'
223through 'Z', 'a' through 'z', '0'
224through '9', or '_' (the underscore). All other
225characters are not valid.
226.RE
227.PP
228If a desired name is not specified, the NSD is assigned a name according to
229the convention:
230.PP
231.RS +3
232\fBgpfs\fINN\fRnsd
233\fR
234.RE
235.RS +9
236where \fINN\fR is a unique nonnegative integer not used in any prior
237NSD.
238.RE
239.RE
240.PP
241.RS +3
242\fB\fIStoragePool\fR
243\fR
244.RE
245.RS +9
246Specifies the name of the storage pool that the NSD is assigned to.
247This field is ignored by the \fBmmcrnsd\fR command, and is passed unchanged
248to the output descriptor file produced by the \fBmmcrnsd\fR
249command.
250.RE
251.RE
252.PP
253Upon successful completion of the \fBmmcrnsd\fR command, the
254\fIDescFile\fR file is rewritten to contain the created NSD names in place
255of the device name. Primary and backup NSD servers and
256\fIdesiredName\fR are omitted from the rewritten disk descriptor and all
257other fields, if specified, are copied without modification. The
258original lines, as well as descriptor lines in error, are commented out and
259preserved for reference. The rewritten disk descriptor file can then be
260used as input to the
261\fBmmcrfs\fR, \fBmmadddisk\fR, or the \fBmmrpldisk\fR commands. You must have
262\fBwrite\fR access to the directory where the \fIDescFile\fR file is
263located in order to rewrite the created NSD information.
264.PP
265The \fIDisk Usage\fR and \fIFailure Group\fR specifications in the
266disk descriptor are preserved only if you use the rewritten file produced by
267the \fBmmcrnsd\fR command. If you do not use this file, you must
268either accept the default values or specify new values when creating disk
269descriptors for other commands.
270.SH "Options"
271.PP
272.RS +3
273\fB -v {\fB\fIyes\fR\fR |\fBno\fR}
274\fR
275.RE
276.RS +9
277Verify the disk is not already formatted as an NSD.
278.PP
279A value of \fB-v yes\fR specifies that the NSD are to be created only
280if the disk has not been formatted by a previous invocation of the
281\fBmmcrnsd\fR command, as indicated by the NSD volume ID on sector 2 of the
282disk. A value of \fB-v no\fR specifies that the disk is to be
283formatted irrespective of its previous state. The default is \fB-v
284yes\fR.
285.RE
286.SH "Exit status"
287.PP
288.PP
289.RS +3
290\fB0
291\fR
292.RE
293.RS +9
294Successful completion.
295.RE
296.PP
297.RS +3
298\fBnonzero
299\fR
300.RE
301.RS +9
302A failure has occurred.
303.RE
304.SH "Security"
305.PP
306You must have root authority to run the \fBmmcrnsd\fR command.
307.PP
308You may issue the \fBmmcrnsd\fR command from any node in the GPFS
309cluster.
310.PP
311When using the \fBrcp\fR and \fBrsh\fR commands for remote
312communication, a properly configured \fB.rhosts\fR file must exist
313in the root user's home directory, on each node in the GPFS
314cluster. If you have designated the use of a different remote
315communication program on either the
316\fBmmcrcluster\fR
317or the
318\fBmmchcluster\fR command, you must
319ensure:
320.RS +3
321.HP 3
3221. Proper authorization is granted to all nodes in the GPFS cluster.
323.HP 3
3242. The nodes in the GPFS cluster can communicate without the use of a
325password, and without any extraneous messages.
326.RE
327.SH "Examples"
328.PP
329To create your NSDs from the descriptor file \fBnsdesc\fR
330containing:
331.sp
332.nf
333 sdav1:k145n05:k145n06:dataOnly:4::poolA\
334 sdav2:k145n04::dataAndMetadata:5:ABC
335.fi
336.sp
337.PP
338Issue this command:
339.sp
340.nf
341mmcrnsd -F nsdesc\
342.fi
343.sp
344.PP
345These descriptors translate as:
346.PP
347.RS +3
348\fBDisk Name
349\fR
350.RE
351.RS +9
352sdav1
353.RE
354.PP
355.RS +3
356\fBPrimaryServer Name
357\fR
358.RE
359.RS +9
360k145n05
361.RE
362.PP
363.RS +3
364\fBBackupServer Name
365\fR
366.RE
367.RS +9
368k145n06
369.RE
370.PP
371.RS +3
372\fBDisk Usage
373\fR
374.RE
375.RS +9
376\fBdataOnly\fR
377.RE
378.PP
379.RS +3
380\fBFailure Group
381\fR
382.RE
383.RS +9
3844
385.RE
386.PP
387.RS +3
388\fBStorage Pool
389\fR
390.RE
391.RS +9
392poolA
393.RE
394.PP
395and
396.PP
397.RS +3
398\fBDisk Name
399\fR
400.RE
401.RS +9
402sdav2
403.RE
404.PP
405.RS +3
406\fBServer Name
407\fR
408.RE
409.RS +9
410k145n04
411.RE
412.PP
413.RS +3
414\fBBackup Server Name
415\fR
416.RE
417.RS +9
418none
419.RE
420.PP
421.RS +3
422\fBDisk Usage
423\fR
424.RE
425.RS +9
426\fBdataAndMetadata,\fR allowing both
427.RE
428.PP
429.RS +3
430\fBFailure Group
431\fR
432.RE
433.RS +9
4345
435.RE
436.PP
437.RS +3
438\fBDesired Name
439\fR
440.RE
441.RS +9
442ABC
443.RE
444.PP
445.RS +3
446\fBStorage Pool
447\fR
448.RE
449.RS +9
450system
451.RE
452.PP
453\fBnsdesc\fR is rewritten as
454.sp
455.nf
456#sdav1:k145n05:k145n06:dataOnly:4::poolA
457gpfs20nsd:::dataOnly:4::poolA
458#sdav2:k145n04::dataAndMetadata:5:ABC
459ABC:::dataAndMetadata:5
460.fi
461.sp
462.PP
463The output is similar to this:
464.sp
465.nf
466mmcrnsd: Processing disk sdav1
467mmcrnsd: Processing disk sdav2
468mmcrnsd: 6027-1371 Propagating the changes to all affected
469                   nodes. This is an asynchronous process.
470.fi
471.sp
472.SH "See also"
473.PP
474mmadddisk Command
475.PP
476mmcrfs Command
477.PP
478mmdeldisk Command
479.PP
480mmdelnsd Command
481.PP
482mmlsnsd Command
483.PP
484mmrpldisk Command
485.SH "Location"
486.PP
487\fB/usr/lpp/mmfs/bin\fR
488.PP
Note: See TracBrowser for help on using the repository browser.