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

How to Remove the RAC Framework Resource Group by Using the scrgadm Utility

The resources that the RAC framework resource group contains are described in Overview of the RAC Framework Resource Group. If the RAC framework resource group is created by using the scsetup utility, scsetup assigns names to the resources as listed in the following table.

Table 2–2 Names Assigned to RAC Framework Resources by scsetup

Resource Type 

Resource Name 

SUNW.rac_cvm

rac_cvm

SUNW.rac_hwraid

rac_hwraid

SUNW.rac_udlm

rac_udlm

SUNW.rac_framework

rac_framework

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

  2. Disable each resource that the RAC framework resource group contains.

    Disable the instance of the SUNW.rac_framework resource only after you have disabled all other resources that the RAC framework resource group contains. The other resources in the RAC framework resource group depend on SUNW.rac_framework.


    # scswitch -n -j resource
    
    -j resource

    Specifies the name of the resource that you are disabling. If this resource was created by using the scsetup utility, the name depends on the resource type as shown in Table 2–2.

  3. Remove each resource that you disabled in Step 2.

    Remove the instance of the SUNW.rac_framework resource only after you have removed all other resources that the RAC framework resource group contains. The other resources in the RAC framework resource group depend on SUNW.rac_framework.


    # scrgadm -r -j resource
    
    -j resource

    Specifies the name of the resource that you are removing. If this resource was created by using the scsetup utility, the name depends on the resource type as shown in Table 2–2.

  4. Unregister the resource type of each resource that you removed in Step 3.


    # scrgadm -r -t resource-type
    
    -t resource-type

    Specifies the name of the resource type that you are unregistering. This resource type was registered for the RAC framework resource group when the resource group was created. The resources that the RAC framework resource group contains are described in Overview of the RAC Framework Resource Group.

  5. Remove the RAC framework resource group.


    # scrgadm -r -g resource-group
    
    -g resource-group

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


Example 2–1 Removing the RAC Framework Resource Group by Using the scrgadm Utility


# scswitch -n -j rac_cvm
# scswitch -n -j rac_udlm
# scswitch -n -j rac_framework
# scrgadm -r -j rac_cvm
# scrgadm -r -j rac_udlm
# scrgadm -r -j rac_framework
# scrgadm -r -t SUNW.rac_cvm
# scrgadm -r -t SUNW.rac_udlm
# scrgadm -r -t SUNW.rac_framework
# scrgadm -r -g rac-framework-rg

This example shows the commands that are required to remove a RAC framework resource group that was created by using the scsetup utility. The cluster from which this resource group is removed uses the VxVM volume manager.



Note –

After you have removed the RAC framework resource group, you must boot each cluster node in noncluster mode and uninstall the Sun Cluster Support for Oracle Parallel Server/Real Application Clusters software packages. For more information, see How to Remove Sun Cluster Support for Oracle Parallel Server/Real Application Clusters From a Cluster.