6253 F_GETLK doesn't always return lock owner
[illumos-gate.git] / usr / src / man / man1m / metaset.1m
blobc9d1b81d16a1d8b6a2fe28205bc0c52219e4dd56
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 "Mar 4, 2009"
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 .sp
98 .LP
99 The \fBmetaset\fR command administers sets of disks in named disk sets. Named
100 disk sets include any disk set that is not in the local set. While disk sets
101 enable a high-availability configuration, Solaris Volume Manager itself does
102 not actually provide a high-availability environment.
105 A single-owner disk set configuration manages storage on a SAN or
106 fabric-attached storage, or provides namespace control and state database
107 replica management for a specified set of disks.
110 In a shared disk set configuration, multiple hosts are physically connected to
111 the same set of disks. When one host fails, another host has exclusive access
112 to the disks. Each host can control a shared disk set, but only one host can
113 control it at a time.
116 When you add a new disk to any disk set, Solaris Volume Manager checks the disk
117 format. If necessary, it repartitions the disk to ensure that the disk has an
118 appropriately configured reserved slice 7 (or slice 6 on an EFI labelled
119 device) with adequate space for a state database replica. The precise size of
120 slice 7 (or slice 6 on an EFI labelled device) depends on the disk geometry.
121 For tradtional disk sets, the slice is no less than 4 Mbytes, and probably
122 closer to 6 Mbytes, depending on where the cylinder boundaries lie. For
123 multi-owner disk sets, the slice is a minimum of 256 Mbytes. The minimal size
124 for slice 7 might change in the future. This change is based on a variety of
125 factors, including the size of the state database replica and information to be
126 stored in the state database replica.
129 For use in disk sets, disks must have a dedicated slice (six or seven) that
130 meets specific criteria:
131 .RS +4
133 .ie t \(bu
134 .el o
135 The slice must start at sector 0
137 .RS +4
139 .ie t \(bu
140 .el o
141 The slice must include enough space for disk label
143 .RS +4
145 .ie t \(bu
146 .el o
147 The state database replicas cannot be mounted
149 .RS +4
151 .ie t \(bu
152 .el o
153 The slice does not overlap with any other slices, including slice 2
157 If the existing partition table does not meet these criteria, or if the -L flag
158 is specified, Solaris Volume Manager repartitions the disk. A small portion of
159 each drive is reserved in slice 7 (or slice 6 on an EFI labelled device) for
160 use by Solaris Volume Manager. The remainder of the space on each drive is
161 placed into slice 0. Any existing data on the disks is lost by repartitioning.
164 After you add a drive to a disk set, it can be repartitioned as necessary, with
165 the exception that slice 7 (or slice 6 on an EFI labelled device) is not
166 altered in any way.
169 After a disk set is created and metadevices are set up within the set, the
170 metadevice name is in the following form:
173 \fB/dev/md/\fR\fIsetname\fR/{\fBdsk\fR,\fBrdsk\fR}/\fBd\fR\fInumber\fR
176 where \fIsetname\fR is the name of the disk set, and \fInumber\fR is the number
177 of the metadevice (\fB0\fR-\fB127\fR).
180 If you have disk sets that you upgraded from Solstice DiskSuite software, the
181 default state database replica size on those sets is 1034 blocks, not the 8192
182 block size from Solaris Volume Manager. Also, slice 7 on the disks that were
183 added under Solstice DiskSuite are correspondingly smaller than slice 7 on
184 disks that were added under Solaris Volume Manager.
187 If disks you add to a disk set have acceptable slice 7s (that start at cylinder
188 0 and that have sufficient space for the state database replica), they are not
189 reformatted.
192 Hot spare pools within local disk sets use standard Solaris Volume Manager
193 naming conventions. Hot spare pools with shared disk sets use the following
194 convention:
197 \fIsetname\fR/\fIhot_spare_pool\fR
200 where \fIsetname\fR is the name of the disk set, and \fIhot_spare_pool\fR is
201 the name of the hot spare pool associated with the disk set.
202 .SS "Multi-node Environment"
205 To create and work with a disk set in a multi\(emnode environment, \fBroot\fR
206 must be a member of Group 14 on all hosts, or the \fB/.rhosts\fR file must
207 contain an entry for all other host names. This is not required in a SunCluster
208 3.x enviroment.
209 .SS "Tagged data"
212 Tagged data occurs when there are different versions of a disk set's replicas.
213 This tagged data consists of the set owner's nodename, the hardware serial
214 number of the owner and the time it was written out to the available replicas.
215 The system administer can use this information to determine which replica
216 contains the correct data.
219 When a disk set is configured with an even number of storage enclosures and has
220 replicas balanced across them evenly, it is possible that up to half of the
221 replicas can be lost (for example, through a power failure of half of the
222 storage enclosures). After the enclosure that went down is rebooted, half of
223 the replicas are not recognized by SVM. When the set is retaken, the
224 \fBmetaset\fR command returns an error of "stale databases", and all of the
225 metadevices are in a read-only state.
228 Some of the replicas that are not recognized need to be deleted. The action of
229 deleting the replicas also causes updates to the replicas that are not being
230 deleted. In a dual hosted disk set environment, the second node can access the
231 deleted replicas instead of the existing replicas when it takes the set. This
232 leads to the possibility of getting the wrong replica record on a disk set
233 take. An error message is displayed, and user intervention is required.
236 Use the \fB-q\fR to query the disk set and the \fB-t\fR, \fB-u\fR, and
237 \fB-y\fR, options to select the tag and take the disk set. See \fBOPTIONS\fR.
238 .SS "Mediator Configuration"
241 SVM provides support for a low-end HA solution consisting of two hosts that
242 share only two strings of drives. The hosts in this type of configuration,
243 referred to as \fBmediators\fR or mediator hosts, run a special daemon,
244 \fBrpc.metamedd\fR(1M). The mediator hosts take on additional responsibilities
245 to ensure that data is available in the case of host or drive failures.
248 A mediator configuration can survive the failure of a single host or a single
249 string of drives, without administrative intervention. If both a host and a
250 string of drives fail (multiple failures), the integrity of the data cannot be
251 guaranteed. At this point, administrative intervention is required to make the
252 data accessible. See \fBmediator\fR(7D) for further details.
255 Use the \fB-m\fR option to add or delete a mediator host. See \fBOPTIONS\fR.
256 .SH OPTIONS
259 The following options are supported:
261 .ne 2
263 \fB\fB-a\fR \fIdrivename\fR\fR
265 .sp .6
266 .RS 4n
267 Add drives or hosts to the named set. For a drive to be accepted into a set,
268 the drive must not be in use within another metadevice or disk set, mounted on,
269 or swapped on. When the drive is accepted into the set, it is repartitioned and
270 the metadevice state database replica (for the set) can be placed on it.
271 However, if a slice 7 (or slice 6 on an EFI labelled device), starts at
272 cylinder 0, and is large enough to hold a state database replica, then the disk
273 is not repartitioned. Also, a drive is not accepted if it cannot be found on
274 all hosts specified as part of the set. This means that if a host within the
275 specified set is unreachable due to network problems, or is administratively
276 down, the add fails.
278 Specify a drive name in the form
279 \fBc\fR\fInum\fR\fBt\fR\fInum\fR\fBd\fR\fInum\fR. Do not specify a slice number
280 (\fBs\fR\fInum\fR). For drives in a Sun Cluster, you must specify a complete
281 pathname for each drive. Such a name has the form:
283 .in +2
285 /dev/did/[r]dsk/d\fInum\fR
287 .in -2
293 .ne 2
295 \fB\fB-a\fR | \fB-d\fR | \fB-m\fR \fImediator_host_list\fR\fR
297 .sp .6
298 .RS 4n
299 Add (\fB-a\fR) or delete (\fB-d\fR) mediator hosts to the specified disk set. A
300 \fImediator_host_list\fR is the \fBnodename\fR(4) of the mediator host to be
301 added and (for adding) up to two other aliases for the mediator host. The
302 nodename and aliases for each mediator host are separated only by commas. Up to
303 three mediator hosts can be specified for the named disk set. Specify only the
304 nodename of that host as the argument to \fB-m\fR to delete a mediator host.
306 In a single \fBmetaset\fR command you can add or delete up to three mediator
307 hosts. See \fBEXAMPLES\fR.
311 .ne 2
313 \fB\fB-A\fR \fB{enable | disable}\fR\fR
315 .sp .6
316 .RS 4n
317 Specify auto-take status for a disk set. If auto-take is enabled for a set, the
318 disk set is automatically taken at boot, and file systems on volumes within the
319 disk set can be mounted through \fB/etc/vfstab\fR entries. Only a single host
320 can be associated with an auto-take set, so attempts to add a second host to an
321 auto-take set or attempts to configure a disk set with multiple hosts as
322 auto-take fails with an error message. Disabling auto-take status for a
323 specific disk set causes the disk set to revert to normal behavior. That is,
324 the disk set is potentially shared (non-concurrently) among hosts, and
325 unavailable for mounting through \fB/etc/vfstab\fR.
329 .ne 2
331 \fB\fB-b\fR\fR
333 .sp .6
334 .RS 4n
335 Insure that the replicas are distributed according to the replica layout
336 algorithm. This can be invoked at any time, and does nothing if the replicas
337 are correctly distributed. In cases where the user has used the \fBmetadb\fR
338 command to manually remove or add replicas, this command can be used to insure
339 that the distribution of replicas matches the replica layout algorithm.
343 .ne 2
345 \fB\fB-C\fR \fB{take | release | purge}\fR\fR
347 .sp .6
348 .RS 4n
349 Do not interact with the Cluster Framework when used in a Sun Cluster 3
350 environment. In effect, this means do not modify the Cluster Configuration
351 Repository. These options should only be used to fix a broken disk set
352 configuration.
354 .ne 2
356 \fBtake\fR
358 .sp .6
359 .RS 4n
360 Take ownership of the disk set but do not inform the Cluster Framework that the
361 disk set is available. This option is not for use with a multi-owner disk set.
365 .ne 2
367 \fBrelease\fR
369 .sp .6
370 .RS 4n
371 Release ownership of the disk set without informing the Cluster Framework. This
372 option should only be used if the disk set ownership was taken with the
373 corresponding \fB-C\fR \fBtake\fR option. This option is not for use with a
374 multi-owner disk set.
378 .ne 2
380 \fBpurge\fR
382 .sp .6
383 .RS 4n
384 Remove the disk set without informing the Cluster Framework that the disk set
385 has been purged. This option should only be used when the disk set is not
386 accessible and requires rebuilding.
392 .ne 2
394 \fB\fB-d\fR \fIdrivename\fR\fR
396 .sp .6
397 .RS 4n
398 Delete drives or hosts from the named disk set. For a drive to be deleted, it
399 must not be in use within the set. The last host cannot be deleted unless all
400 of the drives within the set are deleted. Deleting the last host in a disk set
401 destroys the disk set.
403 Specify a drive name in the form
404 \fBc\fR\fInum\fR\fBt\fR\fInum\fR\fBd\fR\fInum\fR. Do not specify a slice number
405 (\fBs\fR\fInum\fR). For drives in a Sun Cluster, you must specify a complete
406 pathname for each drive. Such a name has the form:
408 .in +2
410 /dev/did/[r]dsk/d\fInum\fR
412 .in -2
415 This option fails on a multi-owner disk set if attempting to withdraw the
416 master node while other nodes are in the set.
420 .ne 2
422 \fB\fB-f\fR\fR
424 .sp .6
425 .RS 4n
426 Force one of three actions to occur: takes ownership of a disk set when used
427 with \fB-t\fR; deletes the last disk drive from the disk set; or deletes the
428 last host from the disk set. Deleting the last drive or host from a disk set
429 requires the \fB-d\fR option.
431 When used to forcibly take ownership of the disk set, this causes the disk set
432 to be grabbed whether or not another host owns the set. All of the disks within
433 the set are taken over (reserved) and fail fast is enabled, causing the other
434 host to panic if it had disk set ownership. The metadevice state database is
435 read in by the host performing the take, and the shared metadevices contained
436 in the set are accessible.
438 You can use this option to delete the last drive in the disk set, because this
439 drive would implicitly contain the last state database replica.
441 You can use \fB-f\fR option to delete hosts from a set. When specified with a
442 partial list of hosts, it can be used for one-host administration. One-host
443 administration could be useful when a host is known to be non-functional, thus
444 avoiding timeouts and failed commands. When specified with a complete list of
445 hosts, the set is completely deleted. It is generally specified with a complete
446 list of hosts to clean up after one-host administration has been performed.
450 .ne 2
452 \fB\fB-h\fR \fB\fIhostname...\fR\fR\fR
454 .sp .6
455 .RS 4n
456 Specify one or more host names to be added to or deleted from a disk set.
457 Adding the first host creates the set. The last host cannot be deleted unless
458 all of the drives within the set have been deleted. The host name is not
459 accepted if all of the drives within the set cannot be found on the specified
460 host. The host name is the same name found in \fB/etc/nodename\fR.
464 .ne 2
466 \fB\fB-j\fR\fR
468 .sp .6
469 .RS 4n
470 Join a host to the owner list for a multi-owner disk set. The concepts of take
471 and release, used with traditional disk sets, do not apply to multi-owner sets,
472 because multiple owners are allowed.
474 As a host boots and is brought online, it must go through three configuration
475 levels to be able to use a multi-owner disk set:
476 .RS +4
479 It must be included in the cluster nodelist, which happens automatically in
480 a cluster or single-node sitatuion.
482 .RS +4
485 It must be added to the multi-owner disk set with the \fB-a\fR \fB-h\fR
486 options documented elsewhere in this man page
488 .RS +4
491 It must join the set. When the host is first added to the set, it is
492 automatically joined.
494 On manual restarts, the administrator must manually issue
496 .in +2
498 metaset \fB-s\fR \fImultinodesetname\fR \fB-j\fR
500 .in -2
503 to join the host to the owner list. After the cluster reconfiguration, when the
504 host reenters the cluster, the node is automatically joined to the set. The
505 \fBmetaset\fR \fB-j\fR command joins the host to all multi-owner sets that the
506 host has been added to. In a single node situation, joining the node to the
507 disk set starts any necessary resynchronizations.
511 .ne 2
513 \fB\fB-L\fR\fR
515 .sp .6
516 .RS 4n
517 When adding a disk to a disk set, force the disk to be repartitioned using the
518 standard Solaris Volume Manager algorithm. See \fBDESCRIPTION\fR.
522 .ne 2
524 \fB\fB-l\fR \fIlength\fR\fR
526 .sp .6
527 .RS 4n
528 Set the size (in blocks) for the metadevice state database replica. The length
529 can only be set when adding a new drive; it cannot be changed on an existing
530 drive. The default (and maximum) size is 8192 blocks, which should be
531 appropriate for most configurations. Replica sizes of less than 128 blocks are
532 not recommended.
536 .ne 2
538 \fB\fB-M\fR\fR
540 .sp .6
541 .RS 4n
542 Specify that the disk set to be created or modified is a multi-owner disk set
543 that supports multiple concurrent owners.
545 This option is required when creating a multi-owner disk set. Its use is
546 optional on all other operations on a multi-owner disk set and has no effect.
547 Existing disk sets cannot be converted to multi-owner sets.
551 .ne 2
553 \fB\fB-o\fR\fR
555 .sp .6
556 .RS 4n
557 Return an exit status of \fB0\fR if the local host or the host specified with
558 the \fB-h\fR option is the owner of the disk set.
562 .ne 2
564 \fB\fB-P\fR\fR
566 .sp .6
567 .RS 4n
568 Purge the named disk set from the node on which the \fBmetaset\fR command is
569 run. The disk set must not be owned by the node that runs this command. If the
570 node does own the disk set, the command fails.
572 If you need to delete a disk set but cannot take ownership of the set, use the
573 \fB-P\fR option.
577 .ne 2
579 \fB\fB-q\fR\fR
581 .sp .6
582 .RS 4n
583 Displays an enumerated list of tags pertaining to ``tagged data'' that can be
584 encountered during a take of the ownership of a disk set.
586 This option is not for use with a multi-owner disk set.
590 .ne 2
592 \fB\fB-r\fR\fR
594 .sp .6
595 .RS 4n
596 Release ownership of a disk set. All of the disks within the set are released.
597 The metadevices set up within the set are no longer accessible.
599 This option is not for use with a multi-owner disk set.
603 .ne 2
605 \fB\fB-s\fR \fB\fIsetname\fR\fR\fR
607 .sp .6
608 .RS 4n
609 Specify the name of a disk set on which \fBmetaset\fR works. If no
610 \fIsetname\fR is specified, all disk sets are returned.
614 .ne 2
616 \fB\fB-t\fR\fR
618 .sp .6
619 .RS 4n
620 Take ownership of a disk set safely. If \fBmetaset\fR finds that another host
621 owns the set, this host is not be allowed to take ownership of the set. If the
622 set is not owned by any other host, all the disks within the set are owned by
623 the host on which \fBmetaset\fR was executed. The metadevice state database is
624 read in, and the shared metadevices contained in the set become accessible. The
625 \fB-t\fR option takes a disk set that has stale databases. When the databases
626 are stale, \fBmetaset\fR exits with code 66, and prints a message. At that
627 point, the only operations permitted are the addition and deletion of replicas.
628 Once the addition or deletion of the replicas has been completed, the disk set
629 should be released and retaken to gain full access to the data.
631 This option is not for use with a multi-owner disk set.
635 .ne 2
637 \fB\fB-u\fR \fItagnumber\fR\fR
639 .sp .6
640 .RS 4n
641 Once a tag has been selected, a subsequent take with \fB-u\fR \fItagnumber\fR
642 can be executed to select the data associated with the given \fItagnumber\fR.
646 .ne 2
648 \fBw\fR
650 .sp .6
651 .RS 4n
652 Withdraws a host from the owner list for a multi-owner disk set. The concepts
653 of take and release, used with traditional disk sets, do not apply to
654 multi-owner sets, because multiple owners are allowed.
656 Instead of releasing a set, a host can issue
658 .in +2
660 metaset -s \fImultinodesetname\fR -w
662 .in -2
665 to withdraw from the owner list. A host automatically withdraws on a reboot,
666 but can be manually withdrawn if it should not be able to use the set, but
667 should be able to rejoin at a later time. A host that withdrew due to a reboot
668 can still appear joined from other hosts in the set until a reconfiguration
669 cycle occurs.
671 \fBmetaset\fR \fB-w\fR withdraws from ownership of all multi-owner sets of
672 which the host is a member. This option fails if you attempt to withdraw the
673 master node while other nodes are in the disk set owner list. This option
674 cancels all resyncs running on the node. A cluster reconfiguration process that
675 is removing a node from the cluster membership list effectively withdraws the
676 host from the ownership list.
680 .ne 2
682 \fB\fB-y\fR\fR
684 .sp .6
685 .RS 4n
686 Execute a subsequent take. If the take operation encounters ``tagged data,''
687 the take operation exits with code 2. You can then run the \fBmetaset\fR
688 command with the \fB-q\fR option to see an enumerated list of tags.
691 .SH EXAMPLES
693 \fBExample 1 \fRDefining a Disk Set
696 This example defines a disk set.
699 .in +2
701 # metaset -s relo-red -a -h red blue
703 .in -2
708 The name of the disk set is \fBrelo-red\fR. The names of the first and second
709 hosts added to the set are \fBred\fR and \fBblue\fR, respectively. (The
710 hostname is found in \fB/etc/nodename\fR.) Adding the first host creates the
711 disk set. A disk set can be created with just one host, with the second added
712 later. The last host cannot be deleted until all of the drives within the set
713 have been deleted.
716 \fBExample 2 \fRAdding Drives to a Disk Set
719 This example adds drives to a disk set.
722 .in +2
724 # metaset -s relo-red -a c2t0d0 c2t1d0 c2t2d0 c2t3d0 c2t4d0 c2t5d0
726 .in -2
731 The name of the previously created disk set is \fBrelo-red\fR. The names of the
732 drives are \fBc2t0d0\fR, \fBc2t1d0\fR, \fBc2t2d0\fR, \fBc2t3d0\fR,
733 \fBc2t4d0\fR, and \fBc2t5d0\fR. There is no slice identifier ("s\fIx\fR") at
734 the end of the drive names.
737 \fBExample 3 \fRAdding Multiple Mediator Hosts
740 The following command adds three mediator hosts to the specified disk set.
743 .in +2
745 # metaset -s mydiskset -a -m myhost1,alias1 myhost2,alias2 myhost3,alias3
747 .in -2
751 \fBExample 4 \fRPurging a Disk Set from the Node
754 The following command purges the disk set \fBrelo-red\fR from the node:
757 .in +2
759 # metaset -s relo-red -P
761 .in -2
765 \fBExample 5 \fRQuerying a Disk Set for Tagged Data
768 The following command queries the disk set \fBrelo-red\fR for a list of the
769 tagged data:
772 .in +2
774 # metaset -s relo-red -q
776 .in -2
781 This command produces the following results:
783 .in +2
785 The following tag(s) were found:
786  1 - vha-1000c - Fri Sep 20 17:20:08 2002
787  2 - vha-1000c - Mon Sep 23 11:01:27 2002
789 .in -2
793 \fBExample 6 \fRSelecting a tag and taking a Disk set
796 The following command selects a tag and takes the disk set \fBrelo-red\fR:
799 .in +2
801 # metaset -s relo-red -t -u 2
803 .in -2
807 \fBExample 7 \fRDefining a Multi-Owner Disk Set
810 The following command defines a multi-owner disk set:
813 .in +2
815 # metaset -s blue -M -a -h hahost1 hahost2
817 .in -2
822 The name of the disk set is \fBblue\fR. The names of the first and second hosts
823 added to the set are \fBhahost1\fR and \fBhahost2\fR, respectively. The
824 hostname is found in \fB/etc/nodename\fR. Adding the first host creates the
825 multi-owner disk set. A disk set can be created with just one host, with
826 additional hosts added later. The last host cannot be deleted until all of the
827 drives within the set have been deleted.
829 .SH FILES
831 .ne 2
833 \fB\fB/etc/lvm/md.tab\fR\fR
835 .sp .6
836 .RS 4n
837 Contains list of metadevice configurations.
840 .SH EXIT STATUS
843 The following exit values are returned:
845 .ne 2
847 \fB\fB0\fR\fR
849 .sp .6
850 .RS 4n
851 Successful completion.
855 .ne 2
857 \fB\fB>0\fR\fR
859 .sp .6
860 .RS 4n
861 An error occurred.
864 .SH ATTRIBUTES
867 See \fBattributes\fR(5) for descriptions of the following attributes:
872 box;
873 c | c
874 l | l .
875 ATTRIBUTE TYPE  ATTRIBUTE VALUE
877 Interface Stability     Stable
880 .SH SEE ALSO
883 \fBmdmonitord\fR(1M), \fBmetaclear\fR(1M), \fBmetadb\fR(1M),
884 \fBmetadetach\fR(1M), \fBmetahs\fR(1M), \fBmetainit\fR(1M),
885 \fBmetaoffline\fR(1M), \fBmetaonline\fR(1M), \fBmetaparam\fR(1M),
886 \fBmetarecover\fR(1M), \fBmetarename\fR(1M), \fBmetareplace\fR(1M),
887 \fBmetaroot\fR(1M), \fBmetassist\fR(1M), \fBmetastat\fR(1M),
888 \fBmetasync\fR(1M), \fBmetattach\fR(1M), \fBmd.tab\fR(4), \fBmd.cf\fR(4),
889 \fBmddb.cf\fR(4), \fBmd.tab\fR(4), \fBattributes\fR(5), \fBmd\fR(7D)
892 \fI\fR
893 .SH NOTES
896 Disk set administration, including the addition and deletion of hosts and
897 drives, requires all hosts in the set to be accessible from the network.