beautypg.com

IBM DS6000 User Manual

Page 105

background image

Chapter 9. FlashCopy interfaces

81

resyncflash -dev IBM.1750-13ABC2A -record -persist -seqnum 11 0001:0101 0005:0105
Date/Time: July 10, 2005 5:05:58 PM CEST IBM DSCLI Version: 5.0.3.134 DS: IBM.1750-13ABC2A
CMUC00168I resyncflash: FlashCopy volume pair 0001:0101 successfully resynchronized.
CMUC00168I resyncflash: FlashCopy volume pair 0005:0105 successfully resynchronized.
resyncflash -dev IBM.1750-13ABC2A seqnum 13 0003:0103
Date/Time: July 10, 2005 5:06:25 PM CEST IBM DSCLI Version: 5.0.3.134 DS: IBM.1750-13ABC2A
CMUC00168I resyncflash: FlashCopy volume pair 0003:0103 successfully resynchronized.
lsflash -dev IBM.1750-13ABC2A 0000-0005
Date/Time: July 10, 2005 5:06:39 PM CEST IBM DSCLI Version: 5.0.3.134 DS: IBM.1750-13ABC2A

ID SrcLSS SequenceNum Timeout ActiveCopy Recording Persistent Revertible SourceWriteEnabled TargetWriteEnabled BackgroundCopy
====================================================================================================================================
0001:0101 00 11 300 Disabled Enabled Enabled Disabled Disabled Disabled Enabled
0003:0103 00 13 300 Disabled Disabled Disabled Disabled Disabled Disabled Enabled
0005:0105 00 11 300 Disabled Enabled Enabled Disabled Disabled Disabled Enabled

#--- Example 2
mkflash -dev IBM.1750-13ABC2A -seqnum 03 0004:0104
Date/Time: July 10, 2005 5:05:32 PM CEST IBM DSCLI Version: 5.0.3.134 DS: IBM.1750-13ABC2A
CMUC00137I mkflash: FlashCopy pair 0004:0104 successfully created.

lsflash -dev IBM.1750-13ABC2A 0004
Date/Time: July 10, 2005 5:06:39 PM CEST IBM DSCLI Version: 5.0.3.134 DS: IBM.1750-13ABC2A

ID SrcLSS SequenceNum Timeout ActiveCopy Recording Persistent Revertible SourceWriteEnabled TargetWriteEnabled BackgroundCopy
====================================================================================================================================
0004:0104 00 4 300 Disabled Disabled Disabled Disabled Disabled Disabled Enabled

resyncflash -dev IBM.1750-13ABC2A -record -persist -seqnum 14 0004:0104

Date/Time: July 10, 2005 5:06:51 PM CEST IBM DSCLI Version: 5.0.3.134 DS: IBM.1750-13ABC2A
CMUN03027E resyncflash: 0004:0104: FlashCopy operation failure: action prohibited by current FlashCopy state

The following explanations apply to the examples shown in Example 9-5:

Example 1: increment a FlashCopy relationship.

In this example, three FlashCopy relationships are created with the

-record

and

-persist

parameters. The

resyncflash

commands are executed using a different sequence

number, which overwrites the one of the current FlashCopy relationship. The sequence
number only changes if the

resyncflash

finishes successfully.

The

resyncflash

for the 0001:0101 and 0005:0105 relationships take place using the

-record

and

-persist

parameters. Because the two parameters are omitted for the

0003:0103 FlashCopy relationship, the two properties Recording and Persistent change to
disabled for this FlashCopy relationship. As soon as the background copy for the
0003:0103 FlashCopy relationship finishes, the FlashCopy relationship terminates.

Example 2: error occurs when trying to increment FlashCopy relationship.

When trying to increment a FlashCopy relationship for which the properties Recording and
Persistent are disabled, an error will be the result. The script will end after this command
with return code 2 and any other commands following the one that caused the error will
not be executed.

Reverse source-target relationship using reverseflash

The command

reverseflash

can be used to change the direction of a FlashCopy

relationship. The former source becomes target and the former target becomes source. The
data is copied from the target to the source.

Example 9-6 on page 82 illustrates examples of the use of the

reverseflash

command.