ssunwbp16
Host WWNs
10000000c957b91c	#320-3cA	#2246-8cA	
10000000c957b634	#320-14cA	#2246-9cA	

1. Identify Target frame/FAs. Done

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. Done

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

	#320 FA-3cA 	5006048c48586002 with 	#2246 FA-8cA 	5006048c52a6f987	Done
	#320 FA-14cA 	5006048c4858600d with 	#2246 FA-9cA 	5006048c52a6f988	Done

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

	#320 devices to #2246 8cA/9cA
	pbrun symmask -sid 320 -wwn 5006048c52a6f987 -dir 3c -p 0 add dev 063,068,0D5,0D6,139,2CA
	pbrun symmask -sid 320 -wwn 5006048c52a6f988 -dir 14c -p 0 add dev 063,068,0D5,0D6,139,2CA

5. Mask the TGT devices to Host (Done)

	pbrun symmask -sid 2246 -wwn 10000000c957b91c -dir 8c -p 0 add dev 08F8,08FD,08F5,08F6,08F7,0902
	pbrun symmask -sid 2246 -wwn 10000000c957b634 -dir 9c -p 0 add dev 08F8,08FD,08F5,08F6,08F7,0902
	
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 -sid 320 create ssunwbp16_320_srcdevs_dg -type rdf1
	pbrun symld -sid 320 -g ssunwbp16_320_srcdevs_dg  add dev <063  & remaining devices also>
  ## Split the Sync pair of SRC devices	
	pbrun symrdf -sid 320 -g ssunwbp16_320_srcdevs_dg -rdfg 1 que
	pbrun symrdf -sid 320 -g ssunwbp16_320_srcdevs_dg -rdfg 1 split

	pbrun symdg -sid 2246 create ssunwbp16_2246_tgtdevs_dg
	pbrun symld -sid 2246 -g ssunwbp16_2246_tgtdevs_dg add dev <8F8 & remaining devices also>
	
  ## Split the Sync pair of TGT devices (If already pair is created for new devices)
	pbrun symrdf -sid 2246 -g ssunwbp16_2246_tgtdevs_dg -rdfg 2 que
	pbrun symrdf -sid 2246 -g ssunwbp16_2246_tgtdevs_dg -rdfg 2 split
  ## Split the Async pair of TGT devices (If already pair is created for new devices)
	pbrun symrdf -sid 2246 -g ssunwbp16_2246_tgtdevs_dg -rdfg 8 que
	(We need to follow Async steps like changing mode of rdfg to acp ..)
	pbrun symrdf -sid 2246 -g ssunwbp16_2246_tgtdevs_dg -rdfg 8 split

10. Un-Mask the source devices from Host.

	#320 Source devices from host
	pbrun symmask -sid 320 -wwn 10000000c957b91c -dir 3c -p 0 remove dev 063,068,0D5,0D6,139,2CA
	pbrun symmask -sid 320 -wwn 10000000c957b634 -dir 14c -p 0 remove dev 063,068,0D5,0D6,139,2CA
	
11. Make the Source devices "Write_Disable"  (Pls. be careful when executing this command.Crossverify Frame ID and devices)
	
	pbrun symdev -sid 320 write_disable -file ssunwbp16_320_srcdevs -nop
	##ssunwbp16_320_srcdevs (create all these files under 08June2008)
	063
	068
	0D5
	0D6
	139
	2CA
	
12. Make the target devices "Not_Ready" (Pls. be careful when executing this command.Crossverify Frame ID and devices)
	pbrun symdev -sid 2246 not_ready -file ssunwbp16_2246_tgtdevs -nop
	8F8
	8FD
	8F5
	8F6
	8F7
	902
