HP P2000 G3 MSA System CLI Reference Guide 171
set replication-primary-volume
Description
Changes the primary volume for a replication set. You must issue this command to each volume in
the replication set. If the volumes in a replication set have different primary-volume settings — for
example, if the primary volume was changed while one volume was offline — this results in a
primary-volume conflict. Change the primary volume on the secondary system, then, if possible,
change the primary volume on the primary system.
As part of this command, you can initiate a rollback to a specified snapshot to synchronize the new
primary volume with a known data image.
When the secondary volume becomes the primary volume, it only retains the replication images that
the primary volume had and deletes any images that the primary volume did not have. Because the
secondary volume may not have successfully replicated all the images associated with the primary
volume, the secondary volume might have a subset of the primary volume’s images.
Syntax
set replication-primary-volume
[nowait]
primary-volume
replication-volume
[set
replication-set
]
[snapshot
snapshot
]
volume
replication-volume
Parameters
nowait
Optional. Changing the primary volume can take the Storage Controller several minutes to complete.
This parameter allows that processing to continue in the background so the Management Controller
can process other commands.
primary-volume
replication-volume
Name or serial number of the replication volume to designate as the new primary volume for the
replication set. If the name is not unique, you must specify the serial number.
set
replication-set
Optional. Name or serial number of the replication set.
snapshot
snapshot
Optional. Name or serial number of a snapshot to roll the replication volume data back to.
volume
replication-volume
Name or serial number of a volume in the replication set whose primary volume you want to change.
If one of the volumes in the replication set is offline, this must specify the volume that remains online.
If the name is not unique across replication sets, specify the
set
parameter.
Example
For this example, assume that:
•
Replication set
RS
has the primary volume
Data
and the secondary volume
rData
.
•
Primary volume
Data
resides in the primary system,
System1
.
•
Secondary volume
rData
resides in the secondary system,
System2
.
On
System1
, view the status of replication set
RS
:
# show replication-sets RS
Replication Set [Name (RS) Serial Number (<SN>) ] Primary Volume:
Name ... Status ... Location Primary-Volume ... Primary-Volume-Status
-----------------------------------------------------------------------
Data ... Online ... Local Data ... Online
rData ... Online ... Remote Data ... Online
On
System1
, unmap the primary volume from hosts.
Summary of Contents for P2000 G3
Page 1: ...HP P2000 G3 MSA System CLI Reference Guide Part number 500912 009 First edition February 2014 ...
Page 14: ...14 About this guide ...
Page 30: ...30 Categorical list of commands ...
Page 199: ...HP P2000 G3 MSA System CLI Reference Guide 199 See also set cache parameters show volumes ...
Page 294: ...294 Alphabetical list of commands See also set volume set vdisk ...
Page 498: ...498 XML API basetype properties PROPERTY name mrc version type uint8 0 PROPERTY OBJECT ...
Page 524: ...524 Glossary ...
Page 532: ...532 Index ...