Oracle® Solaris Cluster Geographic Edition Data Replication Guide for EMC Symmetrix Remote Data Facility

Exit Print View

Updated: July 2014, E39668-01
 
 

Adding Application Resource Groups to an SRDF Protection Group

To make an application highly available, the application must be managed as a resource in an application resource group.

All the entities you configure for the application resource group on the primary cluster, such as resources and the application resource group, must be replicated to the secondary cluster. The resource group names must be identical on both clusters. Also, the data that the application resource uses must be replicated to the secondary cluster.

How to Add an Application Resource Group to an SRDF Protection Group

Before You Begin

You can add an existing resource group to the list of application resource groups for a protection group. Before you add an application resource group to a protection group, ensure that the following conditions are met:

  • The protection group is defined.

  • The resource group exists on both clusters and is in an appropriate state.

    • On the primary cluster, if the protection group is active, the application resource group is online.

    • On the secondary cluster, the application resource group is in the Unmanaged state.

  • The HAStoragePlus resource must exist in the application resource group, so that it can bring online the devices and mount the file systems.

The protection group can be activated or deactivated and the resource group can be either online or unmanaged.

  • If the resource group is unmanaged and the protection group is activated after the configuration of the protection group has changed, the local state of the protection group becomes Error.

  • If the resource group to add is online and the protection group is deactivated, the request is rejected. You must activate the protection group before adding an online resource group.

  1. Log in to a cluster node.

    You must be assigned the Geo Management RBAC rights profile to complete this procedure. For more information about RBAC, see Securing Geographic Edition Software in Oracle Solaris Cluster Geographic Edition Installation and Configuration Guide .

  2. Ensure that the Auto_start_on_new_cluster property of the resource group is set to False.
    # clresourcegroup show -p Auto_start_on_new_cluster resource-group

    If necessary, change the property value to False.

    # clresourcegroup set -p Auto_start_on_new_cluster=False resource-group
  3. If the application resource group must have dependencies on resource groups and resources that are not managed by this protection group, ensure that the External_dependencies_allowed property of the protection group is set to TRUE.
    # geopg list protection-group | grep -i external_dependencies_allowed

    If necessary, change the property value to True.

    # geopg set-prop -p External_dependencies_allowed=TRUE protection-group
  4. (Optional) If the protection group is offline, take offline the application resource group.

    If the protection group is offline, the application resource group must also be offline before it can successfully be added to the protection group.

    # clresourcegroup offline resource-group
  5. Add an application resource group to the protection group.

    Note -  You can also accomplish this step by using the Oracle Solaris Cluster Manager GUI. Click Partnerships, click the partnership name, then click the protection group name. In the Resource Groups section, click Add Resource Groups. For more information about Oracle Solaris Cluster Manager, see Chapter 13, Using the Oracle Solaris Cluster GUI, in Oracle Solaris Cluster System Administration Guide .

    This command adds an application resource group to a protection group on the local cluster. Then the command propagates the new configuration information to the partner cluster if the partner cluster contains a protection group of the same name.

    # geopg add-resource-group resource-group-list protection-group
    resource-group-list

    Specifies the name or names of the application resource group.

    You can specify more than one resource group in a comma-separated list.

    protection-group

    Specifies the name of the protection group.

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

    If the add operation is unsuccessful on the local cluster, the configuration of the protection group is not modified. Otherwise, the Configuration status is set to OK on the local cluster.

    If the application resource group configuration is OK on the local cluster, the application resource group gets added to the protection group on the local and remote cluster. If the subsequent configuration validation on the remote cluster does not result in a status of OK on the partner, the status is set to Error on the partner cluster.

    After the application resource group is added to the protection group, the application resource group is managed as an entity of the protection group. Then the application resource group is affected by protection group operations such as start, stop, switchover, and takeover.

Example 2-4  Adding an Application Resource Group to a Protection Group

This example adds two application resource groups, apprg1 and apprg2, to srdfpg.

# geopg add-resource-group apprg1,apprg2 srdfpg