beautypg.com

HP XP Command View Advanced Edition Software User Manual

Page 219

background image




Command line interface commands



219

the primary volume (P-VOL), specify the logical device (LDEV 11, model number XP1024, and
serial number 15001). The host that recognizes the primary volume has ID 1, and the HORCM
instance number is 11. For the secondary volume (S-VOL), specify the logical device (LDEV 12,
model number XP1024 and serial number 15001). The ID of the host that recognizes the secondary
volume is 1, (same as the primary volume), and the HORCM instance number is 12.

hdvmcli AddReplication -o "D:\logs\XP1024 AddReplication.log" "pvolhostid=1"
"pvolinstancenum=11" "svolhostid=1" "svolinstancenum=12" pvolarraytype=XP1024"
"pvolserialnum=15001" "pvoldevnum=11" "svolarraytype=XP1024"
"svolserialnum=15001" "svoldevnum=12"

Command execution result 2: The following shows the execution result of the above command:

RESPONSE:

An instance of ReplicationGroup

objectID=*****

replicationGroupID=1

groupName=HCMD_CG0001

pvolHostID=1

pvolInstanceNumber=11

pvolPortNumber=50,001

pvolHORCMMONHostName=192.168.32.63

pvolHORCMINSTHostName=192.168.32.63

svolHostID=1

svolInstanceNumber=12

svolPortNumber=50,002

svolHORCMMONHostName=192.168.32.64

svolHORCMINSTHostName=192.168.32.64

replicationFunction=BusinessCopy

copyTrackSize=15

List of 1 ReplicationInfo elements:

An instance of ReplicationInfo

objectID=*****

pairName=HCMD_CP0000

pvolSerialNumber=15001

pvolArrayType=XP1024

pvolDevNum=11

pvolObjectID=*****

pvolPoolID=-1

svolSerialNumber=15001

svolArrayType=XP1024

svolDevNum=12

svolObjectID=*****

svolPoolID=-1

replicationFunction=BusinessCopy

status=1

muNumber=2

copyTrackSize=15

splitTime=-1

*****

: The values are encoded by the CLI.

Method 3: The third method creates a new RAID Manager configuration definition file, creates a
copy group, and then adds a copy pair to the copy group, 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-