Go to main content

Oracle® Solaris Cluster 4.3 Software Installation Guide

Exit Print View

Updated: June 2019
 
 

How to Register and Configure the Oracle ASM Resource Group

Use this procedure to register and configure the Oracle Automatic Storage Management (Oracle ASM) resource group. Perform all steps from one node of the global cluster.

Before You Begin

  1. Assume the root role or become an administrator that provides solaris.cluster.admin and solaris.cluster.modify authorizations.
  2. Register the Oracle ASM resource types for the data service.
    1. Register the scalable Oracle ASM instance proxy resource type.
      # clresourcetype register SUNW.scalable_asm_instance_proxy
    2. Register the Oracle ASM disk-group resource type.
      # clresourcetype register SUNW.scalable_asm_diskgroup_proxy
  3. Create resource groups asm-inst-rg and asm-dg-rg.
    # clresourcegroup create -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.

  4. Set a strong positive affinity on rac-fmwk-rg by asm-inst-rg.
    # clresourcegroup set -p rg_affinities=++rac-fmwk-rg asm-inst-rg
  5. Set a strong positive affinity by asm-dg-rg.
    • If you are using hardware RAID, set the affinity on asm-inst-rg
      # clresourcegroup set -p rg_affinities=++asm-inst-rg asm-dg-rg
    • If you are using Solaris Volume Manager for Sun Cluster, set the affinity on scal-dg-rg and asm-inst-rg.
      # clresourcegroup set -p rg_affinities=++asm-inst-rg,++scal-dg-rg asm-dg-rg
  6. Create a SUNW.scalable_asm_instance_proxy resource and set the resource dependencies.
    # clresource create -g asm-inst-rg \
    -t SUNW.scalable_asm_instance_proxy \
    -p ORACLE_HOME=Grid_home \
    -p CRS_HOME=Grid_home \
    -p "ORACLE_SID{node1}"=+ASM1 \
    -p "ORACLE_SID{node2}"=+ASM2 \
    -p resource_dependencies_offline_restart=crs-fmwk-rs \
    -d asm-inst-rs
    –t SUNW.scalable_asm_instance_proxy

    Specifies the type of the resource to add.

    –p ORACLE_HOME=Grid_home

    Sets the path to the Oracle Grid Infrastructure home directory, where Oracle ASM is installed.

    –p CRS_HOME=Grid_home

    Sets the path to the Oracle Grid Infrastructure home directory, where Oracle Clusterware is installed.

    –p ORACLE_SID=+ASMn

    Sets the Oracle ASM system identifier.

    –d asm-inst-rs

    Specifies the name of the Oracle ASM instance resource that you create.

  7. Bring online the asm-inst-rg resource group in a managed state on a cluster node.
    # clresourcegroup online -eM asm-inst-rg
  8. Add an Oracle ASM disk-group resource to the asm-dg-rg resource group.
    • For hardware RAID, use the following command:
      # clresource create -g asm-dg-rg \
      -t SUNW.scalable_asm_diskgroup_proxy \
      -p asm_diskgroups=dg[,dg…] \
      -p resource_dependencies_offline_restart=asm-inst-rs \
      -d asm-dg-rs
    • For Solaris Volume Manager for Sun Cluster, use the following command:
      # clresource create -g asm-dg-rg \
      -t SUNW.scalable_asm_diskgroup_proxy \
      -p asm_diskgroups=dg[,dg…] \
      -p resource_dependencies_offline_restart=asm-inst-rs,scal-dg-rs \
      -d asm-dg-rs
  9. Bring online the asm-dg-rg resource group in a managed state on a cluster node.
    # clresourcegroup online -eM asm-dg-rg
  10. For a zone cluster, from the global zone of one node, create a SUNW.wait_zc_boot resource group.

    If the Oracle ACFS file system will not be used by a zone cluster, omit this step.

    # clresourcetype register SUNW.wait_zc_boot
    # clresourcegroup create -S scal-wait-zc-rg
    # clresource create -g scal-wait-zc-rg \
    -t SUNW.wait_zc_boot \
    -p zcname=zonecluster \
    wait-zc-rs
    # clresourcegroup online -eM scal-wait-zc-rg

Next Steps

Go to How to Create an Oracle Grid Infrastructure Resource for Interoperation With Oracle Solaris Cluster.