HP P2000 G3 MSA System CLI Reference Guide 53
IMPORTANT: To replicate between an HP P2000 G3 MSA System and an HP MSA 2040 SAN
system, the secondary volume must be exactly the same size as the primary volume. This can be
complicated because the P2000 G3 MSA creates volumes that are 64-KB aligned while the MSA
2040 SAN creates volumes that are 4-MB aligned. When the volume is created or expanded the
size will be decreased to the nearest alignment boundary. Allowing the system to create the
secondary volume automatically when creating the replication set ensures the size will be correct. To
ensure the size is exactly the same when creating the secondary volume manually, use the CLI and
perform the following steps:
• In the primary system, run set cli-parameters units MB precision 4 base 2 and
then run show volumes. Multiply the size of the source volume by 2048 to get the number of
512-byte blocks to use to create the secondary volume.
• In the secondary system, create the secondary volume using the create volume command
with the prepare-replication-volume parameter, and use the number of 512-byte blocks for the size
without appending a unit indicator.
For example, in a P2000 G3 MSA System as a user with a base preference of 10 you create a
50-GB primary volume:
# create volume vdisk vd-1 size 50GB PrimaryVol
# set cli-parameters units MB precision 4 base 2
# show volumes PrimaryVol
Vdisk Name Size Serial Number ...
--------------------------------------------------
vd-1 PrimaryVol 47683.6875MiB SN ...
--------------------------------------------------
The number of 512-byte blocks would be 47683.6875(MiB) * 2048 = 97656192. In the MSA
2040 SAN system, to create the secondary volume you would run:
create volume vdisk vd-1 size 97656192 prepare-replication-volume RepVol
Syntax
create replication-set
[link-type FC|iSCSI]
[max-queue #]
[noprompt]
[nowait]
[primary-address ip=IPs|wwnn=WWNNs|wwpn=WWPNs]
[priority low|medium|high]
[remote-system system]
[remote-vdisk vdisk]
[remote-volume volume]
[reserve size[B|KB|MB|GB|TB|KiB|MiB|GiB|TiB]]
[secondary-address ip=IPs|wwnn=WWNNs|wwpn=WWPNs]
[set name]
[snapshot snapshot]
primary-volume
Parameters link-type FC|iSCSI
Optional; required if the primary-address parameter is not specified. Specifies the type of ports
being used for the inter-system link:
• FC: FC ports.
• iSCSI: iSCSI ports.
max-queue #
Optional. Number of replication images to consider when determining the next image to replicate:
1–64. Used only if the on-collision parameter is set to oldest.