IBM DS6000 Computer Drive User Manual


 
Chapter 9. FlashCopy interfaces 103
9.7.2 FlashCopy using TSO commands
In this section we describe the FlashCopy functions invoked via TSO commands and
parameters. For more detailed information about the TSO FlashCopy commands, refer to
DFSMS Advanced Copy Services, SC35-0428.
Consistency Group FlashCopy
In order to create a Consistency Group with a set of FlashCopy volumes, use the TSO
FCESTABL command with the ACTION(FREEZE) parameter as shown in Example 9-13.
The FlashCopy relationship is established between the source and target volumes, or
extents, and all I/O to the source volumes is put on hold (extended long busy) until one of the
following conditions is met:
A FlashCopy withdraw - FCWITHDR with ACTION(THAW) is processed by the LSS where
the volumes reside.
A two-minute timer expires.
Example 9-13 Create a FlashCopy consistency group with FCESTABL and ACTION(FREEZE)
//*********************************************************************
//* 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') ACTION(FREEZE)
FCESTABL SDEVN(X'3501') TDEVN(X'4501') ACTION(FREEZE)
FCESTABL SDEVN(X'3502') TDEVN(X'4502') ACTION(FREEZE)
FCESTABL SDEVN(X'3503') TDEVN(X'4503') ACTION(FREEZE)
FCESTABL SDEVN(X'3504') TDEVN(X'4504') ACTION(FREEZE)
/*
Incremental FlashCopy
With incremental FlashCopy, the relationship remains active after initial copy is complete.
This allows subsequent changes to be tracked so that future FlashCopy operations require
only a subset of the volume to be copied—only the data that has changed.
As shown in Example 9-14 on page 104, the TSO FCESTABL command with
INCREMENTAL(YES) is used to establish a FlashCopy relationship which will remain until
explicitly terminated with a FlashCopy withdraw request (the TSO FCWITHDR command).
The FlashCopy target is write-inhibited while the incremental relationship is active. Any
attempt to write to the device during this period will be failed by the hardware and reported as
an I/O error, an error from the access method, or both.
Integrated catalog
facility user catalogs
IDCAMS
(EXPORT/IMPORT)
Undefined DSORG DFSMSdss
Data set type Data mover Notes