Go to main content

Oracle® Solaris Cluster 4.3 Software Installation Guide

Exit Print View

Updated: June 2019
 
 

How to Create a Disk Set

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).

  1. On each node in the cluster, run the devfsadm command.

    You can run this command on all nodes in the cluster at the same time.

  2. From one node of the cluster, update the global-devices namespace.
    phys-schost# cldevice populate

    See the cldevice(1CL) man page for more information.

  3. On each node, verify that the command has completed processing before you attempt to create any disk sets.

    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
  4. Ensure that the local state database replicas exist.

    For instructions, see How to Create State Database Replicas.

  5. Assume the root role on the cluster node that will master the disk set.
  6. Create the disk set.

    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
    –s setname

    Specifies the disk set name.

    –a

    Adds (creates) the disk set.

    –h node1

    Specifies the name of the primary node to master the disk set.

    node2

    Specifies the name of the secondary node to master the disk set


    Note -  When you run the metaset command to configure a Solaris Volume Manager device group on a cluster, the command designates one secondary node by default. You can change the desired number of secondary nodes in the device group by using the clsetup utility after the device group is created. Refer to Administering Device Groups in Oracle Solaris Cluster 4.3 System Administration Guide for more information about how to change the numsecondaries property.
  7. If you are configuring a replicated Solaris Volume Manager device group, set the replication property for the device group.
    phys-schost# cldevicegroup sync device-group-name

    For more information about data replication, see Chapter 4, Data Replication Approaches in Oracle Solaris Cluster 4.3 System Administration Guide.

  8. Verify the status of the new disk set.
    phys-schost# metaset -s setname
  9. As needed, set device group properties.
    phys-schost# cldevicegroup set -p name=value device-group
    –p

    Specifies a device-group property.

    name

    Specifies the name of a property.

    value

    Specifies the value or setting of the property.

    device-group

    Specifies the name of the device group. The device-group name is the same as the disk-set name.

    See the cldevicegroup(1CL) for information about device-group properties.

Example 6  Creating a Disk Set

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

Next Steps

Add drives to the disk set. Go to Adding Drives to a Disk Set.