Example of modify: apply a detach rule
The following table lists the applicable detach-rules for consistency groups with various settings for visibility and storage-at-clusters.
About this task
Table 1. Consistency groups detach-rules and visibility, storage-at-volumes
visibility
storage-at-clusters
Applicable detach-rule settings
cluster-1
cluster-1
N/A
cluster-1 and cluster-2
cluster-1 and cluster-2
no-automatic-winner
winner cluster-1
winner cluster-2
cluster-1 and cluster-2
cluster-1
no-automatic-winner
winner cluster-1
To apply a detach rule that will determine the behavior of all volumes in a consistency group:
Steps
Use the
ll command to display the current detach rule (if any) applied to the consistency group:
VPlexcli:/clusters/cluster-1/consistency-groups/TestCG2> ll
Attributes:
Name Value
-------------------- ----------------------
active-clusters []
cache-mode synchronous
detach-rule -
.
.
.
Use one of the
consistency-group set-detach-rule commands to apply a detach-rule to the consistency group:
Use the
consistency-group set-detach-rule no-automatic-winner command to set the detach-rule as
no-automatic-winner .
In the following example, the command is used in the target consistency group’s context:
VPlexcli:/clusters/cluster-1/consistency-groups/TestCG> set-detach-rule no-automatic-winner
Use the
consistency-group set-detach-rule winner command to specify which cluster is the winner, and the number of seconds metro node waits after a link outage before detaching the winning cluster.
In the following example, the command is used in the root context:
VPlexcli:/> consistency-group set-detach-rule winner --cluster cluster-1 --delay 5s --consistency-groups TestCG