IBM DS6000 Computer Drive User Manual


 
Chapter 9. FlashCopy interfaces 105
All specified source device tracks are updated.
The DS6000 copies all tracks from source to target when a threshold number of source
tracks are updated.
A FlashCopy withdraw (using the FCWITHDR command) is issued to remove the
FlashCopy relationship.
A NOCOPY relationship is converted to a COPY relationship through the
NOCOPY2COPY mode option.
Example 9-16 FlashCopy NOCOPY option
//*********************************************************************
//* ESTABLISH 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'3500') TDEVN(X'4500') MODE(NOCOPY)
FCESTABL SDEVN(X'3501') TDEVN(X'4501') MODE(NOCOPY)
/*
One of the reasons for the NOCOPY option is for backing up to tape. The FlashCopy
NOCOPY parameter generates a logical copy of source data that can be read from another
device (target). This allows read activity (from the target device) to be separate from
application read/write activity on the source device. A backup program such as DFSMSdss
can use the target device as input for backing up data to tape.
Change the NOCOPY to full volume copy relationship
In order to change the NOCOPY relationship to a full volume copy, use the TSO FCESTABL
command with the MODE(NOCOPY2COPY) option (shown in Example 9-17). This starts a
background copy for source NOCOPY relationships intersecting with the extents specified.
The relationships end when the background copy is completed.
Example 9-17 TSO FCESTABL and MODE(NOCOPY2COPY)
//*********************************************************************
//* ESTABLISH 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'3500') TDEVN(X'4500') MODE(NOCOPY2COPY)
Note: When a FlashCopy NOCOPY relationship is ended, the data remaining on the target
device is unpredictable and should not be used. Also consider that tracks may be copied
from the source to the target volume even if the source track is not changed. This includes
the track that contains the volume label. Therefore, to avoid duplicate volume serial
problems when the target device is later varied online, we recommend that you relabel the
target volume after withdrawing a volume-level FlashCopy NOCOPY relationship.