3PAR Remote Copy Failover using the CLI
The following is performed on the primary 3PAR, i.e. the source
Log into the primary 3PAR and show the status of remote copy group myserver03_test
my3par01 cli% showrcopy groups myserver03_test Remote Copy System Information Status: Started, Normal Group Information Name Target Status Role Mode Options myserver03_test my3par02 Started Primary Sync LocalVV ID RemoteVV ID SyncStatus LastSyncTime myserver03_rc_test_10_Y 1512 myserver03_rc_test_10_Y 1628 Synced NA myserver03_rc_test_11_Y 1513 myserver03_rc_test_11_Y 1629 Synced NA
The remote copy group is currently in sync. To failover we need to stop the remote copy group
my3par01 cli% stoprcopygroup myserver03_test Stopping group myserver03_test. If volumes in the group are still synchronizing, then their snapshots on the secondary side may get promoted. Do you wish to continue? select q=quit y=yes n=no: y my3par01 cli% showrcopy groups myserver03_test Remote Copy System Information Status: Started, Normal Group Information
Name Target Status Role Mode Options myserver03_test my3par02 Stopped Primary Sync LocalVV ID RemoteVV ID SyncStatus LastSyncTime myserver03_rc_test_10_Y 1512 myserver03_rc_test_10_Y 1628 Stopped 2016-11-24 13:21:17 GMT myserver03_rc_test_11_Y 1513 myserver03_rc_test_11_Y 1629 Stopped 2016-11-24 13:21:17 GMT
Now perform the following on the secondary 3PAR, i.e. the target
Log into the secondary 3PAR and run the showrcopy command to find the target remote copy name. This will be same as on the primary but with a suffix, in our example myserver03_test.r50751.
Now you need to perform the failover
my3par02 cli% setrcopygroup failover -nostart myserver03_test.r50751 This command will cause all indicated secondary groups to become primary thereby allowing changes to be made to all VVs in the group. Are you sure that you wish to perform this action? select q=quit y=yes n=no: y setrcopygroup for failover -nostart myserver03_test.r50751 failover started with tasks: 4912 my3par02 cli% showtask 4912 No tasks.
The showtasks commands shows the failover has completed. The remote LUNs will now be in a read/write state so can be presenetd to the DR server
my3par02 cli% createvlun myserver03_rc_test_11_Y 11 myserver03_DR my3par02 cli% my3par02 cli% showvlun -host myserver03_DR Active VLUNs Lun VVName HostName -Host_WWN/iSCSI_Name- Port Type Status ID 11 myserver03_rc_test_11_Y myserver03_DR 10000090FAD76A78 2:1:1 host active 258 11 myserver03_rc_test_11_Y myserver03_DR 10000090FAD76A79 2:1:2 host active 258 11 myserver03_rc_test_11_Y myserver03_DR 10000090FAD76A78 3:1:1 host active 258 11 myserver03_rc_test_11_Y myserver03_DR 10000090FAD76A79 3:1:2 host active 258 ------------------------------------------------------------------------------------------ 4 total VLUN Templates Lun VVName HostName -Host_WWN/iSCSI_Name- Port Type 11 myserver03_rc_test_11_Y myserver03_DR ---------------- --- host ------------------------------------------------------------------------------ 1 total
The LUN can be unpresented again using the following command
my3par02 cli% my3par02 cli% removevlun myserver03_rc_test_11_Y 11 myserver03_DR Issuing removevlun myserver03_rc_test_11_Y 11 myserver03_DR select q=quit y=yes n=no: y
Lun status can be displayed as follows:
my3par02 cli% showvv -rcopy -rcopygroup myserver03_test.r50751 ---Rsvd(MB)--- -(MB)- Id Name Prov Type CopyOf BsId Rd -Detailed_State- Adm Snp Usr VSize RcopyStatus RcopyGroup 1628 myserver03_rc_test_10_Y tpvv base --- 1628 RW normal 512 1024 2048 10240 secondary myserver03_test.r50751 1629 myserver03_rc_test_11_Y tpvv base --- 1629 RW normal 512 1024 2048 10240 secondary myserver03_test.r50751 --------------------------------------------------------------------------------------------------------------------------------------- 2 total 1024 2048 4096 20480
Recent Changes
Contribute to this wiki
Why not help others by sharing your knowledge? Contribute something to this wiki and
join out hall of fame!
Contact us for a user name and password