Go to main content

Planning and Administering Data Services for Oracle® Solaris Cluster 4.4

Exit Print View

Updated: November 2019
 
 

Removing a Node From a Resource Group

The procedure to remove a node from a resource group all depend on whether the resource group is a scalable resource group or a failover resource group. For detailed instructions, see the following sections:


Note -  If the node that you want to remove appears in a per-node resource dependency, you must remove that node from the per-node dependency before you can remove it from the resource group. For more information, see How to Change Resource Dependency Properties.

To complete the procedure, you must supply the following information.

  • Node names and node IDs of all of the cluster nodes

    # clnode show -v | grep -i "Node ID"
  • The name of the resource group or the names of the resource groups from which you plan to remove the node

    # clresourcegroup show | grep "Nodelist"
  • Names of the PNM object that are to host the network resources that are used by the resource groups on all of the nodes

    # clresourcegroup show -v | grep "NetIfList.*value"

Additionally, be sure to verify that the resource group is not mastered on the node that you are removing. If the resource group is mastered on the node that you are removing, run the clresourcegroup command to switch the resource group offline from that node. The following clresourcegroup command brings the resource group offline from a given node, provided that new-masters does not contain that node.

# clresourcegroup switch -n new-masters resource-group
–n new-masters

Specifies the nodes that is now to master the resource group.

resource-group

Specifies the name of the resource group that you are switching. This resource group is mastered on the node that you are removing.

For more information, see the clresourcegroup(8CL) man page.


Caution

Caution  -  If you plan to remove a node from all the resource groups, and you use a scalable services configuration, first remove the node from the scalable resource groups. Then remove the node from the failover groups.


How to Remove a Node From a Scalable Resource Group

A scalable service is configured as two resource groups, as follows.

  • One resource group is a scalable group that contains the scalable service resource

  • One resource group is a failover group that contains the shared address resources that the scalable service resource uses

Additionally, the RG_dependencies property of the scalable resource group is set to configure the scalable group with a dependency on the failover resource group. For information about this property, see the rg_properties(7) man page.

For details about scalable service configuration, see Concepts for Oracle Solaris Cluster 4.4.

Removing a node from the scalable resource group causes the scalable service to no longer be brought online on that node. To remove a node from the scalable resource group, perform the following steps.

  1. Remove the node from the list of nodes that can master the scalable resource group (the nodelist resource group property).
    # clresourcegroup set [-n nodelist] scalable-resource-group
    –n nodelist

    Specifies a comma-separated, ordered list of nodes that can master this resource group. This resource group is switched offline on all the other nodes.

    This list is optional. If you omit this list, the Nodelist property is set to all nodes in the cluster.

    scalable-resource-group

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

  2. (Optional) Remove the node from the failover resource group that contains the shared address resource.

    For details, see How to Remove a Node From a Failover Resource Group That Contains Shared Address Resources.

  3. (Optional) Update the Load_balancing_weights property of the scalable resource to remove the weight of the node that you are removing from the resource group.

See Also

The clresourcegroup(8CL) man page.

How to Remove a Node From a Failover Resource Group

Perform the following steps to remove a node from a failover resource group.


Caution

Caution  -  If you plan to remove a node from all of the resource groups, and you use a scalable services configuration, first remove the node from the scalable resource groups. Then use this procedure to remove the node from the failover groups.


If the failover resource group contains shared address resources that scalable services use, see How to Remove a Node From a Failover Resource Group That Contains Shared Address Resources.

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

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

    # clresourcegroup set [-n nodelist] failover-resource-group
    –n nodelist

    Specifies a comma-separated, ordered list of nodes that can master this resource group. This resource group is switched offline on all the other nodes.

    This list is optional. If you omit this list, the Nodelist property is set to all nodes in the cluster.

    failover-resource-group

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

  2. Display the current list of PNM objects that are configured for each resource in the resource group.
    # clresourcegroup show -v failover-resource-group | grep -i netiflist
  3. Update netiflist for network resources that the removal of the node affects.

    This step overwrites the previous value of netiflist. Be sure to include all of the PNM objects here.

    # clresource set -p netiflist=netiflist network-resource

    Note -  The output of the preceding command line identifies the nodes by node name. Run the command line clnode show -v | grep -i "Node ID" to find the node ID.
    –p netiflist=netiflist

    Specifies a comma-separated list that identifies the PNM objects that are on each node. Each element in netiflist must be in the form of netif@node. netif can be given as a PNM object name, such as sc_ipmp0. The node can be identified by the node name or node ID, such as sc_ipmp0@1 or sc_ipmp@phys-schost-1.

    network-resource

    Specifies the name of the network resource that is hosted on the netiflist entries.


    Note -  Oracle Solaris Cluster does not support the use of the adapter name for netif.
  4. Verify the updated information.
    # clresourcegroup show -v failover-resource-group | grep -i nodelist
    # clresourcegroup show -v failover-resource-group | grep -i netiflist 

How to Remove a Node From a Failover Resource Group That Contains Shared Address Resources

In a failover resource group that contains shared address resources that scalable services use, a node can appear in the following locations.

  • The node list of the failover resource group

  • The auxnodelist of the shared address resource

To remove the node from the node list of the failover resource group, follow the procedure How to Remove a Node From a Failover Resource Group.

To modify the auxnodelist of the shared address resource, you must remove and recreate the shared address resource.

If you remove the node from the failover group's node list, you can continue to use the shared address resource on that node to provide scalable services. To continue to use the shared address resource, you must add the node to the auxnodelist of the shared address resource. To add the node to the auxnodelist, perform the following steps.


Note -  You can also use the following procedure to remove the node from the auxnodelist of the shared address resource. To remove the node from the auxnodelist, you must delete and recreate the shared address resource.

Before You Begin

Ensure that the /etc/netmasks file has IP-address subnet and netmask entries for all logical hostnames. If necessary, edit the /etc/netmasks file to add any missing entries.

  1. Switch the scalable service resource offline.
  2. Remove the shared address resource from the failover resource group.
  3. Create the shared address resource.

    Add the node ID or node name of the node that you removed from the failover resource group to the auxnodelist.

    # clressharedaddress create -g failover-resource-group \
    -X new-auxnodelist shared-address 
    failover-resource-group

    The name of the failover resource group that used to contain the shared address resource.

    new-auxnodelist

    The new, modified auxnodelist with the desired node added or removed.

    shared-address

    The name of the shared address.

Example 35  Removing a Node From a Resource Group

This example shows how to remove a node (phys-schost-3) from a resource group (resource-group-1) that contains a logical hostname resource (schost-1).

# clresourcegroup show -v resource-group-1 | grep -i nodelist
Nodelist: phys-schost-1phys-schost-2phys-schost-3
# clresourcegroup set -n phys-schost-1,phys-schost-2 resource-group-1
# clresourcegroup show -v resource-group-1 | grep -i netiflist
( Res property name: NetIfList
Res property class: extension
( List of IPMP
interfaces on each node
( Res property type: stringarray
Res property value: sc_ipmp0@1sc_ipmp0@2sc_ipmp0@3

(sc_ipmp0@3 is the IPMP group to be removed.)

# clresource set-pnetiflist=sc_ipmp0@1,sc_ipmp0@2 schost-1
# clresourcegroup show -v resource-group-1 | grep -i nodelist
Nodelist: phys-schost-1 phys-schost-2
# clresourcegroup show -v resource-group-1 | grep -i netiflist
Res property value: sc_ipmp0@1 sc_ipmp0@2