Sun Cluster 3.0 U1 Installation Guide

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 created by SunPlex Manager.


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

    • 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. See "Mediators Overview" for details on how to set 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).

  2. Ensure that root is a member of group 14.


    # vi /etc/group
    ...
    sysadmin::14:root
    ...

  3. Ensure that the local metadevice state database replicas exist.

    For instructions, see "How to Create Metadevice State Database Replicas".

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

  5. Create the diskset.

    This command also 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

  6. Verify the status of the new diskset.


    # metaset -s setname
    

  7. Add drives to the diskset.

    Go to "Adding 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 assigned 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