You must supply the following information to complete this procedure.
the names and node IDs of all the cluster nodes
the names of the resource groups to which you are adding the node
the name of the NAFO group that will host the network resources used by the resource group on all the nodes
Also note the following points.
Be sure to verify that the new node is already a cluster member.
For failover resource groups, perform all the steps in the procedure "How to Add a Node to a Resource Group."
For scalable resource groups, you must complete the tasks listed as "For Scalable Resource Groups Only."
For Scalable Resource Groups Only
For each network resource that a scalable resource in the resource group uses, make the resource group where the network resource is located run on the new node (Steps 1 through 4 in the following procedure).
Add the new node to the list of nodes that can master the scalable resource group (the nodelist resource-group property) (Step 3 in the following procedure).
(Optional) Update the Load_balancing_weights property of the scalable resource to assign a weight to the node that you want to add to the resource group. Otherwise, the weight defaults to 1. See the scrgadm(1M) man page for more information.
Procedure - How to Add a Node to a Resource Group
Display the current node list and the current list of NAFO groups configured for each resource in the resource group.
# scrgadm -pvv -g resource-group | grep -i nodelist # scrgadm -pvv -g resource-group | grep -i netiflist |
The output of the command line for nodelist identifies the nodes by node name. The output for netiflist identifies them by node ID.
Update netiflist for the network resources that the node addition affects.
This step overwrites the previous value of netiflist, and therefore you must include all NAFO groups here. Also, you must input nodes to netiflist by node ID. To find the node ID, use scconf -pv | grep "Node ID".
# scrgadm -c -j network-resource -x netiflist=netiflist |
Changes a network resource.
Specifies the name of the network resource (logical hostname or shared address) being hosted on the netiflist entries.
Specifies a comma-separated list that identifies the NAFO groups on each node. Each element in netiflist must be in the form of NAFO-group-name@nodeid.
Update the node list to include all the nodes that can now master this resource group.
This step overwrites the previous value of nodelist, and therefore you must include all the nodes that can master the resource group here.
# scrgadm -c -g resource-group -h nodelist |
Changes a resource group.
Specifies the name of the resource group to which the node is being added.
Specifies a comma-separated list of nodes that can master the resource group.
Verify the updated information.
# scrgadm -pvv -g resource-group | grep -i nodelist # scrgadm -pvv -g resource-group | grep -i netiflist |
This example shows how to add a node (phys-schost-2) to a resource group (resource-group-1), which contains a logical-hostname resource (schost-2).
# scrgadm -pvv -g resource-group-1 | grep -i nodelist (resource-group-1) Res Group Nodelist: phys-schost-1 phys-schost-3 # scrgadm -pvv -g resource-group-1 | grep -i netiflist (resource-group-1:schost-2) Res property name: NetIfList (resource-group-1:schost-2:NetIfList) Res property class: extension(resource-group-1:schost-2:NetIfList) List of NAFO interfaces on each node(resource-group-1:schost-2:NetIfList) Res property type: stringarray(resource-group-1:schost-2:NetIfList) Res property value: nafo0@1 nafo0@3 (Only nodes 1 and 3 have been assigned NAFO groups. You must add a NAFO group for node 2.) # scrgadm -c -j schost-2 -x netiflist=nafo0@1,nafo0@2,nafo0@3 # scrgadm -c -g resource-group-1 -h phys-schost-1,phys-schost-2,phys-schost-3 # scrgadm -pvv -g resource-group-1 | grep -i nodelist (resource-group-1) Res Group Nodelist: phys-schost-1 phys-schost-2 phys-schost-3 # scrgadm -pvv -g resource-group-1 | grep -i netiflist (resource-group-1:schost-2:NetIfList) Res property value: nafo0@1 nafo0@2 nafo0@3 |