PowerMaxOS: How to set SRDF Metro preference for Witness protected groups
Summary: PowerMaxOS: How to set SRDF or Metro preference for Witness protected groups?
Instructions
set preference R1 | R2
option that changes the preference site to be used as part of the decision made by the witness when determining the site which remains host accessible on a failure. The preference is set at the SRDF or Metro group level.
To make us of this feature the following is required:
- Both Arrays are PowerMaxOS 5978.711 (and above)
- Management control is Solutions Enabler 10.x and or Unisphere for PowerMax 10.x (and above)
SYMCLI example:
symrdf -sid 001 -sg rdfg1_SG -rdfg 1 set preference R2
Unisphere for PowerMax example:
Array SID > Storage > Storage Groups > rdfg1_SG > Set Metro Preference
Array SID > Dashboard > Replication Dashboard > SRDF/Metro Storage Groups > rdfg1_SG > Set Metro Preference
Additional Information
The reason the choice may not align is:
When both sides run PowerMaxOS (5978 and higher), SRDF/Metro takes extra factors into account to determine and select the preferred winner.
The two sides regularly repeat this selection process for each SRDF/Metro group to ensure that the winning side remains the one that is most preferable. So, the winning side may change during the SRDF/Metro session. SRDF/Metro always reports the winning side as the R1 device and the losing side as R2. So each switch in the winning side causes an apparent swap of the R1 and R2 personalities in the session.
The assessment of the winning and losing sides occurs separately for each SRDF/Metro group that exists between two arrays. So, on a particular array, some devices could be R1 devices while others are R2 devices. Which are R1 and which are R2 depends on the outcome of assessing their respective SRDF/Metro groups.
So in summary, after setting the preference of a SRDF/Metro group to one side (Array A), if the other side (Array B) has one of the above criteria that Array A does not, then preference is assigned to Array B.
symrdf -sid Array A -sg <sg> set preference R2
symapi.log returns - The device is already in the requested state
sg <sg>: Set type Preference R2
The set preference option is only allowed for an Active SRDF/Metro group that has a Configured Type of Witness. An Active SRDF/Metro group can have different Pairstate and Witness Status combinations.
Using a naming convention of <Pairstate> - <Configured Type> - <Effective Type> - <Witness Status>
to represent the combinations and:
Configured Type W is Witness
Effective Type W is Witness and B is Bias
Witness Status N is Normal, D is Degraded and F is Failed
|
Current Status
|
Status after set preference change
|
| AA - W - W - N | AA - W - W - N |
|
AA - W - W - D
|
AB - W - B - F
|
|
AB - W - B - F
|
AB - W - B - F
|