13. Create Cold-Pull session between SRC-TGT devices
	pbrun symrcopy create -copy -name 08June2008 -pull -cold -file ssunwbp16_map_08june  -nop
	### ssunwbp16_map_08june 
	
	#Control Device		Remote Device
	###############		#############
	symdev=2246:8F8 	symdev=320:063
	symdev=2246:8FD 	symdev=320:068
	symdev=2246:8F5 	symdev=320:0D5
	symdev=2246:8F6 	symdev=320:0D6
	symdev=2246:8F7		symdev=320:139
	symdev=2246:902 	symdev=320:2CA

14. Start "Copy" session by activating the session

	pbrun symrcopy activate -file ssunwbp16_map_08june  -nop

15. Set the pace to 2

	pbrun symrcopy set pace 2 -file ssunwbp16_map_08june  -nop

16. Query the session
	pbrun symrcopy -file ssunwbp16_map_08june  query

### Once the copy completes

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

18. Make the target devices ready.
	pbrun symdev -sid 2246 ready -file ssunwbp16_2246_tgtdevs -nop

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

	## Devices from 2246 should be visible
	pbrun symmaskdb -sid 2246 -wwn 10000000c957b91c list devs
	pbrun symmaskdb -sid 2246 -wwn 10000000c957b634 list devs

	## No devices from 320 should be visible
	pbrun symmaskdb -sid 320 -wwn 10000000c957b91c list devs
	pbrun symmaskdb -sid 320 -wwn 10000000c957b634 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)

	###2246_pair_2337_2340
	8F8	8F8
	8FD	8FD
	8F5	8F5
	8F6	8F6
	8F7	8F7
	902	902

  ### For Sync leg
	pbrun symrdf -sid 2246 -rdfg 2 -file 2246_pair_2337_2340 create pair -type rdf1 -invalidate r2 -nop
	pbrun symrdf -sid 2246 -rdfg 2 -file 2246_pair_2337_2340 set mode acp_disk -nop
	pbrun symrdf -sid 2246 -rdfg 2 -file 2246_pair_2337_2340 est -nop
	pbrun symrdf -sid 2246 -rdfg 2 -file 2246_pair_2337_2340 que -i 5

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

  ### For Async leg
	pbrun symrdf -sid 2246 -rdfg 8 list|grep -v -|grep ^0|awk '{print $1,$2}' >async_current
	pbrun symrdf -sid 2246 -f async_current -rdfg 8 disable 
	pbrun symrdf -sid 2246 -file async_current -rdfg 8 set mode acp_disk

 	pbrun symrdf -sid 2246 -file 2246_pair_2337_2340 -rdfg 8 createpair -type rdf1 -invalidate r2
	pbrun symrdf -sid 2246 -file 2246_pair_2337_2340 -rdfg 8 set mode acp_disk  
	pbrun symrdf -sid 2246 -file 2246_pair_2337_2340 -rdfg 8 est  

  ###Once the status becomes "Synchronized", change the mode into Async
	pbrun symrdf  -sid 2246 -rdfg 8 list|grep -v -|grep ^0|awk '{print $1,$2}' >async_all 
	pbrun symrdf  -sid 2246 -file async_all -rdfg 8 set mode async 
	pbrun symrdf  -sid 2246 -file async_all -rdfg 8 enable
	

22. COB side configurartion
	a. Create mirror session between 2246_2340 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

	#320 devices from #2246 8cA/9cA
	pbrun symmask -sid 320 -wwn 5006048c52a6f987 -dir 7c -p 0 remove dev 063,068,0D5,0D6,139,2CA
	pbrun symmask -sid 320 -wwn 5006048c52a6f988 -dir 10c -p 0 remove dev 063,068,0D5,0D6,139,2CA

	b. Delete Sync/Async pair for 320_328_1517 devices
	
	c. Split HK R2-BCV mirror for 320_1517 devices

	d. Remove maskings for COB devices of old frames (320_1517 devices)

	e. Remove the FA-FA zoning between 320-2246 

	f. Remove the zoning between Host WWN - 320 FAs/COB Host-1517 FAs
	