Perform this procedure for each diskset in the cluster.
If configured with exactly two disk strings, the diskset must connect to exactly two nodes and use exactly two mediator hosts, which must be the same two hosts used for the diskset. Refer to "Mediators Overview" for details on setting up mediators.
If configured with more than two disk strings, ensure that for any two disk strings S1 and S2, the sum of the number of disks on those strings exceeds the number of disks on the third string S3. Stated as a formula, the requirement is that count(S1) + count(S2) > count(S3).
If the /.rhosts file is not used to list the cluster node names, ensure that root is a member of group 14.
# vi /etc/group ... sysadmin::14:root ... |
Make sure the local metadevice state database replicas exist.
If necessary, refer to the procedure "How to Create Metadevice State Database Replicas".
Become superuser on the cluster node that will master the diskset.
Create the diskset.
This command also registers the diskset as a Sun Cluster disk device group.
# metaset -s setname -a -h nodename1 nodename2 |
Specifies the diskset name
Adds (creates) the diskset
Specifies the name of the primary node to master the diskset
Specifies the name of the secondary node to master the diskset
Verify the status of the new diskset.
# metaset -s setname |
The following command creates two disksets, dg-schost-1 and dg-schost-2, assigning the nodes phys-schost-1 and phys-schost-2 as the potential primaries.
# metaset -s dg-schost-1 -a -h phys-schost-1 phys-schost-2 # metaset -s dg-schost-2 -a -h phys-schost-1 phys-schost-2 |
To add drives to the diskset, go to "How to Add Drives to a Diskset".