This procedure describes how to setup a configuration where a zone cluster resource depends on a global cluster resource. This configuration ensures that a failover occurs if the zone cluster node where the zone cluster resources is online goes down.
# clrg create global_zone-rg
# clrs create -t <rt-type> -p <property>=<value> -g global_zone-rg global_zone-rs
# clrg create zone_cluster-rg
# clrg set -p RG_affinities=+++<zone-cluster-name>:zone_cluster-rg global_zone-rg
Note that the dependency set here can be one of Resource_dependencies_restart, Resource_dependencies_offline_restart, Resource_dependencies or Resource_dependencies_weak as needed.
# clrs create -g zone_cluster-rg -t <rt-type> -p <property>=<value> -p resource_dependencies_offline_restart=global:global_zone-rs zone_cluster-rs
As illustrated in this procedure, the resource dependency is from the zone cluster resource on the global cluster resource, but the resource group affinity is from the global cluster resurce group to the zone cluster resource group.
If one of the resource groups is in a Disastery Recovery protection group, the protection group property External_Dependency_Allowed needs to be set to true for the protection group to be valid.