3PAR Remote Copy configuration using RCFC ports(CLI version)- Part 2

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% startrcopy
Issue 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   —WWN of the node on the target system
• 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% 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 New      Primary    Sync          
  LocalVV      ID   RemoteVV     ID   SyncStatus    LastSyncTime
Check and ensure that the newly created remote copy group is available under "group information".

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. 

3PAR Remote Copy configuration using RCFC ports(CLI version)-Part 1

We have to consider following items first, while we configure remote copy on 3PAR storage system.

1.RCFC can be set up only on storage systems that communicate over FC storage area networks.
2.Understand the Storage area network that is used to connect the storage systems
3.The storage array ports, which are to be configured for RCFC, should be part of same zoneset

the first step is to establish zones between the RCFC ports of System1 and System2 which are to be configured for Replication.
In this demo setup, we are using Brocade SAN switches and both the systems are on the same SAN Fabric. If your systems are on different SAN Fabric and you have Brocade switches, you have to cerate LSANs to establish the connectivity between the RCFC ports.

Create RCFC zones on Fabric1

alicreate  "System1_RCFC_1_2_1", "21:21:00:02:ac:00:ab:cd"
alicreate  "System2_RCFC_1_2_1", "21:21:00:02:ac:00:cd:ab"
zonecreate   "System2_RCFC_1_2_1_System1_RCFC_1_2_1", "System1_RCFC_1_2_1;System2_RCFC_1_2_1"
cfgadd  "cfgfabric1", "System2_RCFC_1_2_1_System1_RCFC_1_2_1"
cfgsave
cfgenable  cfgfabric1
Do the zoning part on the other fabric as well(applicable only if you have redundant fabric)

alicreate  "System1_RCFC_0_2_1", "20:21:00:02:ac:00:ab:cd"
alicreate  "System2_RCFC_0_2_1", "20:21:00:02:ac:00:cd:ab"
zonecreate   "System1_RCFC_0_2_1_System2_RCFC_0_2_1", "System1_RCFC_0_2_1;System2_RCFC_0_2_1"
cfgadd  "cfgfabric2", "System1_RCFC_0_2_1_System2_RCFC_0_2_1"
cfgsave
cfgenable  cfgfabric2 
 Once the zones are ready and activated, we can start the actual RCFC configuration on 3PAR.
If these ports were not set up during the initial setup of the storage system, or if the configuration
has changed, reconfigure the ports before you set up the remote-copy.

1.Setting Up Remote-Copy Interface for RCFC


To configure the ports, use the "controlport config" command.

System1 cli% controlport config rcfc 0:2:1
Are you sure you want to run controlport config rcfc on port 0:2:1 (connection type point)?
select q=quit y=yes n=no: y
System1 cli%

System1 cli% controlport offline 0:2:1
Are you sure you want to run controlport offline on port 0:2:1?
select q=quit y=yes n=no: y

System1 cli% controlport rst 0:2:1
Are you sure you want to run controlport rst on port 0:2:1?
select q=quit y=yes n=no: y

Remember to repeat this step for all the RCFC ports on both System1 and System2.

To verify that the FC communication links have been established, issue the "showrctransport
-rcfc" command.The FC adaptor ports should appear, and the State column should display new.
System1 cli% showrctransport -rcfc
N:S:P    Peer_Node_WWN    Peer_Port_WWN State
0:2:1 2FF70002AC00ABCD 20210002AC00ABCD new
1:2:1 2FF70002AC00ABCD 21210002AC00ABCD new

To initialize the FC adaptor port, issue the controlport rcfc init command on one
system

System1 cli% controlport rcfc init -f 0:2:1

Repeat the same steps on System2 as well and verify the port status using "showrctransport
-rcfc"command.

System1 cli% showrctransport -rcfc
N:S:P    Peer_Node_WWN    Peer_Port_WWN State
0:2:1 2FF70002AC00ABCD 20210002AC00ABCD ready
1:2:1 2FF70002AC00ABCD 21210002AC00ABCD ready
Note:-If the State column displays incomplete or new, Repeat initialization step until the port is in a ready state.

Part-2 - Click to proceed!
Admin Helpline™ © , All Rights Reserved.
Privacy Policy