ssunp89
Host WWNs

10000000c967ed2c	#655-8aA	#2246-8cA			
10000000c967ef70	#655-9aA	#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.

	#655 FA-8aA	500604844a3737c7 with 	#2246 FA-8cA	5006048c52a6f987 	
	#655 FA-9aA	500604844a3737c8 with 	#2246 FA-9cA	5006048c52a6f988

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

	#655 devices to #2246 8cA/9cA
	pbrun symmask -sid 655 -wwn 5006048c52a6f987 -dir 8a -p 0 add dev 501,506,50B
	pbrun symmask -sid 655 -wwn 5006048c52a6f988 -dir 9a -p 0 add dev 501,506,50B

5. Mask the TGT devices to Host (Mask cluster devices of ssunp64 also)

	pbrun symmask -sid 2246 -wwn 10000000c967ed2c-dir 8c -p 0 add dev 558,55D,562,0A50,0A1A,0A1F,0A10,0A15,0A52,0A51,0A24,0A29,0A2E,0A4C,0A33,0A38,0A3D,0A42,0A47
	pbrun symmask -sid 2246 -wwn 10000000c967ef70 -dir 9c -p 0 add dev 558,55D,562,0A50,0A1A,0A1F,0A10,0A15,0A52,0A51,0A24,0A29,0A2E,0A4C,0A33,0A38,0A3D,0A42,0A47
	
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 655 create ssunp89_655_srcdevs_dg -type rdf1
	pbrun symld -sid 655 -g ssunp89_655_srcdevs_dg  add dev < 501 & remaining devices also>
  ## Split the Sync pair of SRC devices	
	pbrun symrdf -sid 655 -g ssunp89_655_srcdevs_dg -rdfg 2 que
	pbrun symrdf -sid 655 -g ssunp89_655_srcdevs_dg -rdfg 2 split

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

10. Un-Mask the source devices from Host.

	#655 Source devices from host
	pbrun symmask -sid 655 -wwn 10000000c967ed2c -dir 8a -p 0 remove dev 501,506,50B,2AD,2B5,299,29E,2A3,2A8,2B1,2B6,397,39C,422,427,42C,431,436,43A,43F,444,449,44E
	pbrun symmask -sid 655 -wwn 10000000c967ef70 -dir 9a -p 0 remove dev 501,506,50B,2AD,2B5,299,29E,2A3,2A8,2B1,2B6,397,39C,422,427,42C,431,436,43A,43F,444,449,44E
	
11. Make the Source devices "Write_Disable"  (Pls. be careful when executing this command.Crossverify Frame ID and devices)
	
	pbrun symdev -sid 655 write_disable -file ssunp89_655_srcdevs -nop
	##ssunp89_655_srcdevs (create all these files under 08June2008)
	501
	506
	50B

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 ssunp89_2246_tgtdevs -nop
	0558
	055D
	0562

13. Create Cold-Pull session between SRC-TGT devices
	pbrun symrcopy create -copy -name 08June2008 -pull -cold -file 08June_ssunp89_map -nop
	### 08June_ssunp89_map
	
	#Control Device		Remote Device
	###############		#############
	symdev=2246:558        symdev=655:501
	symdev=2246:55D        symdev=655:506
	symdev=2246:562        symdev=655:50B

14. Start "Copy" session by activating the session

	pbrun symrcopy activate -file 08June_ssunp89_map -nop

15. Set the pace to 2

	pbrun symrcopy set pace 2 -file 08June_ssunp89_map -nop

16. Query the session
	pbrun symrcopy -file 08June_ssunp89_map query

### Once the copy completes

17. Terminate the session
	pbrun symrcopy -file 08June_ssunp89_map  terminate -nop

18. Make the target devices ready.
	pbrun symdev -sid 2246 ready -file ssunp89_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 10000000c967ed2c list devs
	pbrun symmaskdb -sid 2246 -wwn 10000000c967ef70 list devs

	## No devices from 655 should be visible
	pbrun symmaskdb -sid 655 -wwn 10000000c967ed2c list devs
	pbrun symmaskdb -sid 655 -wwn 10000000c967ef70 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
	0558	558
	055D	55D
	0562	562

  ### 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

	#655 devices from #2246 8cA/9cA
	pbrun symmask -sid 655 -wwn 5006048c52a6f987 -dir 7c -p 0 remove dev 501,506,50B
	pbrun symmask -sid 655 -wwn 5006048c52a6f988 -dir 10c -p 0 remove dev 501,506,50B

	b. Delete Sync/Async pair for 655_1450_1389 devices
	
	c. Split HK R2-BCV mirror for 1389 devices
	
	d. Remove COB masking for old frames(1389 R2-BCV devices)

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

	f. Remove the zoning between Host WWN - 655 FAs / COB host- 1389 FAs

	