IBM DS6000 Computer Drive User Manual


 
288 IBM System Storage DS6000 Series: Copy Services with IBM System z
These indications suggest that you have to return the revertible FlashCopy relationships to
the previous Consistency Group doing a FlashCopy FCWITHDR command with the REVERT
action to restore the FlashCopy relations to their prior state. You may run this command
against all volumes. As stated before, this will do nothing to the non-revertible FlashCopy
pairs but return an error message.
Case 3: FlashCopies all revertible
In the case where all of the pairs are revertible and all FlashCopy sequence numbers are
equal, this indicates that all FlashCopy operations were running and none completed their
task for the Consistency Group formation. This is indicated by the fact that all relationships
are still in a revertible state and nothing was finished and committed. Also, all were involved
in the very same Consistency Group set with identical FlashCopy sequence numbers. This
suggests to return to the previous Consistency Group.
Example 23-6 shows the TSO command FCWITHDR with the REVERT action parameter to
roll back the FlashCopy relationship between B and C to the previous Consistency Group.
Example 23-6 Withdraw Global Mirror FlashCopy relationship with ACTION(REVERT)
//* -------------------------------------------------------------- ***
//FCWITHDR EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD DDNAME=SYSIN
FCWITHDR SDEVN(X'6400' TDEVN(X'6500') ACTION(REVERT)
The command in Example 23-6 restores the Consistency Group to the prior state, and resets
the revertible state to NO. After this command, the FlashCopy relationship is not removed.
When the FlashCopy relationship is not in a revertible state, the withdraw operation is not
executed, as Example 23-7 shows.
Example 23-7 FlashCopy withdraw attempt with REVERT to a non-revertible state
READY
FCWITHDR SDEVN(X'6400') TDEVN(X'6500') ACTION(REVERT)
FLASHCOPY WITHDRAW DEVICE NOT IN A REVERTIBLE STATE
FCWITHDR COMMAND UNSUCCESSFUL FOR DEVICE 6400. COMPLETION CODE: 08
READY
Case 4: FlashCopies partially committed
If, at the failure point, some of the FlashCopy operations completed their task to create a
consistent copy and committed this process, they are no longer revertible. Other FlashCopy
relationships may not have completed their corresponding part of the new Consistency
Group; these are still in a revertible state. But all have the same FlashCopy sequence
number. So all were involved in the very same Consistency Group. This allows you to commit
the revertible FlashCopy relationships. To make the task easier, you may run COMMIT to all
FlashCopy pairs. Non-revertible FlashCopy relations would just return an error message.
Example 23-8 shows a FlashCopy withdraw, with ACTION(COMMIT). This commits the
FlashCopy relationship to its current state and resets the revertible state to NO. Note again,
when you issue this command to FlashCopy pairs that are not revertible any longer, you are
going to see only an error message and no action is performed.