Sun Cluster Geographic Edition Data Replication Guide for Hitachi TrueCopy

ProcedureHow to Create a Protection Group for Oracle Real Application Clusters

Before You Begin

Before you create a protection group for Oracle Real Application Clusters, ensure that the following conditions are met:

When a cluster and the cluster volume manager software restart, the Oracle Real Application Clusters framework automatically tries to import all cluster volume manager device groups that were imported already before cluster went down. Therefore, the attempt to import the device groups to the original primary fails.

  1. Log in to a cluster node on the primary cluster.

    You must be assigned the Geo Management RBAC rights profile to complete this procedure. For more information about RBAC, see Sun Cluster Geographic Edition Software and RBAC in Sun Cluster Geographic Edition System Administration Guide.

  2. Create a new protection group with a cluster volume manager disk group by using the geopg create command.

    This command creates a protection group on all nodes of the local cluster.


    # geopg create -s partnershipname -o localrole -d truecopy [-p property [-p...]] \
    protectiongroupname
    
    -s partnershipname

    Specifies the name of the partnership.

    -o localrole

    Specifies the role of this protection group on the local cluster as primary.

    -d truecopy

    Specifies that the protection group data is replicated by the Hitachi TrueCopy software.

    -p propertysetting

    Specifies the properties of the protection group.

    You can specify the following properties:

    • Description – Describes the protection group.

    • Timeout – Specifies the timeout period for the protection group in seconds.

    • Nodelist – Lists the host names of the machines that can be primary for the replication subsystem.

    • Cluster_dgs – Specifies the cluster volume manager disk group where the data is written.

    For more information about the properties you can set, see Appendix A, Standard Sun Cluster Geographic Edition Properties, in Sun Cluster Geographic Edition System Administration Guide.

    protectiongroupname

    Specifies the name of the protection group.

    For information about the names and values that are supported by Sun Cluster Geographic Edition software, see Appendix B, Legal Names and Values of Sun Cluster Geographic Edition Entities, in Sun Cluster Geographic Edition System Administration Guide.

    For more information about the geopg command, refer to the geopg(1M) man page.

  3. Add a Hitachi TrueCopy device group to the protection group.


    # geopg add-device-group [-p property [-p...]] \
    protectiongroupname
    
    -p propertysetting

    Specifies the properties of the protection group.

    You can specify the Fence_level properties which defines the fence level that is used by the disk device group. The fence level determines the level of consistency among the primary and secondary volumes for that disk device group. You must set this to never.


    Caution – Caution –

    To avoid application failure on the primary cluster, specify a Fence_level of never or async. If the Fence_level parameter is not set to never or async, data replication might not function properly when the secondary site goes down.

    If you specify a Fence_level of never, the data replication roles do not change after you perform a takeover.

    Do not use programs that would prevent the Fence_level parameter from being set to data or status because these values might be required in special circumstances.

    If you have special requirements to use a Fence_level of data or status, consult your Sun representative.


    For more information about the properties you can set, see Appendix A, Standard Sun Cluster Geographic Edition Properties, in Sun Cluster Geographic Edition System Administration Guide.

    protectiongroupname

    Specifies the name of the protection group.

  4. Add the Oracle Real Application Clusters framework resource group, all Oracle Real Application Clusters server resource groups, and all Oracle Real Application Clusters listener resource groups to the protection group.


    # geopg add-resource-group resourcegroup protectiongroupname
    
    resourcegroup

    Specifies a comma-separated list of resource groups to add to or delete from the protection group. The specified resource groups must already be defined.

    The protection group must be online before you add a resource group. The geopg add-resource-group command fails when a protection group is offline and the resource group that is being added is online.


    Note –

    If a protection group has already been started at the time that you add a resource group, the resource group remains unmanaged. You must start the resource group manually by running the geopg start command.


    protectiongroupname

    Specifies the name of the protection group.


Example 2–4 Creating a Protection Group for Oracle Real Application Clusters

This example creates the protection group pg1 which uses Oracle Real Application Clusters and the cluster volume manager.

A cluster volume manager disk group oracle-dg controls the data which is replicated by the Hitachi TrueCopy device group VG01. The nodelist of the Oracle Real Application Clusters framework resource group is set to all nodes of the cluster.

  1. Create the protection group on the primary cluster with the cluster volume manager disk group oracle-dg.


    # geopg create -s pts1 -o PRIMARY -d Truecopy -p cluster_dgs=oracle-dg pg1
    Protection group "pg1" successfully created.
  2. Add the Hitachi TrueCopy device group VG01 to protection group pg1.


    # geopg add-device-group --property fence_level=never VG01 pg1
    Device group "VG01" successfully added to the protection group "pg1".
  3. Add the Oracle Real Application Clusters framework resource group rac-framework-rg, all Oracle Real Application Clusters server resource groups, and all Oracle Real Application Clusters listener resource groups to the protection group.


    # geopg add-resource-group rac-framework-rg,rac-server-rg1,\
    rac-listener-rg1,rac-server-rg2,rac-listener-rg2 pg1