ssunnbup04
Host WWNs
10000000c94cdbe6	#418-7cA	#1012-7aA	#2849-3aA
10000000c9504830	#418-10cA	#1012-10aA	#2849-14aA	

1. Identify Target frame/FAs. 

2. Get the details of source devices and cut the disks in target frame with same properties(meta config/size) and map to 
   decided FAs.

3. Get the zoning done for SRC frame FAs(to which the devices are mapped) with TGT frame FAs.

	#418 FA-7cA	5006048c49ae4486 With  	#2849  	FA-3aA 	5006048452a79042	Done
	#418 FA-10cA 	5006048c49ae4489 with	#2849	FA-14aA 5006048452a7904d	Done

	#1012 FA-7aA	500604844a379106 With  	#2849  	FA-3aA 	5006048452a79042	Done	
	#1012 FA-10aA	500604844a379109 with	#2849	FA-14aA 5006048452a7904d	Done

4. Mask the source devices to Target FAs. (Not yet done)

	#418 devices to #2849 3aA/14aA
	pbrun symmask -sid 418 -wwn 5006048452a79042 -dir 7c -p 0 add dev 47D,48B,495,490,49A,49F,4AE,4A9,483,4B3,486,4A4
	pbrun symmask -sid 418 -wwn 5006048452a7904d -dir 10c -p 0 add dev 47D,48B,495,490,49A,49F,4AE,4A9,483,4B3,486,4A4

	#1012 Devices to #2849 3aA/14aA	
	pbrun symmask -sid 1012 -wwn 5006048452a79042 -dir 7a -p 0 add dev 4E4,4DD,4E0
	pbrun symmask -sid 1012 -wwn 5006048452a7904d -dir 10a -p 0 add dev 4E4,4DD,4E0

5. Mask the TGT devices to Host (Done)

	pbrun symmask -sid 2849 -wwn 10000000c94cdbe6 -dir 3a -p 0 add dev 62A,62D,636,63B,640,645,64A,64F,654,633,659,65E,663,668,630,66D
	pbrun symmask -sid 2849 -wwn 10000000c9504830 -dir 14a -p 0 add dev 62A,62D,636,63B,640,645,64A,64F,654,633,659,65E,663,668,630,66D
	
6. Get the confirmation from Platform team regarding newly added devices.

7. Stop the Application/Bring down the database/Shutdown the server.Get confirmation from platform team.

8. Suspend the SRDF/S for the Source devices to maintain point-in-time copy on the R2 (CT2) site.
 
9. Create the DGs for SRC/TGT devices to split/establish easily.
   
	pbrun symdg create ssunnbup04_418_srcdevs_dg -type rdf1
	pbrun symld -sid 418 -g ssunnbup04_418_srcdevs_dg  add dev <47d  & remaining devices also>
  ## Split the Sync pair of SRC devices	
	pbrun symrdf -sid 418 -g ssunnbup04_418_srcdevs_dg -rdfg 1 que
	pbrun symrdf -sid 418 -g ssunnbup04_418_srcdevs_dg -rdfg 1 split

	pbrun symdg create ssunnbup04_1012_srcdevs_dg -type rdf1
	pbrun symld -sid 1012 -g ssunnbup04_1012_srcdevs_dg add dev <4e4 & remaining devices also>
  ## Split the Sync pair of SRC devices	
	pbrun symrdf -sid 1012 -g ssunnbup04_1012_srcdevs_dg -rdfg 2 que
  ##(We need to follow Async steps like changing mode of rdfg to acp ..) before split
	pbrun symrdf -sid 1012 -g ssunnbup04_1012_srcdevs_dg -rdfg 2 split
		
	pbrun symdg create ssunnbup04_2849_tgtdevs_dg
	pbrun symld -sid 2849 -g ssunnbup04_2849_tgtdevs_dg add dev <62A & remaining devices also>
	
  ## Split the Sync pair of TGT devices (If already pair is created for new devices)
	pbrun symrdf -sid 2849 -g ssunnbup04_2849_tgtdevs_dg -rdfg 1 que
	pbrun symrdf -sid 2849 -g ssunnbup04_2849_tgtdevs_dg -rdfg 1 split
  ## Split the Async pair of TGT devices (If already pair is created for new devices)
	pbrun symrdf -sid 2849 -g ssunnbup04_2849_tgtdevs_dg -rdfg 5 que
	pbrun symrdf -sid 2849 -g ssunnbup04_2849_tgtdevs_dg -rdfg 5 split

