IBM DS6000 Computer Drive User Manual


 
Chapter 11. FlashCopy examples 125
Example 11-5 Create a full volume copy with incremental parameter
//*********************************************************************
//* ESTABLISH INCREMENTAL FLASHCOPY RELATIONSHIP *
//* SDEVN - SOURCE FLASHCOPY VOLUME *
//* TDEVN - TARGET FLASHCOPY VOLUME *
//*********************************************************************
//STEP1 EXEC PGM=IKJEFT01,REGION=256K
//SYSTSPRT DD SYSOUT=*
//SYSUADS DD DSN=SYS1.UADS,DISP=SHR
//SYSLBC DD DSN=SYS1.BRODCAST,DISP=SHR
//SYSTSIN DD *
FCESTABL SDEVN(X'3200') TDEVN(X'3400') INCREMENTAL(YES)
FCQUERY DEVN(X'3200')
FCQUERY DEVN(X'3400')
/*
After the initial full volume copy, every time you submit the job in Example 11-5, only changed
data will be copied to the target FlashCopy volume.
11.2.3 Using a target volume to restore its contents back to the source
Logs may need to be applied to the FlashCopy target volume and then the target volume
reversed to the source volume.
To reverse the relationship, the data must have been copied completely to the target before
reversing it back to the source. To avoid a situation where the full volume needs to be copied
with each FlashCopy, the Incremental FlashCopy should be used. As logs may need to be
applied to the target volume prior to reversing it, the target volume should be varied online.
This example consists of the following steps:
Part 1: Establish incremental FlashCopy (MODE(COPY) is a default); see Example 11-6.
Part 2: Reverse the relationship; see Example 11-7 on page 126.
Applying application or DB logs needs to be carefully considered as well.
Example 11-6 Establish incremental FlashCopy
Part 1
//*********************************************************************
//* ESTABLISH INCREMENTAL FLASHCOPY RELATIONSHIP *
//* SDEVN - SOURCE FLASHCOPY VOLUME *
//* TDEVN - TARGET FLASHCOPY VOLUME *
//*********************************************************************
//STEP1 EXEC PGM=IKJEFT01,REGION=256K
//SYSTSPRT DD SYSOUT=*
//SYSUADS DD DSN=SYS1.UADS,DISP=SHR
//SYSLBC DD DSN=SYS1.BRODCAST,DISP=SHR
//SYSTSIN DD *
FCESTABL SDEVN(X'3200') TDEVN(X'3400') INCREMENTAL(YES)
FCQUERY DEVN(X'3200')
FCQUERY DEVN(X'3400')
/*
The reverse of the FlashCopy is done using the FCETSTABL command with the
ACTION(FRR) parameter. See Example 11-7 on page 126.