Oracle® Solaris Cluster System Administration Guide

Exit Print View

Updated: October 2015

How to Switch the Primary for a Device Group

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

You can also bring an inactive device group online using the Oracle Solaris Cluster Manager GUI. See the Oracle Solaris Cluster Manager online help for more information. For GUI log-in instructions, see How to Access Oracle Solaris Cluster Manager.

The phys-schost# prompt reflects a global-cluster prompt. Perform this procedure on a global cluster.

This procedure provides the long forms of the Oracle Solaris Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical.

  1. Assume a role that provides solaris.cluster.modify RBAC authorization on any node of the cluster.
  2. Use cldevicegroup switch to switch the device group primary.
    # cldevicegroup switch -n nodename devicegroup 
    -n nodename

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


    Specifies the device group to switch.

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

    If the device group is properly registered, information for the new device group is displayed when you use the following command.

    # cldevice status devicegroup
Example 5-16  Switching the Primary for a Device Group

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

# cldevicegroup switch -n phys-schost-1 dg-schost-1

# cldevicegroup status dg-schost-1

=== Cluster Device Groups ===

--- Device Group Status ---

Device Group Name    Primary        Secondary       Status
-----------------    -------        ---------       ------
dg-schost-1          phys-schost-1   phys-schost-2  Online