Please read Part1 Before you start
This is Part2 topics of 3PAR Remote Copy configuration.
2.Setting Up the Primary System for Remote Copy
Before you start make a note of Node WWNs and RCFC port WWNs for both storage arrays.
System1
Node WWN:- 2FF70002AC00ABCD
WWN of 0:2:1 :-20210002AC00ABCD
WWN of 1:2:1 :-21210002AC00ABCD
System2
Node WWN:- 2FF70002AC00CDAB
WWN of 0:2:1 :-20210002AC00CDAB
WWN of 1:2:1 :-21210002AC00CDAB
Now we can proceed,
Run "startrcopy" command to start HP 3PAR Remote Copy on the primary storage system(System1). "startrcopy" command enables remote copy, but this command requires the HP 3PAR Remote Copy Software license. Ensure you have required license installed before you start.
System1 cli% startrcopyIssue the following commands to define a target links on the primary storage system (System1).
# creatercopytarget target_name FC node_WWN N:S:P:WWN N:S:P:WWN
where:
• target_name —Name of the target system (System2)
• FC—Defines link as an FC link
•node_WWN
• N:S:P:WWN—FC adapter port on the primary system (System1), expressed as
node:slot:port, and the WWN of the peer port on the target system (System2)
System1 cli% creatercopytarget System2 FC 2FF70002AC00CDAB 1:2:1:21210002AC00CDAB
Repeat the same process on the target system (System2)
System2 cli% startrcopy
System2 cli% creatercopytarget System1 FC 2FF70002AC00ABCD 1:2:1:21210002AC00ABCD
Check the status of the remote copy configuration using showrcopy command(eg: on System1) on both 3PAR arrays.The showrcopy command displays details of the remote-copy configuration.
System1 cli% showrcopy
Remote Copy System Information
Status: Started, Normal
Target Information
Name ID Type Status Options Policy
System2 2 FC ready 2FF70002AC00CDAB mirror_config
Link Information
Target Node Address Status Options
System2 0:2:1 20210002AC00CDAB Up
System2 1:2:1 21210002AC00CDAB Up
receive 0:2:1 20210002AC00CDAB Up
receive 1:2:1 21210002AC00CDAB Up
To check the links between the primary and backup systems, issue the showrcopy command on the backup system (System2):
System2 cli% showrcopy
Remote Copy System Information
Status: Started, Normal
Target Information
Name ID Type Status Options Policy
System1 2 FC ready 2FF70002AC00ABCD mirror_config
Link Information
Target Node Address Status Options
System1 0:2:1 20210002AC00ABCD Up
System1 1:2:1 21210002AC00ABCD Up
receive 0:2:1 20210002AC00ABCD Up
receive 1:2:1 21210002AC00ABCD Up
Verify the following:
• The Status of the Target Information area is ready.
• The Status of the Link Information area is Up for all the links.
3.Creating Volume Groups for Remote Copy
Issue the following command to set up a volume group called RCPY_Group on the primary storage system (System1) with a replication mode "sync":
System1 cli% creatercopygroup RCPY_Group System2:sync
if the replication mode is to be changed to "periodic" replace "sync" with "periodic".
check the status of remote copy configuration using "showrcopy" command and verify the copy group name under "group information".
System1 cli% showrcopyCheck and ensure that the newly created remote copy group is available under "group information".
Remote Copy System Information
Status: Started, Normal
Target Information
Name ID Type Status Options Policy
System2 2 FC ready 2FF70002AC00CDAB mirror_config
Link Information
Target Node Address Status Options
System2 0:2:1 20210002AC00CDAB Up
System2 1:2:1 21210002AC00CDAB Up
receive 0:2:1 20210002AC00CDAB Up
receive 1:2:1 21210002AC00CDAB Up
Group Information
Name Target Status Role Mode Options
RCPY_Group System2 New Primary Sync
LocalVV ID RemoteVV ID SyncStatus LastSyncTime
To create a volume automatically on the secondary storage system,we must set associated local and remote CPGs for existing remote-copy groups,issue the "setrcopygroup" with the "cpg" subcommand and -usr_cpg and -snp_cpg options. As an initial step,the primary volume must first
be created on the source system.
System1 cli% setrcopygroup cpg -usr_cpg CPG_FC_BC System2:CPG_FC_BC -snp_cpg CPG_FC_ARC System2:CPG_FC_ARC RCPY_Group
Setting the cpg for group RCPY_Group.
On the source system, issue the "admitrcopyvv" command with the "-createvv" option.The admitrcopyvv command adds an existing virtual volume to an existing remote-copy volume
group.
System1 cli% admitrcopyvv -createvv 3PAR_POC_TPVV RCPY_Group System2:3PAR_POC_TPVV_RCPY
Now you have to start the copy group to initiate the sync.on Primary system, run "startrcopygroup"command as follows.The startrcopygroup command enables remote copy for the specified remote-copy volume group.
System1 cli% startrcopygroup RCPY_Group
Group RCPY_Group starts, task ID = 7185
After few minutes check the copy status using showrcopy command.
System1 cli% showrcopy
Remote Copy System Information
Status: Started, Normal
Target Information
Name ID Type Status Options Policy
System2 2 FC ready 2FF70002AC00CDAB mirror_config
Link Information
Target Node Address Status Options
System2 0:2:1 20210002AC00CDAB Up
System2 1:2:1 21210002AC00CDAB Up
receive 0:2:1 20210002AC00CDAB Up
receive 1:2:1 21210002AC00CDAB Up
Group Information
Name Target Status Role Mode Options
RCPY_Group System2 Started Primary Sync
LocalVV ID RemoteVV ID SyncStatus LastSyncTime
3PAR_POC_TPVV 2 3PAR_POC_TPVV_RCPY 9 Synced NA
Thats it!! we are done with initial testing.
We can add vvols to the existing Remote Copy group or we can have multiple copy groups depending on the requirement.
No comments :
Post a Comment