HP P9000 Business Continuity Manager User Guide

Determining the Compatible FlashCopy Copy Status
To resynchronize a Compatible FlashCopy linkage copy pair that is in the suspend status, monitor
the completion of the Compatible FlashCopy operation. Use the YKFCSTAT command to acquire
the status of the Continuous Access Synchronous Z P-VOL, Continuous Access Asynchronous P-VOL,
or Continuous Access Journal Z P-VOL that is the copy destination for Compatible FlashCopy, and
determine the copy status.
How to determine the Compatible FlashCopy copy status
Table 80 (page 285) outlines how to determine the Compatible FlashCopy copy status. After verifying
that Compatible FlashCopy execution has ended normally, run a script that includes the YKFCSTAT
command and determine the copy status from the value of the REXX variable in the Compatible
FlashCopy information structure.
Table 80 Determining the Compatible FlashCopy Copy Status
Copy statusREXX variable in the Compatible
FlashCopy information structure
Normal terminationTarget.State0 = 0
Copying was performed in NOCOPY mode.ErrorTarget.State0 = 1 and
Target.State2 = 1
Copying encountered an error or other event that
prevented copying from continuing.
Target.State0 = 1 and
Target.State6 = 1
Incremental Compatible FlashCopy was used.Target.State0 = 1 and
Target.State7 = 1
Use the YKSLEEP command to suspend script execution for a certain period of time, and then
repeatedly acquire the copy status to monitor the REXX variable Target.State0 in the Compatible
FlashCopy information structure until the value becomes 0.
Example of a script that determines the Compatible FlashCopy copy status
An example of a script that monitors the Compatible FlashCopy copy status follows:
ADDRESS TSO 'YKFCSTAT STEM(DEVICE.QUERY.) MSG(MS.) DEVN(7310)';
if DEVICE.QUERY.Target.State0 = '0' Then processing-for-successful-operation
1
;
if DEVICE.QUERY.Target.State0 = '1' & ,
DEVICE.QUERY.Target.State2 = '1' Then processing-for-error-operation
2
;
if DEVICE.QUERY.Target.State0 = '1' & ,
DEVICE.QUERY.Target.State6 = '1' Then processing-for-error-operation
3
;
if DEVICE.QUERY.Target.State0 = '1' & ,
Using Compatible FlashCopy linkage configurations 285