Oracle® Solaris Cluster Data Service for Oracle Real Application Clusters Guide

Exit Print View

Updated: July 2014, E39656–01
 
 

How to Create Oracle Solaris Cluster Resources in a Zone Cluster for Interoperation With Oracle Grid Infrastructure


Note -  If you are configuring Support for Oracle RAC to run in the global cluster, instead perform How to Create Oracle Solaris Cluster Resources in the Global Cluster for Interoperation With Oracle Grid Infrastructure.

Perform this procedure on only one node of the cluster.


Note -  When a step in the procedure requires running the Oracle Solaris Cluster commands in a zone cluster, you should run the command from the global cluster and use the –Z option to specify the zone cluster.
  1. Assume the root role or assume a role that provides solaris.cluster.admin and solaris.cluster.modify RBAC authorizations.
  2. Register the SUNW.crs_framework resource type.
    # clresourcetype register -Z zcname SUNW.crs_framework
  3. Add an instance of the SUNW.crs_framework resource type to the Oracle RAC framework resource group.

    For information about this resource group, see Registering and Configuring the Support for Oracle RAC Framework Resource Group.

    Set a strong dependency by the instance of SUNW.crs_framework on the instance of SUNW.rac_framework in the Support for Oracle RAC framework resource group.

    You might have configured a storage resource for the file system that you are using for Oracle Clusterware executables. In this situation, set an offline-restart dependency by the instance of SUNW.crs_framework on the storage resource. Limit the scope of this dependency to only the node where the storage resource is running. Set the dependency on the resource that you created in How to Create a Resource for a File-System Mount Point in Zone Cluster.

    # clresource create -Z zcname -t SUNW.crs_framework \
    -g rac-fmwk-rg \
    -p resource_dependencies=rac-fmwk-rs \
    [-p resource_dependencies_offline_restart=db-storage-rs{local_node} \
    [,bin-storage-rs{local_node}]] \
    crs-fmwk-rs
  4. Create a scalable resource group to contain the proxy resource for the Support for Oracle RAC database server.

    Set a strong positive affinity by the scalable resource group for the Support for Oracle RAC framework resource group.


    Tip  -  If you require Support for Oracle RAC to run on all cluster nodes, specify the –S option in the command that follows and omit the options –n, –p maximum_primaries, –p desired_primaries, and –p rg_mode.
    # clresourcegroup create -Z zcname -n nodelist \
    -p maximum_primaries=num-in-list \
    -p desired_primaries=num-in-list \
    -p rg_affinities=++rac-fmwk-rg[,db-storage-rg] \
    [-p rg_description="description"] \
    -p rg_mode=Scalable \
    rac-db-rg
  5. Register the SUNW.scalable_rac_server_proxy resource type.
    # clresourcetype register -Z zcname SUNW.scalable_rac_server_proxy
  6. Add an instance of the SUNW.scalable_rac_server_proxy resource type to the resource group that you created in Step 4.

    Set a strong dependency by the instance of SUNW.scalable_rac_server_proxy on the instance of SUNW.rac_framework in the Support for Oracle RAC framework resource group.

    Set an offline-restart dependency by the instance of SUNW.scalable_rac_server_proxy on the instance of SUNW.crs_framework that you created in Step 3.

    # clresource create -Z zcname -g rac-db-rg \
    -t SUNW.scalable_rac_server_proxy \
    -p resource_dependencies=rac-fmwk-rs \
    -p resource_dependencies_offline_restart=crs-fmk-rs \
    [, db-storage-rs, bin-storage-rs] \
    -p oracle_home=ora-home \
    -p crs_home=Grid_home \
    -p db_name=db-name \
    rac-srvr-proxy-rs
  7. Bring online the resource group that you created in Step 4.
    # clresourcegroup online -Z zcname -M rac-db-rg