Before You Begin
The disk set that you intend to create must meet one of the following requirements:
If the disk set is configured with exactly two disk strings, the disk set must connect to exactly two nodes and use two or three mediator hosts. These mediator hosts must include the two hosts attached to the enclosures containing the disk set. See Configuring Dual-String Mediators for details on how to configure dual-string mediators.
If the disk set is configured with more than two disk strings, ensure that for any two disk strings S1 and S2, the sum of the number of drives on those strings exceeds the number of drives on the third string S3. Stated as a formula, the requirement is that count(S1) + count(S2) > count(S3).
You can run this command on all nodes in the cluster at the same time.
phys-schost# cldevice populate
See the cldevice(8CL) man page for more information.
The command executes remotely on all nodes, even though the command is run from just one node. To determine whether the command has completed processing, run the following command on each node of the cluster:
phys-schost# ps -ef | grep scgdevs
For instructions, see How to Create State Database Replicas.
The following command creates the disk set and registers the disk set as an Oracle Solaris Cluster device group.
phys-schost# metaset -s setname -a -h node1 node2
Specifies the disk set name.
Adds (creates) the disk set.
Specifies the name of the primary node to master the disk set.
Specifies the name of the secondary node to master the disk set
phys-schost# cldevicegroup sync device-group-name
For more information about data replication, see Chapter 4, Data Replication Approaches in Administering an Oracle Solaris Cluster 4.4 Configuration.
phys-schost# metaset -s setname
phys-schost# cldevicegroup set -p name=value device-group
Specifies a device-group property.
Specifies the name of a property.
Specifies the value or setting of the property.
Specifies the name of the device group. The device-group name is the same as the disk-set name.
See the cldevicegroup(8CL) for information about device-group properties.
The following command creates two disk sets, dg-schost-1 and dg-schost-2, with the nodes phys-schost-1 and phys-schost-2 specified as the potential primaries.
phys-schost# metaset -s dg-schost-1 -a -h phys-schost-1 phys-schost-2 phys-schost# metaset -s dg-schost-2 -a -h phys-schost-1 phys-schost-2
Add drives to the disk set. Go to Adding Drives to a Disk Set.