The following conditions must be satisfied for a drive to be accepted into a diskset:
It must not be in use within a metadevice, or contain a state database replica.
It must not be currently mounted, swapped on, or otherwise opened for use by an application.
Make sure you have met the prerequisites ("Prerequisites for Creating DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Creating Disksets").
Add drives to the diskset.
# metaset -s setname -a drivename... |
In this command,
-s setname |
Specifies the name of a diskset on which metaset(1M) will work. |
-a |
Adds drives to the named diskset. |
drivename... |
Specifies the drives to add to the diskset. Drive names are in the form cxtxdx; no "sx" slice identifiers are at the end of the name. They need to be the same on all hosts in the diskset. |
The first host to add a drive to a diskset becomes the implicit owner of the diskset.
Do not add a disk with data; the process of adding it to the diskset repartitions the disk, destroying any data.
Use the metaset(1M) command to verify the status of the diskset and drives.
# metaset |
red# metaset -s relo-red -a c1t2d0 c1t3d0 c2t2d0 c2t3d0 c2t4d0 c2t5d0 red# metaset Set name = relo-red, Set number = 1 Host Owner red Yes blue Drive Dbase c1t2d0 Yes c1t3d0 Yes c2t2d0 Yes c2t3d0 Yes c2t4d0 Yes c2t5d0 Yes Set name = relo-blue, Set number = 2 Host Owner red blue |
In this example, the host names are red and blue, each with their own local disksets. The two shared disksets are relo-red and relo-blue. The disks in the set relo-red are normally accessed by host red, but may be accessed by host blue if red fails. At this point, no disks have been added to the diskset relo-blue.