HP StorageWorks XP10000 Disk Array User Manual
Page 103
Command Line Interface Commands 103
hdvmcli [URL] AddReplication [option] replicationgroupid=copy-group-number
pvolarraytype=model pvolserialnum=serial-number pvoldevnum=device-number
[pvolportid=port-number] svolarraytype=model svolserialnum=serial-number
svoldevnum=device-number [svolportid=port-number]
[replicationfunction={BusinessCopy|ContinuousAccess|ContinuousAccessExtension|Sna
pshot}] [fencelevel=fence-level] [copytracksize=copy-pace]
Command execution example 1: This example creates a copy pair for Continuous Access XP in an existing
copy group.
Create a copy pair in the copy group with copy group number 0. As the primary volume (P-VOL), specify the
logical device with LDEV number 5 in the storage subsystem with model number XP1024 and serial number
65010001
. As the secondary volume (S-VOL), specify the logical device with LDEV number 10 in the storage
subsystem with model number XP1024 and serial number 65010012.
hdvmcli AddReplication -o "D:\logs\XP1024 AddReplication.log" "replicationgroupid=0"
"pvolarraytype=HDS9980V" "pvolserialnum=65010001" "pvoldevnum=5" "svolarraytype=HDS9980V"
"svolserialnum=65010012" "svoldevnum=10" "replicationfunction=ContinuousAccess"
"fencelevel=Data"
Command execution result 1:
RESPONSE:
An instance of ReplicationGroup
objectID=REPGROUP.0
replicationGroupID=0
groupName=HCMD_CG0003
pvolHostID=1
pvolInstanceNumber=11
pvolPortNumber=50,001
svolHostID=1
svolInstanceNumber=12
svolPortNumber=50,002
replicationFunction=ContinuousAccess
fenceLevel=Data
copyTrackSize=15
List of 1 ReplicationInfo elements:
An instance of ReplicationInfo
objectID=REPINFO.65010001.5.0012.10
pairName=HCMD_CP0004
pvolSerialNumber=6501001
pvolArrayType=HDS9980V
pvolDevNum=5
pvolObjectID=LU.HDS9980V.65010001.5
pvolPoolID=-1
svolSerialNumber=65010012
svolArrayType=HDS9980V
svolDevNum=10
svolObjectID=LU.HDS9980V.65010012.10
svolPoolID=-1
fenceLevel=Data
replicationFunction=ContinuousAccess
status=1
muNumber=-1
copyTrackSize=15
splitTime=-1
The second method is to create a copy group in the RAID Manager configuration definition file, and adds a
copy pair to the copy group, by using the following command:
hdvmcli [URL] AddReplication [option] [groupname=group-name] pvolhostid=host-ID
pvolinstancenum=instance-number [pvolportnum=port-number] svolhostid=host-ID
svolinstancenum=instance-number [svolportnum=port-number] pvolarraytype=model
pvolserialnum=serial-number pvoldevnum=device-number [pvolportid=port-number]
svolarraytype=model svolserialnum=serial-number svoldevnum=device-number
[svolportid=port-number] [replicationfunction=