Go to main content

Administering an Oracle® Solaris Cluster 4.4 Configuration

Exit Print View

Updated: November 2019

How to Switch the Primary for a Device Group

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

Note -  You can also bring an inactive device group online by using the Oracle Solaris Cluster Manager browser interface. See the Oracle Solaris Cluster Manager online help for more information. For Oracle Solaris Cluster Manager 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 the root role or a role that provides solaris.cluster.modify 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 39  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