Delete pairs – HP StorageWorks XP Remote Web Console Software User Manual
Page 197
![background image](/manuals/397687/197/background.png)
Hitachi TrueCopy for z/OS user guide 197
Example: CreateHrcPair Command
Delete pairs
The DeleteHrcPair command deletes TC390 pairs. The DeleteHrcPair parameters include:
•
Device list (numeric): C x 0x100 + VV, where C=CU#, VV=vol# within the CU.
•
Delete mode list (numeric): 0 (0x00) = normal, 1 (0x01) = delete by force; default = 0. You must specify
0 (normal) when deleting two or more async pairs.
•
Delete range list (string): “G” or “Group” = group; “V” or “Volume” = volume; “C” or “C/T” =
consistency time. For sync pairs you must omit this parameter.
• When two or more volumes are specified, the default = V. To delete two or more specific async
pairs, you can specify V or omit this parameter.
• When one volume is specified, the default = G under these conditions:
Volume is an M-VOL and delete mode = 0 (normal) (any pair status); or
Volume is an R-VOL, delete mode = 0, and pair status = suspending or deleting.
To delete an entire group by force (delete mode = 1), you must specify G.
• When one volume is specified, the default = C/T under these conditions:
Volume is an R-VOL, delete mode = 0, and pair status is not suspending or deleting.
•
Time-Saving Mode flag: “Yes” = The Use Time-Saving Mode option is enabled; “No” = The Use
Time-Saving Mode option is disabled; default = “Yes”. This parameter is a non-list type and only one
value can be specified.
The following provides an example of the pair macro commands needed to delete the specified pair with
delete mode = normal.
Start $Script="HRC",$Svr="CU-Name"
// $Dev
SetList $D =_ilDevA, $S = {0x0100,0x0101,0x0102,0x0103,0x0104,0x0105,0x0106,0x0107}
AddList $D =_ilDevA, $S = {0x0108,0x0109,0x010A,0x010B,0x010C,0x010D,0x010E,0x010F}
// $Rdev
SetList $D =_ilDevB, $S = {0x1F00,0x1F01,0x1F02,0x1F03,0x1F04,0x1F05,0x1F06,0x1F07}
AddList $D =_ilDevB, $S = {0x1F08,0x1F09,0x1F0A,0x1F0B,0x1F0C,0x1F0D,0x1F0E,0x1F0F}
// $Priority
SetList $D =_ilWorkA, $S = {1,2,3,4,16.32}
// $Fence
SetList $D =_slWorkB, $S = {"D","S","S","N"}
CreateHrcPair $Dev = _ilDevA, $RcuSn = "12345", $RcuSsid = 4, $Rdev = _ilDevB, $Priority =
_ilWorkA, $Fence = _slWorkB
StartHrcPair
// $Dev
SetList $D =_ilDevA, $S = {0x0B80,0x0B81,0x0B82}
AddList $D =_ilDevA, $S = {0x0C2A,0x0C2B,0x0C2C}
// $Rdev
SetList $D =_ilDevB, $S = {0x1045,0x1047,0x105E}
AddList $D =_ilDevB, $S = {0x1130,0x1139,0x113D}
// $RcuSn
SetList $D =_slWorkD, $S = {"32072","32072","32072","28439","28439","28439"}
// $RcuSsid
SetList $D =_ilWorkC, $S = {33,33,33,0xA74C,0xA74C,0xA74C}
// $CTG
SetList $D =_ilWorkB, $S = {0x7F,0x7F,0x7F,10,10,10}
CreateHrcPair $Dev = _ilDevA, $RcuSn = _slWorkD, $RcuSsid = _ilWorkC, $Rdev = _ilDevB, $Sync
= "S2", $CTG = _ilWorkB
StartHrcPair
End