10. Un-Mask the source devices from Host.

	#418 Source devices from host
	pbrun symmask -sid 418 -wwn 10000000c94cdbe6 -dir 7c -p 0 remove dev 47D,48B,495,490,49A,49F,4AE,4A9,483,4B3,486,4A4
	pbrun symmask -sid 418 -wwn 10000000c9504830 -dir 10c -p 0 remove dev 47D,48B,495,490,49A,49F,4AE,4A9,483,4B3,486,4A4
	
	#1012 Source devices from host
	pbrun symmask -sid 1012 -wwn 10000000c94cdbe6 -dir 7a -p 0 remove dev 4E4,4DD,4E0
	pbrun symmask -sid 1012 -wwn 10000000c9504830 -dir 10a -p 0 remove dev 4E4,4DD,4E0

11. Make the Source devices "Write_Disable"  (Pls. be careful when executing this command.Crossverify Frame ID and devices)
	
	pbrun symdev -sid 418 write_disable -file ssunnbup04_418_srcdevs -nop
	##ssunnbup04_418_srcdevs (create all these files under 06June2008-OR)
	47D
	48B
	495
	490
	49A
	49F
	4AE
	4A9
	483
	4B3
	486
	4A4

	pbrun symdev -sid 1012 write_disable -file ssunnbup04_1012_srcdevs -nop
	4E4
	4DD
	4E0
	
12. Make the target devices "Not_Ready" (Pls. be careful when executing this command.Crossverify Frame ID and devices)
	pbrun symdev -sid 2849 not_ready -file ssunnbup04_2849_tgtdevs -nop
	62A	
	62D
	636
	63B
	640
	645
	64A
	64F
	654
	633
	659
	65E
	663
	668
	630
	66D 
13. Create Cold-Pull session between SRC-TGT devices
	pbrun symrcopy create -copy -name 06June2008 -pull -cold -file ssunnbup04_map_06june -nop
	### ssunnbup04_map_06june
	
	#Control Device		Remote Device
	###############		#############
	symdev=2849:62A 	symdev=418:47D
	symdev=2849:636 	symdev=418:48B
	symdev=2849:63B 	symdev=418:495
	symdev=2849:640 	symdev=418:490
	symdev=2849:645 	symdev=418:49A
	symdev=2849:64A 	symdev=418:49F
	symdev=2849:64F 	symdev=418:4AE
	symdev=2849:654 	symdev=418:4A9
	symdev=2849:633 	symdev=418:483
	symdev=2849:659 	symdev=418:4B3
	symdev=2849:65E 	symdev=418:486
	symdev=2849:663 	symdev=418:4A4
	symdev=2849:668 	symdev=1012:4E4
	symdev=2849:630 	symdev=1012:4DD
	symdev=2849:66D 	symdev=1012:4E0

14. Start "Copy" session by activating the session

	pbrun symrcopy activate -file ssunnbup04_map_06june -nop

15. Set the pace to 2

	pbrun symrcopy set pace 2 -file ssunnbup04_map_06june -nop

16. Query the session
	pbrun symrcopy -file ssunnbup04_map_06june query

### Once the copy completes

17. Terminate the session
	pbrun symrcopy -file ssunnbup04_map_06june  terminate -nop

18. Make the target devices ready.
	pbrun symdev -sid 2849 ready -file ssunnbup04_2849_tgtdevs -nop

