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 or switch the primary
for a device group by using the Sun Cluster Manager GUI. See the Sun Cluster Manager online help
for more information.

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

This procedure provides the long forms of the Sun Cluster commands.
Most commands also have short forms. Except for the long and short forms of
the command names, the commands are identical. For a list of the commands
and their short forms, see Appendix B, Sun Cluster Object-Oriented Commands.

Become superuser or assume a
profile that provides solaris.cluster.modify RBAC authorization
on any node of the cluster.

Use cldevicegroup switch to
switch the device group primary.

# cldevicegroup switch -n nodename devicegroup

-nnodename

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

devicegroup

Specifies the device group to switch.

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–37 Switching the Primary for a Device Group

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