Unable to use -cons_exempt to empty an RDF group with consistency enabled
Summary: Unable to use the -cons_exempt flag when trying to empty a Remote Data Facility (RDF) group with consistency enabled.
Symptoms
Attempting to run the symrdf deletepair -cons_exempt command on all RDF device pairs an RDF group with consistency enabled fails with the error:
The device does not have a valid RDF Consistency state for this operation.
Cause
This is working as designed. You cannot use the -cons_exempt command to remove all SRDF devices from an RDF Group when SRDF consistency is enabled.
Resolution
Device pairs can be removed from an RDF group with the -cons_exempt parameter when consistency is enabled, except if the device pair being deleted is the last SRDF device pair in the group. To remove all the SRDF device pairs or the last device pair from the group, first you must disable consistency on the group. For example:
# symrdf -sid xxx -f pair.txt disable -rdfg 15 -nop An RDF 'Disable' operation execution is in progress for device file 'pair.txt'. Please wait... The RDF 'Disable' operation successfully executed for device file 'pair.txt'. # symrdf -sid xxx -f pair.txt suspend -rdfg 15 -nop An RDF 'Suspend' operation execution is in progress for device file 'pair.txt'. Please wait... The RDF 'Suspend' operation successfully executed for device file 'pair.txt'. # symrdf -sid xxx -f pair.txt deletepair -rdfg 15 -nop An RDF 'Delete Pair' operation execution is in progress for device file 'pair.txt'. Please wait... Delete RDF Pair in (1221,015)....................................Started. Delete RDF Pair in (1221,015)....................................Done. The RDF 'Delete Pair' operation successfully executed for device file 'pair.txt'.
Additional Information
The -cons_exempt flag has been renamed to -exempt in newer Solutions Enabler versions. The following is an example showing this error condition:
# symrdf -sid xxx list -rdfg 15 Symmetrix ID: 000xxxxxxxxx Local Device View ---------------------------------------------------------------------------- STATUS MODES RDF S T A T E S Sym RDF --------- ----- R1 Inv R2 Inv ---------------------- Dev RDev Typ:G SA RA LNK MDATE Tracks Tracks Dev RDev Pair ---- ---- -------- --------- ----- ------- ------- --- ---- ------------- 345F 20E5 R1:15 ?? RW NR A..1X 0 0 RW WD Suspended 3460 20E6 R1:15 ?? RW NR A..1X 0 0 RW WD Suspended Total -------- -------- Track(s) 0 0 MB(s) 0.0 0.0 Legend for MODES: M(ode of Operation) : A = Async, S = Sync, E = Semi-sync, C = Adaptive Copy D(omino) : X = Enabled, . = Disabled A(daptive Copy) : D = Disk Mode, W = WP Mode, . = ACp off (Mirror) T(ype) : 1 = R1, 2 = R2 (Consistency) E(xempt): X = Enabled, . = Disabled, M = Mixed, - = N/A # more pair.txt 345f 20e5 3460 20e6 # symrdf -sid xxx -f pair.txt query -sid xxx -rdfa Symmetrix ID : 000xxxxxxxxx (Microcode Version: 5874) RDFA Session Number : 14 RDFA Cycle Number : 10965 RDFA Session Status : Active RDFA Consistency Exempt Devices : Yes RDFA Minimum Cycle Time : 00:00:30 RDFA Avg Cycle Time : 00:00:30 Duration of Last cycle : 00:00:30 RDFA Session Priority : 33 Tracks not Committed to the R2 Side: 0 Time that R2 is behind R1 : 00:00:43 R2 Image Capture Time : Sat May 29 14:15:01 2010 R2 Data is Consistent : True RDFA R1 Side Percent Cache In Use : 0 RDFA R2 Side Percent Cache In Use : 0 R1 Side DSE Used Tracks : 0 R2 Side DSE Used Tracks : 0 Transmit Idle Time : 00:00:00 Remote Symmetrix ID : 000xxxxxxxxx (Microcode Version: 5874) RDF (RA) Group Number : 15 (0E) Source (R1) View Target (R2) View MODES -------------------------------- ------------------------ ----- ------------ ST LI ST Standard A N A Logical T R1 Inv R2 Inv K T R1 Inv R2 Inv RDF Pair Device Dev E Tracks Tracks S Dev E Tracks Tracks MDACE STATE -------------------------------- -- ------------------------ ----- ------------ N/A 345F RW 0 0 NR 20E5 WD 0 0 A..XX Suspended N/A 3460 RW 0 0 NR 20E6 WD 0 0 A..XX Suspended Total -------- -------- -------- -------- Track(s) 0 0 0 0 MB(s) 0.0 0.0 0.0 0.0 Legend for MODES: M(ode of Operation) : A = Async, S = Sync, E = Semi-sync, C = Adaptive Copy D(omino) : X = Enabled, . = Disabled A(daptive Copy) : D = Disk Mode, W = WP Mode, . = ACp off C(onsistency State) : X = Enabled, . = Disabled, M = Mixed, - = N/A (Consistency) E(xempt): X = Enabled, . = Disabled, M = Mixed, - = N/A # symrdf -sid xxx -f pair.txt deletepair -rdfg 15 -nop An RDF 'Delete Pair' operation execution is in progress for device file 'pair.txt'. Please wait... The device does not have a valid RDF Consistency state for this operation