IBM DS6000 Computer Drive User Manual


 
Chapter 26. Global Mirror examples 393
Once you identify your Global Copy pairs, use the following DS CLI command to create the
pairs:
dscli mkpprc -type gcp -tgtread -mode full -cfg <Source device configuration
file> <Source_Volume>:<Target_Volume> <Source_Volume>:<Target_Volume> ...
Example 26-50 shows how to create two Global Copy pairs with source volumes 6500 and
6501 on the disk at site 1, and target volumes 6500 and 6501 on the disk subsystem at site 2.
Example 26-50 mkpprc to establish two Global Copy pairs
dscli mkpprc -type gcp -tgtread -mode full -cfg $DSCLI/profile/DS-01.profile 6500:6500 6501:6501
Date/Time: June 14, 2005 3:27:45 PM EDT IBM DSCLI Version: 5.0.3.134 DS: IBM.2107-7506551
CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 6500:6500 successfully created.
CMUC00153I mkpprc: Remote Mirror and Copy volume pair relationship 6501:6501 successfully created.
To list the Global Copy pairs use the command lspprc as described in 26.11.1, “Query status
of the paths” on page 395.
26.10.4 Create FlashCopy relationships
The next step is to create FlashCopy pairs relationships between the B and C volumes.
If the FlashCopy pairs are in several LSSs, do not forget to select all of them during this step.
If FlashCopy pairs are spread over several Storage images, run this process again on each of
them.
You may first identify which volumes on the target storage image are available for FlashCopy.
For this use the following command:
dscli lsfbvol -lss <LSS_ID> -cfg <Device configuration file>
Example 26-51 shows the command and its corresponding output: the list of potential
volumes for FlashCopy relationships.
Example 26-51 lsfbvol to identify FlashCopy volume pairs
dscli lsfbvol -lss 65 -cfg $DSCLI/profile/DS-02.profile
Date/Time: June 14, 2005 7:12:30 PM EDT IBM DSCLI Version: 5.0.3.134 DS: IBM.2107-7573731
Name ID accstate datastate configstate deviceMTM datatype extpool cap (2^30B) cap (10^9B) cap (blocks)
================================================================================================================
GM_TGT_GC01 6500 Online Normal Normal 2107-900 FB 512 P5 1.0 - 2097152
GM_TGT_GC02 6501 Online Normal Normal 2107-900 FB 512 P5 1.0 - 2097152
GM_TGT_JFC01 6502 Online Normal Normal 2107-900 FB 512 P5 1.0 - 2097152
GM_TGT_JFC02 6503 Online Normal Normal 2107-900 FB 512 P5 1.0 - 2097152
Now that you know the available volumes, use the following command to establish FlashCopy
relationships using the selected ones:
dscli mkflash -record -persist -nocp -cfg <Device configuration file>
<Source_Volume>:<Target_Volume> <Source_Volume>:<Target_Volume> ...
Note: The type gcp option is required to create Global Copy pairs. Use the option mode
full
to force a first full replication of the Global Copy pair.
Note: The record option in the command is required to keep a record of the changed
tracks on both volumes. Using record implies the persist option, which keeps the
relationship. This FlashCopy relationship for Global Mirror is also built upon the nocp
option, which inhibits a background copy between source and target volumes.