This procedure can also be used to start (bring online) an inactive device group.
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.
# cldevicegroup switch -n nodename devicegroup
Specifies the name of the node to switch to. This node become the new primary.
Specifies the device group to switch.
If the device group is properly registered, information for the new device group is displayed when you use the following command.
# cldevice status devicegroup
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