Sun Cluster 3.0 System Administration Guide

3.3.16 How to Switch the Primary for a Device Group

This procedure can also be used to start (bring online) an inactive device group.

  1. Become superuser on a node of the cluster.

  2. Use scswitch(1M) to switch the disk device group primary.


    # scswitch -z -D disk-device-group -h node
    
    -z

    Performs the switch.

    -D disk-device-group

    Specifies the device group to switch.

    -h node

    Specifies the name of the node to become the new primary.

  3. Verify that the disk device group has been switched to the new primary.

    Look for the disk device information for the device group displayed by the following command.


    # scstat -D
    

3.3.16.1 Example--Switching the Primary for a Disk Device Group

The following example shows how to switch the primary for a disk device group and verify the change.


# scswitch -z -D dg-schost-1 -h phys-schost-1
# scstat -D
...
Device Group Name:                             dg-schost-1
   Status:                                     Online
   Primary:                                    phys-schost-1