Sun Cluster Software Installation Guide for Solaris OS

How to Create a Diskset

Perform this procedure for each diskset you create.


Note –

If you used SunPlex Manager to install Solstice DiskSuite, one to three disksets might already exist. See Using SunPlex Manager to Install Sun Cluster Software for information about the metasets that were created by SunPlex Manager.


  1. Do you intend to create more than three disksets in the cluster?

    • If no, skip to Step 6.

    • If yes, proceed to Step 2 to prepare the cluster for more than three disksets. You must perform that task whether you are installing disksets for the first time or whether you are adding more disksets to a fully configured cluster.

  2. Ensure that the value of the md_nsets variable is set high enough to accommodate the total number of disksets you intend to create in the cluster.

    1. On any node of the cluster, check the value of the md_nsets variable in the /kernel/drv/md.conf file.

    2. If the total number of disksets in the cluster will be greater than the existing value of md_nsets minus one, on each node increase the value of md_nsets to the desired value.

      The maximum permissible number of disksets is one less than the configured value of md_nsets. The maximum possible value of md_nsets is 32.

    3. Ensure that the /kernel/drv/md.conf file is identical on each node of the cluster.


      Caution – Caution –

      Failure to follow this guideline can result in serious Solstice DiskSuite/Solaris Volume Manager errors and possible loss of data.


    4. From one node, shut down the cluster.


      # scshutdown -g0 -y
      

    5. Reboot each node of the cluster.


      ok> boot
      

  3. On each node in the cluster, run the devfsadm(1M) command.

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

  4. From one node of the cluster, run the scgdevs(1M) command to update the global-devices namespace.

  5. On each node, verify that the scgdevs command has completed processing before you attempt to create any disksets.

    The scgdevs command calls itself remotely on all nodes, even when the command is run from just one node. To determine whether the scgdevs command has completed processing, run the following command on each node of the cluster.


    % ps -ef | grep scgdevs
    

  6. Ensure that the diskset you intend to create meets one of the following requirements.

    • If the diskset is 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. See Configuring Dual-String Mediators for details on how to configure dual-string mediators.

    • If the diskset is configured with more than two disk strings, ensure that for any two disk strings S1 and S2, the sum of the number of disk drives on those strings exceeds the number of disk drives on the third string S3. Stated as a formula, the requirement is that count(S1) + count(S2) > count(S3).

  7. Ensure that the local state database replicas exist.

    For instructions, see How to Create State Database Replicas.

  8. Become superuser on the cluster node that will master the diskset.

  9. Create the diskset.

    The following command creates the diskset and registers the diskset as a Sun Cluster disk device group.


    # metaset -s setname -a -h node1 node2
    
    -s setname

    Specifies the diskset name

    -a

    Adds (creates) the diskset

    -h node1

    Specifies the name of the primary node to master the diskset

    node2

    Specifies the name of the secondary node to master the diskset


    Note –

    When you run the metaset command to configure a Solstice DiskSuite/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 scsetup(1M) utility after the device group is created. Refer to “Administering Disk Device Groups” in Sun Cluster System Administration Guide for Solaris OS for more information about how to change the numsecondaries property.


  10. Verify the status of the new diskset.


    # metaset -s setname
    

  11. Add disk drives to the diskset.

    Go to Adding Disk Drives to a Diskset.

Example—Creating a Diskset

The following command creates two disksets, dg-schost-1 and dg-schost-2, with the nodes phys-schost-1 and phys-schost-2 specified 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