Sun Cluster Data Service for Oracle Real Application Clusters Guide for Solaris OS

Modifying the RAC Framework Resource Group by Using the scrgadm Utility

The tasks in this section are alternatives for the resource-configuration steps in the following tasks:

ProcedureHow to Add Nodes to the RAC Framework Resource Group by Using the scrgadm Utility

This procedure assumes that a RAC framework resource group has already been created for the cluster.

Steps
  1. On one node of the cluster, become superuser.

  2. For the RAC framework resource group, specify a node list that contains the following nodes:

    • The nodes on which Sun Cluster Support for Oracle Real Application Clusters is already enabled.

    • The nodes that you are adding to the RAC framework resource group.


    # scrgadm -c -g resource-group \
      -y nodelist=nodelist \
      -y maximum_primaries=num-in-list \
      -y desired_primaries=num-in-list 
    
    -g resource-group

    Specifies the name of the RAC framework resource group to which you are adding nodes. If this resource group was created by using the scsetup utility, the name of the resource group is rac-framework-rg.

    -y nodelist=nodelist

    Specifies a comma-separated list of cluster nodes on which Sun Cluster Support for Oracle Real Application Clusters is already enabled and the nodes that you are adding to the RAC framework resource group. The Sun Cluster Support for Oracle Real Application Clusters software packages must be installed on each node in this list.

    -y maximum_primaries=num-in-list

    Specifies the number of nodes on which Sun Cluster Support for Oracle Real Application Clusters is to be enabled. This number must equal the number of nodes in nodelist.

    -y desired_primaries=num-in-list

    Specifies the number of nodes on which Sun Cluster Support for Oracle Real Application Clusters is to be enabled. This number must equal the number of nodes in nodelist.

  3. Bring the RAC framework resource group and its resources online.


    # scswitch -Z -g resource-group
    
    -Z

    Enables the resource and monitor, moves the resource group to the MANAGED state, and brings the resource group online.

    -g resource-group

    Specifies the name of the RAC framework resource group that is to be moved to the MANAGED state and brought online. If this resource group was created by using the scsetup utility, the name of the resource group is rac-framework-rg.

ProcedureHow to Remove Nodes From the RAC Framework Resource Group by Using the scrgadm Utility

Steps
  1. On one node of the cluster, become superuser.

  2. Boot in noncluster mode the nodes from which you are removing Sun Cluster Support for Oracle Real Application Clusters.

  3. For the RAC framework resource group, specify a node list that contains only the nodes that are to remain in the RAC framework resource group.

    This node list must not include the nodes that you are removing.


    # scrgadm -c -g resource-group \
      -y nodelist=nodelist \
      -y maximum_primaries=num-in-list \
      -y desired_primaries=num-in-list 
    
    -g resource-group

    Specifies the name of the RAC framework resource group from which you are removing nodes. If this resource group was created by using the scsetup utility, the name of the resource group is rac-framework-rg.

    -y nodelist=nodelist

    Specifies a comma-separated list of cluster nodes that are to remain in the RAC framework resource group. This node list must not include the nodes that you are removing.

    -y maximum_primaries=num-in-list

    Specifies the number of nodes on which Sun Cluster Support for Oracle Real Application Clusters is to be enabled. This number must equal the number of nodes in nodelist.

    -y desired_primaries=num-in-list

    Specifies the number of nodes on which Sun Cluster Support for Oracle Real Application Clusters is to be enabled. This number must equal the number of nodes in nodelist.

Next Steps

After you have removed nodes from the RAC framework resource group, you can optionally uninstall the Sun Cluster Support for Oracle Real Application Clusters software packages from the nodes that you removed. For more information, see How to Remove Sun Cluster Support for Oracle Real Application Clusters From Selected Nodes.