Before You Begin
Ensure that the following conditions are met:
You have the following information:
The name of the resource group that you are switching over.
The names of the nodes where the resource group will be brought online or to remain online.
The nodes where the resource group is to be brought online or to remain online are in the cluster.
These nodes have been set up to be potential masters of the resource group that you are switching.
To see a list of potential primaries for the resource group, type the following command:
# clresourcegroup show -v
# clresourcegroup switch [-n nodelist] resource-group
Specifies a comma-separated, ordered list of global-cluster nodes that can master this resource group. The resource group is switched offline on all of the other nodes.
This list is optional. If you omit this list, the resource group is switched on all nodes in the resource group's node list.
Specifies the name of the resource group to switch.
The output from this command indicates the state of the resource group that has been switched over.
# clresourcegroup status
This example shows how to switch the resource group resource-group-1 from its current primary phys-schost-1 to the potential primary phys-schost-2.
To verify that the resource group is online on phys-schost-1, run the following command.
phys-schost-1# clresourcegroup status === Cluster Resource Groups === Group Name Node Name Suspended Status ---------- --------- --------- ------ resource-group1 phys-schost-1 No Online phys-schost-2 No Offline
To perform the switch, run the following command.
phys-schost-1# clresourcegroup switch -n phys-schost-2 resource-group-1
To verify that the group is switched to be online on phys-schost-2, run the following command.
phys-schost-1# clresourcegroup status === Cluster Resource Groups === Group Name Node Name Suspended Status ---------- --------- --------- ------ resource-group1 phys-schost-1 No Offline phys-schost-2 No Online
See also
The clresourcegroup(1CL) page.