The high-level steps in creating a diskset are:
Adding hosts to a diskset (this creates the diskset)
Adding drives to the diskset
Before creating a diskset:
Configure disk drive device names so they have the same name on each host in the diskset.
Connect drives to be shared to both hosts.
Configure local metadevice state database replicas on each host.
If you are not familiar with how to configure the same device names for the shared drives in the diskset, refer to "How to Configure Disk Drive Device Names for a Diskset (Command Line)".
Make sure you have met the prerequisites ("Prerequisites for Creating DiskSuite Objects") and have read the preliminary information ("Preliminary Information for Creating Disksets").
Create the diskset by defining the host(s) that have access to the devices.
# metaset -s setname -a -h host... |
-s setname |
Specifies the name of a diskset on which metaset(1M) will work. |
-a |
Adds hosts to the named diskset. DiskSuite supports a maximum of two hosts per diskset. |
-h host... |
Specifies one or more hosts to be added to a diskset. Adding the first host creates the set. The second host can be added later, but it is not accepted if all the drives within the set cannot be found on the specified host. host is the same name found in /etc/nodename. |
Check the status of the new diskset with the metaset(1M) command.
# metaset |
red# metaset -s relo-red -a -h red blue red# metaset -s relo-blue -a -h red blue red# metaset Set name = relo-red, Set number = 1 Host Owner red blue Set name = relo-blue, Set number = 2 Host Owner red blue |
In this example, you create two shared disksets, relo-red and relo-blue, from the host red. The host names are red and blue, each with their own local disksets. The metaset command shows the status. At this point, neither set has an owner. The host that adds disks to the set will become the owner by default.