ssunnbup05
Host WWNs
10000000c9507184	#418-7cA	#1012-7aA	#2849-3aA
10000000c9504aee	#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

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 480
	pbrun symmask -sid 418 -wwn 5006048452a7904d -dir 10c -p 0 add dev 480

5. Mask the TGT devices to Host (Make sure cluster devices also masked) 

	pbrun symmask -sid 2849 -wwn 10000000c9507184 -dir 3a -p 0 add dev 624,627,636,63B,640,645,64A,64F,654,633,659,65E,663,668,630,66D
	pbrun symmask -sid 2849 -wwn 10000000c9504aee -dir 14a -p 0 add dev 624,627,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 ssunnbup05_418 -type rdf1
	pbrun symld -sid 418 -g ssunnbup05_418 add dev 480
  ## Split the Sync pair of SRC devices	
	pbrun symrdf -sid 418 -g ssunnbup05_418 -rdfg 1 que
	pbrun symrdf -sid 418 -g ssunnbup05_418 -rdfg 1 split

	pbrun symdg create ssunnbup05_2849 -type rdf1
	pbrun symld -sid 2849 -g ssunnbup05_2849 add dev 624 & 627
	
  ## Split the Sync pair of TGT devices (If already pair is created for new devices)
	pbrun symrdf -sid 2849 -g ssunnbup05_2849 -rdfg 1 que
	pbrun symrdf -sid 2849 -g ssunnbup05_2849 -rdfg 1 split
  ## Split the Async pair of TGT devices (If already pair is created for new devices)
	pbrun symrdf -sid 2849 -g ssunnbup05_2849 -rdfg 5 que
  ## (We need to follow Async steps like changing mode of rdfg to acp ..) before split
	pbrun symrdf -sid 2849 -g ssunnbup05_2849 -rdfg 5 split

10. Un-Mask the source devices from Host.(Include cluster disks also)

	#418 Source devices from host
	pbrun symmask -sid 418 -wwn 10000000c9507184 -dir 7c -p 0 remove dev 480,47D,48B,495,490,49A,49F,4AE,4A9,483,4B3,486,4A4
	pbrun symmask -sid 418 -wwn 10000000c9504aee -dir 10c -p 0 remove dev 480,47D,48B,495,490,49A,49F,4AE,4A9,483,4B3,486,4A4
	
	#1012 Source devices from host
	pbrun symmask -sid 1012 -wwn 10000000c9507184 -dir 7a -p 0 remove dev 4E4,4DD,4E0
	pbrun symmask -sid 1012 -wwn 10000000c9504aee -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 ssunnbup05_418_srcdevs -nop
	##ssunnbup05_418_srcdevs (create all these files under 06June2008-OR)
	480
	
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 ssunnbup05_2849_tgtdevs -nop
	624
	627

13. Create Cold-Pull session between SRC-TGT devices
	pbrun symrcopy create -copy -name 06June2008 -pull -cold -file ssunnbup05_map_06june -nop
	### ssunnbup05_map_06june
	
	#Control Device		Remote Device
	###############		#############
	symdev=2849:624 	symdev=418:480

14. Start "Copy" session by activating the session

	pbrun symrcopy activate -file ssunnbup05_map_06june -nop

15. Set the pace to 2

	pbrun symrcopy set pace 2 -file ssunnbup05_map_06june -nop

16. Query the session
	pbrun symrcopy -file ssunnbup05_map_06june query

### Once the copy completes

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

18. Make the target devices ready.
	pbrun symdev -sid 2849 ready -file ssunnbup05_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 10000000c9507184 list devs
	pbrun symmaskdb -sid 2849 -wwn 10000000c9504aeelist devs

	## No devices from 418 should be visible
	pbrun symmaskdb -sid 418 -wwn 10000000c9507184 list devs
	pbrun symmaskdb -sid 418 -wwn 10000000c9504aeelist 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
	624 	624
	627	627 
	
  ### 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 480
	pbrun symmask -sid 418 -wwn 5006048452a7904d -dir 10c -p 0 remove dev 480

	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

	