IBM DS6000 Computer Drive User Manual


 
350 IBM System Storage DS6000 Series: Copy Services with IBM System z
MODE (ASYNC) ONLINTGT(YES)
FCQUERY DEVN (X'3D00')
FCQUERY DEVN (X'3D01')
FCESTABL SDEVN(X'3D01') TDEVN(X'3F01') +
MODE (ASYNC) ONLINTGT(YES)
FCQUERY DEVN (X'3D01')
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 DEVN (X'3C00')
FCQUERY Formatted -2
DEVN SSID LSS CCA CU SERIAL ACT MAX XC PC CC RV SEQNUM
3C00 3C00 0C 00 2107 000000073081 0 50099 N S N N 00000000
FCQUERY COMMAND COMPLETED FOR DEVICE 3C00. COMPLETION CODE: 00
READY
FCESTABL SDEVN(X'3C00') TDEVN(X'3E00') MODE (ASYNC) ONLINTGT(YES)
FCESTABL COMMAND COMPLETED FOR DEVICE 3C00. COMPLETION CODE: 00
READY
FCQUERY DEVN (X'3C00')
FCQUERY Formatted -2
DEVN SSID LSS CCA CU SERIAL ACT MAX XC PC CC RV SEQNUM
3C00 3C00 0C 00 2107 000000073081 1 50099 N S N N 00000000
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 DD DDNAME=SYSIN
RSESSION SNBR(01) VOLSER(XX2C00) +
ACTION(DEFINE) +
LSSTYPE(CKD) LSSNBR(0C) +
ESSSERIAL(27131) +
MSSERIAL (27131)