Sun Cluster Data Service for Oracle RAC Guide for Solaris OS

ProcedureHow to Migrate a Volume Manager Resource From a RAC Framework Resource Group to a Multiple-Owner Volume-Manager Framework Resource Group

Perform this procedure to use the multiple-owner volume manager framework to manage volume-manager resources in the Oracle RAC configuration.

  1. Become superuser on any cluster node.

  2. Create a scalable multiple-owner volume-manager framework resource group.


    # clresourcegroup create -n nodelist-S vucmm-fmwk-rg
    
    -n nodelist=nodelist

    Specifies a comma-separated list of cluster nodes on which Sun Cluster Support for Oracle RAC is to be enabled. The Sun Cluster Support for Oracle RAC software packages must be installed on each node in this list.


    Note –

    This node list must contain all nodes that are configured in the node list of the RAC framework resource group.


    vucmm-fmwk-rg

    Specifies the name that you are assigning to the resource group.

  3. Register the SUNW.vucmm_framework resource type.


    # clresourcetype register SUNW.vucmm_framework
    
  4. Add an instance of the SUNW.vucmm_framework resource type to the resource group that you created in Step 2.


    # clresource create -g vucmm-fmwk-rg -t SUNW.vucmm_framework vucmm-fmwk-rs
    
    vucmm-fmwk-rs

    Specifies the name that you are assigning to the SUNW.vucmm_framework resource.

  5. Set the reservation_timeout property of the volume-manager resource type.

    Set the property to the same value as in the SUNW.rac_framework resource group.

    1. Display the value of the reservation_timeout extension property for the SUNW.rac_framework resource type.


      # clresource show -p reservation_timeout -t resource-type
      
      resource-type

      Specifies the resource type of the resource in the RAC resource group for which the reservation_timeout extension property is set. This resource type is SUNW.rac_svm or SUNW.rac_cvm.

    2. Set the reservation_timeout extension property of the SUNW.vucmm_framework resource type.


      # clresource set -p type_version=version \
      -p reservation_timeout=timeout vucmm-framework-rs
      
      version

      Specifies the value of the type_version property for the version of SUNW.rac_framework to which you are migrating the instance.

      timeout

      Specifies the value to which you are setting the reservation_timeout extension property.

      vucmm-framework-rs

      Specifies the name of the resource of type SUNW.vucmm_framework on your cluster.

  6. Register and add an instance of the resource type that represents the volume manager that you are using for Oracle files, if any.

    • If you are using Solaris Volume Manager for Sun Cluster, register and add the instance as follows:

      1. Register the SUNW.vucmm_svm resource type.


        # clresourcetype register SUNW.vucmm_svm
        
      2. Add an instance of the SUNW.vucmm_svm resource type to the resource group that you created in Step 2.

        Ensure that this instance depends on the vucmm_framework resource that you created in Step 4.


        # clresource create -g vucmm-fmwk-rg \
          -t SUNW.vucmm_svm \
          -p resource_dependencies=vucmm-fmwk-rs vucmm-svm-rs
        
        -p resource_dependencies=vucmm-fmwk-rs

        Specifies that this instance depends on the SUNW.vucmm_framework resource that you created in Step 4.

        vucmm-svm-rs

        Specifies the name that you are assigning to the SUNW.vucmm_svm resource.

    • SPARC: If you are using VxVM with the cluster feature, register and add the instance as follows.

      1. Register the SUNW.vucmm_cvm resource type.


        # clresourcetype register SUNW.vucmm_cvm
        
      2. Add an instance of the SUNW.vucmm_cvm resource type to the resource group that you created in Step 2.

        Ensure that this instance depends on the vucmm_framework resource that you created in Step 4.


        # clresource create -g vucmm-fmwk-rg \
          -t SUNW.vucmm_cvm \
          -p resource_dependencies=vucmm-fmwk-rs vucmm-cvm-rs
        
        -p resource_dependencies=vucmm-fmwk-rs

        Specifies that this instance depends on the SUNW.vucmm_framework resource that you created in Step 4.

        vucmm-cvm-rs

        Specifies the name that you are assigning to the SUNW.vucmm_cvm resource.

  7. Verify the configuration of the multiple-owner volume-manager framework resource group.


    # clresourcegroup show vucmm-fmwk-rg
    
  8. Verify that the multiple-owner volume-manager framework resource group and its resources are online.


    # clresourcegroup status
    
  9. Bring online and in a managed state the multiple-owner volume-manager framework resource group and its resources.


    # clresourcegroup online -emM vucmm-fmwk-rg
    
    vucmm-fmwk-rg

    Specifies the name of the SUNW.vucmm_framework based resource group.

  10. If your RAC configuration includes a ScalDeviceGroup resource that depends on a RAC volume manager resource, change the dependency to the equivalent multiple-owner volume-manager resource.


    # clresource set -p resource_dependencies=vucmm-vol-mgr-rs{local_node} scal-dg-rs
    
    vucmm-vol-mgr-rs

    Specifies the name of the multiple-owner volume-manager resource.

    • For Solaris Volume Manager for Sun Cluster, use the SUNW.vucmm_svm resource type.

    • For VxVM with the cluster feature, use the SUNW.vucmm_cvm resource type.

    scal-dg-rs

    Specifies the SUNW.ScalDeviceGroup resource whose dependency you move to the vucmm-vol-mgr-rs resource.

  11. Disable the RAC volume manager resource.


    # clresource disable rac-vol-mgr-rs
    
    rac-vol-mgr-rs

    Specifies the SUNW.rac_svm or SUNW.rac_cvm resource that is used by the SUNW.rac_framework based resource group.

  12. Delete the RAC volume manager resource from the RAC framework resource group.


    # clresource delete -t rac-vol-mgr-rs rac-fmwk-rg
    
    rac-fmwk-rg

    Specifies the name of the SUNW.rac_framework based resource group.

  13. Verify that all resource groups for RAC are online.


    # clresourcegroup status
    
  14. Reboot each node, one node at a time.

    The reboot refreshes the RAC framework with the configuration changes.