Sun Cluster System Administration Guide for Solaris OS

How to Add and Register a Disk Device Group (Solstice DiskSuite/Solaris Volume Manager)

Use the metaset command to create a Solstice DiskSuite/Solaris Volume Manager diskset and register the disk set as a Sun Cluster disk device group. When you register the diskset, the name that you assigned to the diskset is automatically assigned to the disk device group.

  1. Become superuser on the node connected to the disks where you want to create the diskset.

  2. Calculate the number of metadevice names needed for your configuration, and modify the /kernel/drv/md.conf file on each node.

    See “How to Set the Number of Metadevice Names and Disksets ” in the Sun Cluster Software Installation Guide for Solaris OS.

  3. Use the metaset(1M)command to add the Solstice DiskSuite/Solaris Volume Manager diskset and register it as a disk device group with Sun Cluster.


    # metaset -s diskset -a -h nodelist
    

    -s diskset

    Specifies the diskset to be created.

    -a -h nodelist

    Adds the list of nodes that can master the diskset.


    Note –

    Running the metaset command to set up a Solstice DiskSuite/Solaris Volume Manager device group on a cluster results in one secondary by default, regardless of the number of nodes that are included in that device group. You can change the desired number of secondary nodes by using the scsetup(1M) utility after the device group has been created. Refer to How to Change the Desired Number of Secondaries for a Device Group for more information about disk failover.


  4. Verify that the disk device group has been added.

    The disk device group name matches the diskset name that is specified with metaset.


    # scconf -p | grep disk-device-group
    

Example—Adding a Solstice DiskSuite/Solaris Volume Manager Disk Device Group

The following example shows the creation of the diskset and disk device group and verifies that the disk device group has been created.


# metaset -s dg-schost-1 -a -h phys-schost-1
# scconf -p | grep dg-schost-1
Device group name: dg-schost-1