238 IBM TotalStorage Productivity Center for Replication on Windows 2003
Figure 5-222 on page 237 shows a list of all Copy Sets in session MM1. You may dig even
deeper into the Copy Set details through the hyper links in the Details and Copy Set columns.
5.4.8 Add Copy Sets to a session using the CSMCLI
We removed the Copy Sets which we defined in 5.4.7, “Add certain volumes to copy sets
through the GUI” on page 231 and added the Copy Sets again to the session MM1 but this
time we are going to use the CSMCLI approach.
When you intend to add only a certain set of volumes out of an Site 1 LSS it is more
convenient to use the CSMCLI instead going through all the GUI panels.
As Figure 5-212 on page 231 shows we intend to add Copy Sets with H1 volumes in box
number 20781 and H2 volumes in box number 03461. With two Copy Sets a potential script
may look like Example 5-44.
Example 5-44 Add Copy Sets to Metro Mirror session MM1
#
# Add copy sets to Metro Mirror session MM1
# -----------------------------------------
setoutput -fmt stanza
lssess -l
mkcpset -h1 ds8000:2107.20781:vol:9000 -h2 ds8000:2107.03461:vol:A000 MM1
mkcpset -h1 ds8000:2107.20781:vol:9001 -h2 ds8000:2107.03461:vol:A001 MM1
lspair -l -cpset ds8000:2107.20781:vol:9000 MM1
lspair -l -cpset ds8000:2107.20781:vol:9001 MM1
lssess -l
# ----------------------------- end of script -------------------------------
Note the particular notation to specify -h1 and -h2 volumes especially that there is a dot
between 2107 and the DS8000 serial number.
For a more readable formatting we chose again the setoutput command. A list command
displays all defined sessions. Then create the actual copy sets by the mkcpset CSMCLI
command. After we created the copy sets we immediately list these Copy Sets. Another
lssess command closes the script as Example 5-44 shows.
The result of the script in Example 5-44 is shown in Example 5-45.
Example 5-45 Output of previous CSMCLI script
C:\Program Files\IBM\CSMCLI\CLI>csmcli -script mkcpsetMM1.txt
Name MM1
Status Inactive
State Defined
Copy type Metro Mirror Failover/Failback
Recoverable No
Copying No
Copy sets 0
Error No
IWNR2001I [Dec 23, 2006 3:24:40 PM] The pair was successfully created in session
MM1 for copy set DS8000:2107.20781
Chapter 5. Using TotalStorage Productivity Center for Replication on Windows 2003 239
:VOL:9000 with source DS8000:2107.20781:VOL:9000 and target
DS8000:2107.03461:VOL:A000.
IWNR2001I [Dec 23, 2006 3:24:42 PM] The pair was successfully created in session
MM1 for copy set DS8000:2107.20781
:VOL:9001 with source DS8000:2107.20781:VOL:9001 and target
DS8000:2107.03461:VOL:A001.
Source volume DS8000:2107.20781:VOL:9000
Target volume DS8000:2107.03461:VOL:A000
RolePair H1-H2
State Defined
Recoverable No
Copying No
New Yes
Copy set DS8000:2107.20781:VOL:9000
Timestamp n/a
Last result IWNR2001I
Source volume DS8000:2107.20781:VOL:9001
Target volume DS8000:2107.03461:VOL:A001
RolePair H1-H2
State Defined
Recoverable No
Copying No
New Yes
Copy set DS8000:2107.20781:VOL:9001
Timestamp n/a
Last result IWNR2001I
Name MM1
Status Inactive
State Defined
Copy type Metro Mirror Failover/Failback
Recoverable No
Copying No
Copy sets 2
Error No
C:\Program Files\IBM\CSMCLI\CLI>
As Example 5-45 on page 238 shows the successful creation of both Copy Sets. Listing the
sessions also indicates the two Copy Sets in session MM1.
The Copy Set listing shows the state of each Copy Set as Defined. Each Copy Set pair does
not yet replicate from source to target volume and, therefore, is not recoverable at this point.
This changes after you start the session MM1.
We turn now to the GUI to point something particular out concerning the User Name and the
Full Name which is not obvious through the CSMCLI list commands.
Figure 5-223 on page 240 is the panel you reach when you click the session name in the
session overview panel.
240 IBM TotalStorage Productivity Center for Replication on Windows 2003
Figure 5-223 Display copy set details through the GUI concerning CKD volumes
Figure 5-223 displays different volume names in the H1 and H2 column for CKD volumes then
for FB volumes.
With CKD volumes we see the volume label or volume serial number, VOLSER for the actual
label of the CKD volumes. This is different with FB volumes which show a similar structure as
the Example 5-45 on page 238 displays for the volume names. Figure 5-224 provides an
example of how the H1 and H2 volume names look for FB volumes
Figure 5-224 Display copy set details for FB volumes
When you click the H1 volume name in Figure 5-223 you see the volume details like User
Name and Full Name. Figure 5-225 on page 241 displays the result on what shows up when
you click the H1 volumes as indicated in Figure 5-223.

Get IBM TotalStorage Productivity Center for Replication on Windows 2003 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.