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

Exit Print View

Updated: July 2014, E39656–01
 
 

How to Register and Configure Oracle ASM Resource Groups in a Zone Cluster (CLI)

Before You Begin

  • Ensure that the Oracle Grid Infrastructure framework resource is created and that dependencies are configured between the Support for Oracle RAC framework resource and the Oracle Grid Infrastructure framework resource.

  • Ensure that the Support for Oracle RAC framework resource group, the multiple-owner volume-manager framework resource group if used, and their resources are online.

Perform all steps from the global zone.

  1. Register the Oracle ASM resource types for the data service.
    1. Register the SUNW.scalable_asm_instance_proxy resource type.
      # clresourcetype register -Z zcname SUNW.scalable_asm_instance_proxy
    2. Register the SUNW.scalable_asm_diskgroup_proxy resource type.
      # clresourcetype register -Z zcname SUNW.scalable_asm_diskgroup_proxy
  2. Create resource groups asm-inst-rg and asm-dg-rg.
    # clresourcegroup create -Z zcname -S asm-inst-rg asm-dg-rg
    asm-inst-rg

    Specifies the name of the Oracle ASM instance resource group.

    asm-dg-rg

    Specifies the name of the Oracle ASM disk-group resource group.

  3. Set a strong positive affinity on rac-fmwk-rg by asm-inst-rg.
    # clresourcegroup set -Z zcname -p rg_affinities=++rac-fmwk-rg asm-inst-rg
  4. Set a strong positive affinity on asm-inst-rg by asm-dg-rg.
    # clresourcegroup set -Z zcname -p rg_affinities=++asm-inst-rg asm-dg-rg
  5. Create a SUNW.scalable_asm_instance_proxy resource and set the resource dependencies.
    # clresource create -Z zcname -g asm-inst-rg \
    -t SUNW.scalable_asm_instance_proxy \
    -p ORACLE_HOME=Grid_home \
    -p CRS_HOME=Grid_home \
    -p resource_dependencies_offline_restart=crs-fmwk-rs \
    -d asm-inst-rs
    –g asm-inst-rg

    Specifies the name of the resource group into which the resources are to be placed.

    –t SUNW.scalable_asm_instance_proxy

    Specifies the type of the resource to add.

    –d asm-inst-rs

    Specifies the name of the resource that you are creating.

  6. Add a SUNW.scalable_asm_diskgroup_proxy resource type to the asm-dg-rg resource group.
    # clresource create -Z zcname -g asm-dg-rg -t SUNW.scalable_asm_diskgroup_proxy \
    -p asm_diskgroups=dg[,dg…] \
    -p resource_dependencies_offline_restart=asm-inst-rs[,storage-rs] \
    -d asm-dg-rs
  7. Bring online the asm-inst-rg resource group in a managed state on a cluster node.
    # clresourcegroup online -Z zcname -M asm-inst-rg
  8. Bring online the asm-dg-rg resource group in a managed state on a cluster node.
    # clresourcegroup online -Z zcname -M asm-dg-rg
  9. Verify the Oracle ASM configuration.
    # clresource status -Z zcname +

Creating Storage Management Resources by Using Oracle Solaris Cluster Maintenance Commands

The tasks in this section are alternatives for the resource-configuration steps in How to Register and Configure Storage Resources for Oracle Database Files by Using clsetup. The following information is in this section:

    The following resources to represent storage for Oracle files are required:

  • Resources for scalable device groups and scalable file-system mount points

  • Resources for the Sun QFS metadata server

Resources for Scalable Device Groups and Scalable File-System Mount Points

If you are using Solaris Volume Manager for Sun Cluster, configure storage resources as follows:

  • Create one scalable resource group to contain all resources for scalable device groups.

  • Create one resource for each Solaris Volume Manager for Sun Cluster multi-owner disk set that you are using for Oracle files.

If you are using Sun QFS or qualified NAS devices, configure storage resources as follows:

  • Create one scalable resource group to contain all resources for scalable file-system mount points.

  • Create one resource for each Sun QFS shared file system or NFS file system on a qualified NAS device that you are using for Oracle files.

The resource that represents a Sun QFS shared file system can start only if the file system's Sun QFS metadata server is running. Similarly, the resource that represents a Sun QFS shared file system can stop only if the file system's Sun QFS metadata server is stopped. To meet this requirement, configure a resource for each Sun QFS metadata server. For more information, see Resources for the Sun QFS Metadata Server.

Resources for the Sun QFS Metadata Server

If you are using the Sun QFS shared file system, create one resource for each Sun QFS metadata server. The configuration of resource groups for these resources depends on the number of file systems in your configuration.

  • If your configuration contains a small number of file systems, create one resource group for all resources for the Sun QFS metadata server.

  • If your configuration contains a large number of file systems, configure resources for the Sun QFS metadata server in several resource groups as follows:

    • Distribute resources among the resource groups to ensure optimum load balancing.

    • Select a different primary node for each resource group to prevent all the resource groups from being online on the same node simultaneously.