Sun Cluster 3.0 Data Services Installation and Configuration Guide

How to Remove a Node from a Resource Group

To complete this procedure, you must supply the following information:

Also note the following:

  1. Update the node list to include all the nodes that can now master this resource group.

    This step removes the node and overwrites the previous value of nodelist; be sure to include all the nodes that can master the resource group here.


    # scrgadm -c -g resource-group -h nodelist
    

    -c

    Changes a resource group.

    -g resource-group

    Specifies the name of the resource group from which the node is being removed.

    -h nodelist

    Specifies a comma-separated list of nodes that can master this resource group.

  2. Display the current list of NAFO groups configured for each resource in the resource group.


    # scrgadm -pvv -g resource-group | grep -i netiflist
    


    Note -

    The output of the above command lines identifies the nodes by node ID.


  3. Update netiflist for network resources affected by the removal of the node.

    This step overwrites the previous value of netiflist; be sure to include all NAFO groups here. Also, you must input nodes to netiflist by node ID. To find the node ID, use scconf -p.


    # scrgadm -c -j network-resource -x netiflist=netiflist
    

    -c

    Changes a network resource.

    -j resource-group

    Specifies the name of the network resource (logical host name or shared address) being hosted on the netiflist entries.

    -x netiflist=netiflist

    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.

  4. Verify the updated information.


    # scrgadm -pvv -g resource-group | grep -i nodelist
    # scrgadm -pvv -g resource-group | grep -i netiflist
    

Example-Removing a Node from a Resource Group

This example shows how to remove a node (phys-schost-3) from a resource group (rg-1), which contains a logical host name resource (schost-1).


# scrgadm -pvv -g rg-1 | grep -i nodelist
(rg-1) Res Group Nodelist:       phys-schost-1 phys-schost-2 phys-schost-3
# scrgadm -c -g rg-1 -h phys-schost-1,phys-schost-2
# scrgadm -pvv -g rg-1 | grep -i netiflist
(rg-1:schost-1) Res property name: NetIfList(rg-1:schost-1:NetIfList) Res property class: extension(rg-1:schost-1:NetIfList) List of NAFO interfaces on each node(rg-1:schost-1:NetIfList) Res property type: stringarray(rg-1:schost-1:NetIfList) Res property value: nafo0@1 nafo0@2 nafo0@3

(nafo0@3 is the NAFO group to be removed.)

# scrgadm -c -j schost-1 -x netiflist=nafo0@1,nafo0@2
# scrgadm -pvv -g rg-1 | grep -i nodelist
(rg-1) Res Group Nodelist:       phys-schost-1 phys-schost-2
# scrgadm -pvv -g rg-1 | grep -i netiflist
(rg-1:schost-1:NetIfList) Res property value: nafo0@1 nafo0@2