7712 mandoc -Tlint does always exit with error code 0
[unleashed.git] / usr / src / man / man1m / metaset.1m
blob98e9613bcac4ce2f32904eb848f4f622f1fd5ce4
1 '\" te
2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
4 .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
5 .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH METASET 1M "April 9, 2016"
7 .SH NAME
8 metaset \- configure disk sets
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR [\fB-M\fR\fB-a\fR \fB-h\fR \fIhostname\fR]
13 .fi
15 .LP
16 .nf
17 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-A\fR {enable | disable}
18 .fi
20 .LP
21 .nf
22 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR [\fB-A\fR {enable | disable}] \fB-a\fR \fB-h\fR \fIhostname\fR...
23 .fi
25 .LP
26 .nf
27 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-a\fR [\fB-l\fR \fIlength\fR] [\fB-L\fR] \fIdrivename...\fR
28 .fi
30 .LP
31 .nf
32 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-C\fR {take | release | purge}
33 .fi
35 .LP
36 .nf
37 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-d\fR [\fB-f\fR] \fB-h\fR \fIhostname...\fR
38 .fi
40 .LP
41 .nf
42 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-d\fR [\fB-f\fR] \fIdrivename...\fR
43 .fi
45 .LP
46 .nf
47 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-j\fR
48 .fi
50 .LP
51 .nf
52 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-r\fR
53 .fi
55 .LP
56 .nf
57 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-w\fR
58 .fi
60 .LP
61 .nf
62 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-t\fR [\fB-f\fR] [\fB-u\fR \fItagnumber\fR] [y]
63 .fi
65 .LP
66 .nf
67 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-b\fR
68 .fi
70 .LP
71 .nf
72 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-P\fR
73 .fi
75 .LP
76 .nf
77 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-q\fR
78 .fi
80 .LP
81 .nf
82 \fB/usr/sbin/metaset\fR \fB-s\fR \fIsetname\fR \fB-o\fR [\fB-h\fR \fIhostname\fR]
83 .fi
85 .LP
86 .nf
87 \fB/usr/sbin/metaset\fR [\fB-s\fR \fIsetname\fR]
88 .fi
90 .LP
91 .nf
92 \fB/usr/sbin/metaset\fR [\fB-s\fR \fIsetname\fR] \fB-a\fR | \fB-d\fR
93      [ [m] \fImediator_host_list\fR]
94 .fi
96 .SH DESCRIPTION
97 .LP
98 The \fBmetaset\fR command administers sets of disks in named disk sets. Named
99 disk sets include any disk set that is not in the local set. While disk sets
100 enable a high-availability configuration, Solaris Volume Manager itself does
101 not actually provide a high-availability environment.
104 A single-owner disk set configuration manages storage on a SAN or
105 fabric-attached storage, or provides namespace control and state database
106 replica management for a specified set of disks.
109 In a shared disk set configuration, multiple hosts are physically connected to
110 the same set of disks. When one host fails, another host has exclusive access
111 to the disks. Each host can control a shared disk set, but only one host can
112 control it at a time.
115 When you add a new disk to any disk set, Solaris Volume Manager checks the disk
116 format. If necessary, it repartitions the disk to ensure that the disk has an
117 appropriately configured reserved slice 7 (or slice 6 on an EFI labelled
118 device) with adequate space for a state database replica. The precise size of
119 slice 7 (or slice 6 on an EFI labelled device) depends on the disk geometry.
120 For tradtional disk sets, the slice is no less than 4 Mbytes, and probably
121 closer to 6 Mbytes, depending on where the cylinder boundaries lie. For
122 multi-owner disk sets, the slice is a minimum of 256 Mbytes. The minimal size
123 for slice 7 might change in the future. This change is based on a variety of
124 factors, including the size of the state database replica and information to be
125 stored in the state database replica.
128 For use in disk sets, disks must have a dedicated slice (six or seven) that
129 meets specific criteria:
130 .RS +4
132 .ie t \(bu
133 .el o
134 The slice must start at sector 0
136 .RS +4
138 .ie t \(bu
139 .el o
140 The slice must include enough space for disk label
142 .RS +4
144 .ie t \(bu
145 .el o
146 The state database replicas cannot be mounted
148 .RS +4
150 .ie t \(bu
151 .el o
152 The slice does not overlap with any other slices, including slice 2
156 If the existing partition table does not meet these criteria, or if the -L flag
157 is specified, Solaris Volume Manager repartitions the disk. A small portion of
158 each drive is reserved in slice 7 (or slice 6 on an EFI labelled device) for
159 use by Solaris Volume Manager. The remainder of the space on each drive is
160 placed into slice 0. Any existing data on the disks is lost by repartitioning.
163 After you add a drive to a disk set, it can be repartitioned as necessary, with
164 the exception that slice 7 (or slice 6 on an EFI labelled device) is not
165 altered in any way.
168 After a disk set is created and metadevices are set up within the set, the
169 metadevice name is in the following form:
172 \fB/dev/md/\fR\fIsetname\fR/{\fBdsk\fR,\fBrdsk\fR}/\fBd\fR\fInumber\fR
175 where \fIsetname\fR is the name of the disk set, and \fInumber\fR is the number
176 of the metadevice (\fB0\fR-\fB127\fR).
179 If you have disk sets that you upgraded from Solstice DiskSuite software, the
180 default state database replica size on those sets is 1034 blocks, not the 8192
181 block size from Solaris Volume Manager. Also, slice 7 on the disks that were
182 added under Solstice DiskSuite are correspondingly smaller than slice 7 on
183 disks that were added under Solaris Volume Manager.
186 If disks you add to a disk set have acceptable slice 7s (that start at cylinder
187 0 and that have sufficient space for the state database replica), they are not
188 reformatted.
191 Hot spare pools within local disk sets use standard Solaris Volume Manager
192 naming conventions. Hot spare pools with shared disk sets use the following
193 convention:
196 \fIsetname\fR/\fIhot_spare_pool\fR
199 where \fIsetname\fR is the name of the disk set, and \fIhot_spare_pool\fR is
200 the name of the hot spare pool associated with the disk set.
201 .SS "Multi-node Environment"
203 To create and work with a disk set in a multi\(emnode environment, \fBroot\fR
204 must be a member of Group 14 on all hosts, or the \fB/.rhosts\fR file must
205 contain an entry for all other host names. This is not required in a SunCluster
206 3.x environment.
207 .SS "Tagged data"
209 Tagged data occurs when there are different versions of a disk set's replicas.
210 This tagged data consists of the set owner's nodename, the hardware serial
211 number of the owner and the time it was written out to the available replicas.
212 The system administer can use this information to determine which replica
213 contains the correct data.
216 When a disk set is configured with an even number of storage enclosures and has
217 replicas balanced across them evenly, it is possible that up to half of the
218 replicas can be lost (for example, through a power failure of half of the
219 storage enclosures). After the enclosure that went down is rebooted, half of
220 the replicas are not recognized by SVM. When the set is retaken, the
221 \fBmetaset\fR command returns an error of "stale databases", and all of the
222 metadevices are in a read-only state.
225 Some of the replicas that are not recognized need to be deleted. The action of
226 deleting the replicas also causes updates to the replicas that are not being
227 deleted. In a dual hosted disk set environment, the second node can access the
228 deleted replicas instead of the existing replicas when it takes the set. This
229 leads to the possibility of getting the wrong replica record on a disk set
230 take. An error message is displayed, and user intervention is required.
233 Use the \fB-q\fR to query the disk set and the \fB-t\fR, \fB-u\fR, and
234 \fB-y\fR, options to select the tag and take the disk set. See \fBOPTIONS\fR.
235 .SS "Mediator Configuration"
237 SVM provides support for a low-end HA solution consisting of two hosts that
238 share only two strings of drives. The hosts in this type of configuration,
239 referred to as \fBmediators\fR or mediator hosts, run a special daemon,
240 \fBrpc.metamedd\fR(1M). The mediator hosts take on additional responsibilities
241 to ensure that data is available in the case of host or drive failures.
244 A mediator configuration can survive the failure of a single host or a single
245 string of drives, without administrative intervention. If both a host and a
246 string of drives fail (multiple failures), the integrity of the data cannot be
247 guaranteed. At this point, administrative intervention is required to make the
248 data accessible. See \fBmediator\fR(7D) for further details.
251 Use the \fB-m\fR option to add or delete a mediator host. See \fBOPTIONS\fR.
252 .SH OPTIONS
254 The following options are supported:
256 .ne 2
258 \fB\fB-a\fR \fIdrivename\fR\fR
260 .sp .6
261 .RS 4n
262 Add drives or hosts to the named set. For a drive to be accepted into a set,
263 the drive must not be in use within another metadevice or disk set, mounted on,
264 or swapped on. When the drive is accepted into the set, it is repartitioned and
265 the metadevice state database replica (for the set) can be placed on it.
266 However, if a slice 7 (or slice 6 on an EFI labelled device), starts at
267 cylinder 0, and is large enough to hold a state database replica, then the disk
268 is not repartitioned. Also, a drive is not accepted if it cannot be found on
269 all hosts specified as part of the set. This means that if a host within the
270 specified set is unreachable due to network problems, or is administratively
271 down, the add fails.
273 Specify a drive name in the form
274 \fBc\fR\fInum\fR\fBt\fR\fInum\fR\fBd\fR\fInum\fR. Do not specify a slice number
275 (\fBs\fR\fInum\fR). For drives in a Sun Cluster, you must specify a complete
276 pathname for each drive. Such a name has the form:
278 .in +2
280 /dev/did/[r]dsk/d\fInum\fR
282 .in -2
288 .ne 2
290 \fB\fB-a\fR | \fB-d\fR | \fB-m\fR \fImediator_host_list\fR\fR
292 .sp .6
293 .RS 4n
294 Add (\fB-a\fR) or delete (\fB-d\fR) mediator hosts to the specified disk set. A
295 \fImediator_host_list\fR is the \fBnodename\fR(4) of the mediator host to be
296 added and (for adding) up to two other aliases for the mediator host. The
297 nodename and aliases for each mediator host are separated only by commas. Up to
298 three mediator hosts can be specified for the named disk set. Specify only the
299 nodename of that host as the argument to \fB-m\fR to delete a mediator host.
301 In a single \fBmetaset\fR command you can add or delete up to three mediator
302 hosts. See \fBEXAMPLES\fR.
306 .ne 2
308 \fB\fB-A\fR \fB{enable | disable}\fR\fR
310 .sp .6
311 .RS 4n
312 Specify auto-take status for a disk set. If auto-take is enabled for a set, the
313 disk set is automatically taken at boot, and file systems on volumes within the
314 disk set can be mounted through \fB/etc/vfstab\fR entries. Only a single host
315 can be associated with an auto-take set, so attempts to add a second host to an
316 auto-take set or attempts to configure a disk set with multiple hosts as
317 auto-take fails with an error message. Disabling auto-take status for a
318 specific disk set causes the disk set to revert to normal behavior. That is,
319 the disk set is potentially shared (non-concurrently) among hosts, and
320 unavailable for mounting through \fB/etc/vfstab\fR.
324 .ne 2
326 \fB\fB-b\fR\fR
328 .sp .6
329 .RS 4n
330 Insure that the replicas are distributed according to the replica layout
331 algorithm. This can be invoked at any time, and does nothing if the replicas
332 are correctly distributed. In cases where the user has used the \fBmetadb\fR
333 command to manually remove or add replicas, this command can be used to insure
334 that the distribution of replicas matches the replica layout algorithm.
338 .ne 2
340 \fB\fB-C\fR \fB{take | release | purge}\fR\fR
342 .sp .6
343 .RS 4n
344 Do not interact with the Cluster Framework when used in a Sun Cluster 3
345 environment. In effect, this means do not modify the Cluster Configuration
346 Repository. These options should only be used to fix a broken disk set
347 configuration.
349 .ne 2
351 \fBtake\fR
353 .sp .6
354 .RS 4n
355 Take ownership of the disk set but do not inform the Cluster Framework that the
356 disk set is available. This option is not for use with a multi-owner disk set.
360 .ne 2
362 \fBrelease\fR
364 .sp .6
365 .RS 4n
366 Release ownership of the disk set without informing the Cluster Framework. This
367 option should only be used if the disk set ownership was taken with the
368 corresponding \fB-C\fR \fBtake\fR option. This option is not for use with a
369 multi-owner disk set.
373 .ne 2
375 \fBpurge\fR
377 .sp .6
378 .RS 4n
379 Remove the disk set without informing the Cluster Framework that the disk set
380 has been purged. This option should only be used when the disk set is not
381 accessible and requires rebuilding.
387 .ne 2
389 \fB\fB-d\fR \fIdrivename\fR\fR
391 .sp .6
392 .RS 4n
393 Delete drives or hosts from the named disk set. For a drive to be deleted, it
394 must not be in use within the set. The last host cannot be deleted unless all
395 of the drives within the set are deleted. Deleting the last host in a disk set
396 destroys the disk set.
398 Specify a drive name in the form
399 \fBc\fR\fInum\fR\fBt\fR\fInum\fR\fBd\fR\fInum\fR. Do not specify a slice number
400 (\fBs\fR\fInum\fR). For drives in a Sun Cluster, you must specify a complete
401 pathname for each drive. Such a name has the form:
403 .in +2
405 /dev/did/[r]dsk/d\fInum\fR
407 .in -2
410 This option fails on a multi-owner disk set if attempting to withdraw the
411 master node while other nodes are in the set.
415 .ne 2
417 \fB\fB-f\fR\fR
419 .sp .6
420 .RS 4n
421 Force one of three actions to occur: takes ownership of a disk set when used
422 with \fB-t\fR; deletes the last disk drive from the disk set; or deletes the
423 last host from the disk set. Deleting the last drive or host from a disk set
424 requires the \fB-d\fR option.
426 When used to forcibly take ownership of the disk set, this causes the disk set
427 to be grabbed whether or not another host owns the set. All of the disks within
428 the set are taken over (reserved) and fail fast is enabled, causing the other
429 host to panic if it had disk set ownership. The metadevice state database is
430 read in by the host performing the take, and the shared metadevices contained
431 in the set are accessible.
433 You can use this option to delete the last drive in the disk set, because this
434 drive would implicitly contain the last state database replica.
436 You can use \fB-f\fR option to delete hosts from a set. When specified with a
437 partial list of hosts, it can be used for one-host administration. One-host
438 administration could be useful when a host is known to be non-functional, thus
439 avoiding timeouts and failed commands. When specified with a complete list of
440 hosts, the set is completely deleted. It is generally specified with a complete
441 list of hosts to clean up after one-host administration has been performed.
445 .ne 2
447 \fB\fB-h\fR \fB\fIhostname...\fR\fR\fR
449 .sp .6
450 .RS 4n
451 Specify one or more host names to be added to or deleted from a disk set.
452 Adding the first host creates the set. The last host cannot be deleted unless
453 all of the drives within the set have been deleted. The host name is not
454 accepted if all of the drives within the set cannot be found on the specified
455 host. The host name is the same name found in \fB/etc/nodename\fR.
459 .ne 2
461 \fB\fB-j\fR\fR
463 .sp .6
464 .RS 4n
465 Join a host to the owner list for a multi-owner disk set. The concepts of take
466 and release, used with traditional disk sets, do not apply to multi-owner sets,
467 because multiple owners are allowed.
469 As a host boots and is brought online, it must go through three configuration
470 levels to be able to use a multi-owner disk set:
471 .RS +4
474 It must be included in the cluster nodelist, which happens automatically in
475 a cluster or single-node sitatuion.
477 .RS +4
480 It must be added to the multi-owner disk set with the \fB-a\fR \fB-h\fR
481 options documented elsewhere in this man page
483 .RS +4
486 It must join the set. When the host is first added to the set, it is
487 automatically joined.
489 On manual restarts, the administrator must manually issue
491 .in +2
493 metaset \fB-s\fR \fImultinodesetname\fR \fB-j\fR
495 .in -2
498 to join the host to the owner list. After the cluster reconfiguration, when the
499 host reenters the cluster, the node is automatically joined to the set. The
500 \fBmetaset\fR \fB-j\fR command joins the host to all multi-owner sets that the
501 host has been added to. In a single node situation, joining the node to the
502 disk set starts any necessary resynchronizations.
506 .ne 2
508 \fB\fB-L\fR\fR
510 .sp .6
511 .RS 4n
512 When adding a disk to a disk set, force the disk to be repartitioned using the
513 standard Solaris Volume Manager algorithm. See \fBDESCRIPTION\fR.
517 .ne 2
519 \fB\fB-l\fR \fIlength\fR\fR
521 .sp .6
522 .RS 4n
523 Set the size (in blocks) for the metadevice state database replica. The length
524 can only be set when adding a new drive; it cannot be changed on an existing
525 drive. The default (and maximum) size is 8192 blocks, which should be
526 appropriate for most configurations. Replica sizes of less than 128 blocks are
527 not recommended.
531 .ne 2
533 \fB\fB-M\fR\fR
535 .sp .6
536 .RS 4n
537 Specify that the disk set to be created or modified is a multi-owner disk set
538 that supports multiple concurrent owners.
540 This option is required when creating a multi-owner disk set. Its use is
541 optional on all other operations on a multi-owner disk set and has no effect.
542 Existing disk sets cannot be converted to multi-owner sets.
546 .ne 2
548 \fB\fB-o\fR\fR
550 .sp .6
551 .RS 4n
552 Return an exit status of \fB0\fR if the local host or the host specified with
553 the \fB-h\fR option is the owner of the disk set.
557 .ne 2
559 \fB\fB-P\fR\fR
561 .sp .6
562 .RS 4n
563 Purge the named disk set from the node on which the \fBmetaset\fR command is
564 run. The disk set must not be owned by the node that runs this command. If the
565 node does own the disk set, the command fails.
567 If you need to delete a disk set but cannot take ownership of the set, use the
568 \fB-P\fR option.
572 .ne 2
574 \fB\fB-q\fR\fR
576 .sp .6
577 .RS 4n
578 Displays an enumerated list of tags pertaining to ``tagged data'' that can be
579 encountered during a take of the ownership of a disk set.
581 This option is not for use with a multi-owner disk set.
585 .ne 2
587 \fB\fB-r\fR\fR
589 .sp .6
590 .RS 4n
591 Release ownership of a disk set. All of the disks within the set are released.
592 The metadevices set up within the set are no longer accessible.
594 This option is not for use with a multi-owner disk set.
598 .ne 2
600 \fB\fB-s\fR \fB\fIsetname\fR\fR\fR
602 .sp .6
603 .RS 4n
604 Specify the name of a disk set on which \fBmetaset\fR works. If no
605 \fIsetname\fR is specified, all disk sets are returned.
609 .ne 2
611 \fB\fB-t\fR\fR
613 .sp .6
614 .RS 4n
615 Take ownership of a disk set safely. If \fBmetaset\fR finds that another host
616 owns the set, this host is not be allowed to take ownership of the set. If the
617 set is not owned by any other host, all the disks within the set are owned by
618 the host on which \fBmetaset\fR was executed. The metadevice state database is
619 read in, and the shared metadevices contained in the set become accessible. The
620 \fB-t\fR option takes a disk set that has stale databases. When the databases
621 are stale, \fBmetaset\fR exits with code 66, and prints a message. At that
622 point, the only operations permitted are the addition and deletion of replicas.
623 Once the addition or deletion of the replicas has been completed, the disk set
624 should be released and retaken to gain full access to the data.
626 This option is not for use with a multi-owner disk set.
630 .ne 2
632 \fB\fB-u\fR \fItagnumber\fR\fR
634 .sp .6
635 .RS 4n
636 Once a tag has been selected, a subsequent take with \fB-u\fR \fItagnumber\fR
637 can be executed to select the data associated with the given \fItagnumber\fR.
641 .ne 2
643 \fBw\fR
645 .sp .6
646 .RS 4n
647 Withdraws a host from the owner list for a multi-owner disk set. The concepts
648 of take and release, used with traditional disk sets, do not apply to
649 multi-owner sets, because multiple owners are allowed.
651 Instead of releasing a set, a host can issue
653 .in +2
655 metaset -s \fImultinodesetname\fR -w
657 .in -2
660 to withdraw from the owner list. A host automatically withdraws on a reboot,
661 but can be manually withdrawn if it should not be able to use the set, but
662 should be able to rejoin at a later time. A host that withdrew due to a reboot
663 can still appear joined from other hosts in the set until a reconfiguration
664 cycle occurs.
666 \fBmetaset\fR \fB-w\fR withdraws from ownership of all multi-owner sets of
667 which the host is a member. This option fails if you attempt to withdraw the
668 master node while other nodes are in the disk set owner list. This option
669 cancels all resyncs running on the node. A cluster reconfiguration process that
670 is removing a node from the cluster membership list effectively withdraws the
671 host from the ownership list.
675 .ne 2
677 \fB\fB-y\fR\fR
679 .sp .6
680 .RS 4n
681 Execute a subsequent take. If the take operation encounters ``tagged data,''
682 the take operation exits with code 2. You can then run the \fBmetaset\fR
683 command with the \fB-q\fR option to see an enumerated list of tags.
686 .SH EXAMPLES
688 \fBExample 1 \fRDefining a Disk Set
691 This example defines a disk set.
694 .in +2
696 # metaset -s relo-red -a -h red blue
698 .in -2
703 The name of the disk set is \fBrelo-red\fR. The names of the first and second
704 hosts added to the set are \fBred\fR and \fBblue\fR, respectively. (The
705 hostname is found in \fB/etc/nodename\fR.) Adding the first host creates the
706 disk set. A disk set can be created with just one host, with the second added
707 later. The last host cannot be deleted until all of the drives within the set
708 have been deleted.
711 \fBExample 2 \fRAdding Drives to a Disk Set
714 This example adds drives to a disk set.
717 .in +2
719 # metaset -s relo-red -a c2t0d0 c2t1d0 c2t2d0 c2t3d0 c2t4d0 c2t5d0
721 .in -2
726 The name of the previously created disk set is \fBrelo-red\fR. The names of the
727 drives are \fBc2t0d0\fR, \fBc2t1d0\fR, \fBc2t2d0\fR, \fBc2t3d0\fR,
728 \fBc2t4d0\fR, and \fBc2t5d0\fR. There is no slice identifier ("s\fIx\fR") at
729 the end of the drive names.
732 \fBExample 3 \fRAdding Multiple Mediator Hosts
735 The following command adds three mediator hosts to the specified disk set.
738 .in +2
740 # metaset -s mydiskset -a -m myhost1,alias1 myhost2,alias2 myhost3,alias3
742 .in -2
746 \fBExample 4 \fRPurging a Disk Set from the Node
749 The following command purges the disk set \fBrelo-red\fR from the node:
752 .in +2
754 # metaset -s relo-red -P
756 .in -2
760 \fBExample 5 \fRQuerying a Disk Set for Tagged Data
763 The following command queries the disk set \fBrelo-red\fR for a list of the
764 tagged data:
767 .in +2
769 # metaset -s relo-red -q
771 .in -2
776 This command produces the following results:
778 .in +2
780 The following tag(s) were found:
781  1 - vha-1000c - Fri Sep 20 17:20:08 2002
782  2 - vha-1000c - Mon Sep 23 11:01:27 2002
784 .in -2
788 \fBExample 6 \fRSelecting a tag and taking a Disk set
791 The following command selects a tag and takes the disk set \fBrelo-red\fR:
794 .in +2
796 # metaset -s relo-red -t -u 2
798 .in -2
802 \fBExample 7 \fRDefining a Multi-Owner Disk Set
805 The following command defines a multi-owner disk set:
808 .in +2
810 # metaset -s blue -M -a -h hahost1 hahost2
812 .in -2
817 The name of the disk set is \fBblue\fR. The names of the first and second hosts
818 added to the set are \fBhahost1\fR and \fBhahost2\fR, respectively. The
819 hostname is found in \fB/etc/nodename\fR. Adding the first host creates the
820 multi-owner disk set. A disk set can be created with just one host, with
821 additional hosts added later. The last host cannot be deleted until all of the
822 drives within the set have been deleted.
824 .SH FILES
825 .ne 2
827 \fB\fB/etc/lvm/md.tab\fR\fR
829 .sp .6
830 .RS 4n
831 Contains list of metadevice configurations.
834 .SH EXIT STATUS
836 The following exit values are returned:
838 .ne 2
840 \fB\fB0\fR\fR
842 .sp .6
843 .RS 4n
844 Successful completion.
848 .ne 2
850 \fB\fB>0\fR\fR
852 .sp .6
853 .RS 4n
854 An error occurred.
857 .SH ATTRIBUTES
859 See \fBattributes\fR(5) for descriptions of the following attributes:
864 box;
865 c | c
866 l | l .
867 ATTRIBUTE TYPE  ATTRIBUTE VALUE
869 Interface Stability     Stable
872 .SH SEE ALSO
874 \fBmdmonitord\fR(1M), \fBmetaclear\fR(1M), \fBmetadb\fR(1M),
875 \fBmetadetach\fR(1M), \fBmetahs\fR(1M), \fBmetainit\fR(1M),
876 \fBmetaoffline\fR(1M), \fBmetaonline\fR(1M), \fBmetaparam\fR(1M),
877 \fBmetarecover\fR(1M), \fBmetarename\fR(1M), \fBmetareplace\fR(1M),
878 \fBmetaroot\fR(1M), \fBmetassist\fR(1M), \fBmetastat\fR(1M),
879 \fBmetasync\fR(1M), \fBmetattach\fR(1M), \fBmd.tab\fR(4), \fBmd.cf\fR(4),
880 \fBmddb.cf\fR(4), \fBmd.tab\fR(4), \fBattributes\fR(5), \fBmd\fR(7D)
883 \fI\fR
884 .SH NOTES
886 Disk set administration, including the addition and deletion of hosts and
887 drives, requires all hosts in the set to be accessible from the network.