19. Makesure that only devices from "New Frame" are visible to Host.

	## Devices from 2849 should be visible
	pbrun symmaskdb -sid 2849 -wwn 10000000c94cdbe6 list devs
	pbrun symmaskdb -sid 2849 -wwn 10000000c9504830 list devs

	## No devices from 418 and 1012 should be visible
	pbrun symmaskdb -sid 418 -wwn 10000000c94cdbe6 list devs
	pbrun symmaskdb -sid 418 -wwn 10000000c9504830 list devs
	pbrun symmaskdb -sid 1012 -wwn 10000000c94cdbe6 list devs
	pbrun symmaskdb -sid 1012 -wwn 10000000c9504830 list devs	
 
20. Ask platform to boot the server and do sanity check.

21. Create Sync/Async pair for "New devices" (If it is not done prior)

	###2849_pair_2770_3014
	62A 	62A
	62D	62D 
	636	636
	63B	63B
	640	640
	645	645
	64A	64A
	64F	64F
	654	654
	633	633
	659	659
	65E	65E
	663	663
	668	668
	630	630
	66D	66D
  ### For Sync leg
	pbrun symrdf -sid 2849 -rdfg 1 -file 2849_pair_2770_3014 create pair -type rdf1 -invalidate r2 -nop
	pbrun symrdf -sid 2849 -rdfg 1 -file 2849_pair_2770_3014 set mode acp_disk -nop
	pbrun symrdf -sid 2849 -rdfg 1 -file 2849_pair_2770_3014 est -nop
	pbrun symrdf -sid 2849 -rdfg 1 -file 2849_pair_2770_3014 que -i 5

  ###Once the status becomes "Synchronized" OR invalid tracks becomes less than 30000,Change the mode into Sync
	pbrun symrdf -sid 2849 -rdfg 1 -file 2849_pair_2770_3014 set mode  sync -nop

  ### For Async leg
	pbrun symrdf -sid 2849 -rdfg 5 list|grep -v -|grep ^0|awk '{print $1,$2}' >async_current
	pbrun symrdf -sid 2849 -f async_current -rdfg 5 disable 
	pbrun symrdf -sid 2849 -file async_current -rdfg 5 set mode acp_disk
 
	pbrun symrdf -sid 2849 -file 2849_pair_2770_3014 -rdfg 5 createpair -type rdf1 -invalidate r2
	pbrun symrdf -sid 2849 -file 2849_pair_2770_3014 -rdfg 5 set mode acp_disk  
	pbrun symrdf -sid 2849 -file 2849_pair_2770_3014 -rdfg 5 est  

  ###Once the status becomes "Synchronized", change the mode into Async
	pbrun symrdf  -sid 2849 -rdfg 5 list|grep -v -|grep ^0|awk '{print $1,$2}' >async_all 
	pbrun symrdf  -sid 2849 -file async_all -rdfg 5 set mode async 
	pbrun symrdf  -sid 2849 -file async_all -rdfg 5 enable
	
22. COB side configurartion
	a. Create mirror session between 2849_3014 new devices
	b. Mask BCVs to COB server.

23. After getting confirmation from platform , do cleanup activity 
	a. Removal of SRC devices from TGT FAs
	#418 devices to #2849 3aA/14aA
	pbrun symmask -sid 418 -wwn 5006048452a79042 -dir 7c -p 0 remove dev 47D,48B,495,490,49A,49F,4AE,4A9,483,4B3,486,4A4
	pbrun symmask -sid 418 -wwn 5006048452a7904d -dir 10c -p 0 remove dev 47D,48B,495,490,49A,49F,4AE,4A9,483,4B3,486,4A4

	#1012 Devices to #2849 3aA/14aA	
	pbrun symmask -sid 1012 -wwn 5006048452a79042 -dir 7a -p 0 remove dev 4E4,4DD,4E0
	pbrun symmask -sid 1012 -wwn 5006048452a7904d -dir 10a -p 0 remove dev 4E4,4DD,4E0

	b. Delete Sync/Async pair for 418 and 1012 devices
	
	c. Split HK R2-BCV mirror for 418_1205 and 1012_1102 devices
	
	d. Remove maskings for COB devices of old frames ( 418_1205 and 1012_1102 devices)
	
	e. Remove the FA-FA zoning between 418-2849 & 1012-2849

	f. Remove the zoning between Host WWN - 418/1012 FAs

	