IBM DS6000 Manual Do Utilizador

Página de 578
348
 
IBM System Storage DS6000 Series: Copy Services with IBM System z
You may also consider defining paths in the reverse direction. After a site failover and before 
you return to the local site it may be necessary to resynchronize the volumes from the remote 
site to the local site. This requires paths from the remote site to the local site. In contrast to 
ESCON, FCP links allow the definition of paths in either direction over the very same link.
26.3.2  Establish Global Copy volume pairs
Create Global Copy pairs as the next step. TSO requires one PPRC CESTPAIR command 
for each Global Copy pair to be established; see Example 26-9.
In the example, note that the ONLINSEC parameter is YES. It is recommended to leave this 
parameter with its default value NO, which will avoid the situation where an active volume is 
overridden by accident. With a value of NO, when the potential Global Copy secondary 
volume is online to any system, the establish pair command will fail. When you specify YES, 
the establish will happen independently of whether the potential secondary volume is online 
or offline.
Example 26-9   Establish Global Copy volume pairs
//* ---------------------------- TSO ----------------------------- ***
//* ESTABLISH PPRC-XD PAIR(S)                                      ***
//* -------------------------------------------------------------- ***
//EPAIR   EXEC PGM=IKJEFT01                                           
//SYSPRINT  DD SYSOUT=*                                               
//SYSTSPRT  DD SYSOUT=*                                               
//SYSTSIN   DD DDNAME=SYSIN                                           
                                                                      
 CESTPAIR  DEVN (X'2C00')                     +                       
           PRIM (X'2C00' 27131 X'00' X'0C')   +                       
           SEC  (X'3C00' 73081 X'00' X'0C')   +                       
           ONLINSEC(YES) MSGREQ(NO)  CRIT(NO) +                       
           OPTION(XD)    MODE(COPY)                                   
 CESTPAIR  DEVN (X'2D00')                     +
           PRIM (X'2D00' 27131 X'00' X'0D')   +
           SEC  (X'3D00' 73081 X'00' X'0D')   +
           ONLINSEC(YES) MSGREQ(NO)  CRIT(NO) +
           OPTION(XD)    MODE(COPY)            
 CESTPAIR  DEVN (X'2D01')                     +
           PRIM (X'2D00' 27131 X'01' X'0D')   +
           SEC  (X'3D00' 73081 X'01' X'0D')   +
           ONLINSEC(YES) MSGREQ(NO)  CRIT(NO) +
           OPTION(XD)    MODE(COPY)            
 CQUERY    DEVN (X'2C00')                      
 CQUERY    DEVN (X'2D00')                      
 CQUERY    DEVN (X'2D01') 
Make sure the establish commands complete successfully and their initial copy phase starts. 
For this you use a CQUERY command; see Example 26-10 on page 349.