Sun Cluster Geographic Edition System Administration Guide

ProcedureHow to Add an Application Resource Group to a Sun StorEdge Availability Suite 3.2.1 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 can be activated or deactivated and the resource group can be either Online or Offline.

If the resource group is Offline and the protection group is activated after the configuration of the protection group has changed, then the protection group's local state 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 activate resource group.

Steps
  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 Sun Cluster Geographic Edition Software and RBAC.

  2. Add an application resource group to the protection group.


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

    Specifies the name 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

    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.

    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.

    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 Configuration status is OK on the local cluster, but the add operation is unsuccessful on the partner cluster, the Configuration 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.

    If the application resource group is a failover type resource group that shares affinities with one of the device groups in the same protection group, the Sun Cluster Geographic Edition software alters its RG_affinities property to include a strong, positive affinity to an internal resource group, called a lightweight resource group. This affinity includes failover delegation.

    The application resource group must not have strong, positive affinities that have failover delegation with other resource groups. Otherwise, trying to include a strong positive affinity with failover delegation on the lightweight resource group fails.

    The Sun Cluster Geographic Edition software also creates strong dependencies between the HAStoragePlus resource in the application resource group and the HAStoragePlus resource in the lightweight resource group for this device group. This redirection occurs when the protection group is brought online or when an online application resource group is added to an online protection group.

    Do not modify dependencies and resource group affinities between application resource groups and light weight resource groups.


Example 7–8 Adding an Application Resource Group to a Sun StorEdge Availability Suite 3.2.1 Protection Group

The following example illustrates how to add two application resource groups, apprg1 and apprg2, to avspg:


# geopg add-resource-group apprg1,apprg2 \
avspg