Oracle® Solaris Cluster Data Services Planning and Administration Guide

Exit Print View

Updated: September 2014, E39648–02
 
 

Resource Group Affinities

An affinity between resource groups restricts on which nodes the resource groups may be brought online simultaneously. In each affinity, a source resource group declares an affinity for a target resource group or several target resource groups. To create an affinity between resource groups, set the RG_affinities resource group property of the source as follows:

-p RG_affinities=affinity-list
affinity-list

Specifies a comma-separated list of affinities between the source resource group and a target resource group or several target resource groups. You may specify a single affinity or more than one affinity in the list.

Specify each affinity in the list as follows:

operator target-rg

Note -  Do not include a space between operator and target-rg.
operator

Specifies the type of affinity that you are creating. For more information, see Table 2–3.

target-rg

Specifies the resource group that is the target of the affinity that you are creating.

Table 2-3  Types of Affinities Between Resource Groups
Operator
Affinity Type
Effect
+
Weak positive
If possible, the source is brought online on a node or on nodes where the target is online or starting. However, the source and the target are allowed to be online on different nodes.
++
Strong positive
The source is brought online only on a node or on nodes where the target is online or starting. The source and the target are not allowed to be online on different nodes.
-
Weak negative
If possible, the source is brought online on a node or on nodes where the target is not online or starting. However, the source and the target are allowed to be online on the same node.
--
Strong negative
The source is brought online only on a node or on nodes where the target is not online. The source and the target are not allowed to be online on the same node.
+++
Strong positive with failover delegation
Same as strong positive, except that an attempt by the source to fail over is delegated to the target. For more information, see Delegating the Failover or Switchover of a Resource Group.

Weak affinities take precedence over Nodelist preference ordering.

The current state of other resource groups might prevent a strong affinity from being satisfied on any node. In this situation, the resource group that is the source of the affinity remains offline. If other resource groups' states change to enable the strong affinities to be satisfied, the resource group that is the source of the affinity comes back online.


Note -  Use caution when declaring a strong affinity on a source resource group for more than one target resource group. If all declared strong affinities cannot be satisfied, the source resource group remains offline.