FCQUERY
FCQUERY
FCESTABL SDEVN(X'3D01') TDEVN(X'3F01')
FCQUERY
Note the ONLINTGT parameter. Although we used here YES to make sure that the
FlashCopy command successfully completes, independent of whether the target volume is
online or offline, we still recommend to use the default of NO. This ensures that the
FlashCopy command is only successful when the target volume is offline.
You may query the FlashCopy status of the source volumes before and after the FlashCopy
establish command, to verify that a FlashCopy relationship is successfully established. See
Example 26-12.
Example 26-12 FlashCopy status before and after FCESTABL
FCQUERY
FCQUERY Formatted -2
DEVN SSID LSS CCA CU
3C00 3C00 0C 00 2107 000000073081
FCQUERY COMMAND COMPLETED FOR DEVICE 3C00. COMPLETION CODE: 00
READY
FCESTABL SDEVN(X'3C00') TDEVN(X'3E00')
FCESTABL COMMAND COMPLETED FOR DEVICE 3C00. COMPLETION CODE: 00
READY
FCQUERY
FCQUERY Formatted -2
DEVN SSID LSS CCA CU
3C00 3C00 0C 00 2107 000000073081
FCQUERY COMMAND COMPLETED FOR DEVICE 3C00. COMPLETION CODE: 00
This concludes the setup for Global Copy and FlashCopy. Global Copy replicates the data
from the local to the remote volumes.
26.3.4 Define Global Mirror session
Example 26-13 shows the TSO command RSESSION with the ACTION parameter with the
value DEFINE. This defines a Global Mirror session that involves the selected LSSs at the
local site. You define the same session number to all LSSs that potentially contribute to the
Global Mirror session.
Example 26-13 Define Global Mirror session to all involved LSS
//* ---------------------------- TSO ------------ CREATE (4) ----- ***
//* DEFINE GM SESSION NUMBER X'01' TO LSS X'0C' AND LSS X'0D'
//* -------------------------------------------------------------- ***
//DEFSESS EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN
RSESSION
350
IBM System Storage DS6000 Series: Copy Services with IBM System z
MODE (ASYNC)
ONLINTGT(YES)
DEVN (X'3D00')
DEVN (X'3D01')
MODE (ASYNC)
ONLINTGT(YES)
DEVN (X'3D01')
DEVN (X'3C00')
SERIAL
DEVN (X'3C00')
SERIAL
DD DDNAME=SYSIN
SNBR(01) VOLSER(XX2C00)
ACTION(DEFINE)
LSSTYPE(CKD) LSSNBR(0C)
ESSSERIAL(27131)
MSSERIAL (27131)
+
ACT
MAX XC PC CC RV SEQNUM
0 50099 N S N N 00000000
MODE (ASYNC)
ACT
MAX XC PC CC RV SEQNUM
1 50099 N S N N 00000000
+
+
+
+
ONLINTGT(YES)
***