ssunp64
Host WWNs
10000000c941f2b9	#655-8aA	#2246-8cA			
10000000c94726b1	#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 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 5006048c52a6f988 -dir 9a -p 0 add dev 2AD,2B5,299,29E,2A3,2A8,2B1,2B6,397,39C,422,427,42C,431,436,43A,43F,444,449,44E
	(Device 431 is not part of any VG as per INQ o/p. So I think no need to mask this device)

5. Mask the TGT devices to Host (Done)

	pbrun symmask -sid 2246 -wwn 10000000c941f2b9-dir 8c -p 0 add dev 92A,9FD,0A50,0A1A,0A1F,0A10,0A15,0A02,0A01,0A52,0A51,0A24,0A29,0A2E,0A4C,0A33,0A38,0A3D,0A42,0A47
	pbrun symmask -sid 2246 -wwn 10000000c94726b1 -dir 9c -p 0 add dev 92A,9FD,0A50,0A1A,0A1F,0A10,0A15,0A02,0A01,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 ssunp64_655_srcdevs_dg -type rdf1
	pbrun symld -sid 655 -g ssunp64_655_srcdevs_dg  add dev < 2AD & remaining devices also>
  ## Split the Sync pair of SRC devices	
	pbrun symrdf -sid 655 -g ssunp64_655_srcdevs_dg -rdfg 2 que
	pbrun symrdf -sid 655 -g ssunp64_655_srcdevs_dg -rdfg 2 split

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

10. Un-Mask the source devices from Host.

	#655 Source devices from host
	pbrun symmask -sid 655 -wwn 10000000c941f2b9 -dir 8a -p 0 remove dev 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 10000000c94726b1 -dir 9a -p 0 remove dev 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 ssunp64_655_srcdevs -nop
	##ssunp64_655_srcdevs (create all these files under 08June2008)
	2AD
	2B5
	299
	29E
	2A3
	2A8
	2B1
	2B6
	397
	39C
	422
	427
	42C
	431
	436
	43A
	43F
	444
	449
	44E
	
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 ssunp64_2246_tgtdevs -nop
	092A
	09FD
	0A50
	0A1A
	0A1F
	0A10
	0A15
	0A02
	0A01
	0A52
	0A51
	0A24
	0A29
	0A2E
	0A4C
	0A33
	0A38
	0A3D
	0A42
	0A47

13. Create Cold-Pull session between SRC-TGT devices
	pbrun symrcopy create -copy -name 08June2008 -pull -cold -file ssunp64_map_08june-nop
	### 08June_ssunp64_map
	
	#Control Device		Remote Device
	###############		#############
	symdev=2246:092A        symdev=655:2AD
	symdev=2246:0A01        symdev=655:2B5
	symdev=2246:0A1A        symdev=655:299
	symdev=2246:0A1F        symdev=655:29E
	symdev=2246:0A10        symdev=655:2A3
	symdev=2246:0A15        symdev=655:2A8
	symdev=2246:0A4C        symdev=655:2B1
	symdev=2246:0A50        symdev=655:2B6
	symdev=2246:0A52        symdev=655:397
	symdev=2246:0A51        symdev=655:39C
	symdev=2246:0A24        symdev=655:422
	symdev=2246:0A29        symdev=655:427
	symdev=2246:0A2E        symdev=655:42C
	symdev=2246:0A02        symdev=655:436
	symdev=2246:0A33        symdev=655:43A
	symdev=2246:0A38        symdev=655:43F
	symdev=2246:0A3D        symdev=655:444
	symdev=2246:0A42        symdev=655:449
	symdev=2246:0A47        symdev=655:44E

14. Start "Copy" session by activating the session

	pbrun symrcopy activate -file ssunp64_map_08june-nop

15. Set the pace to 2

	pbrun symrcopy set pace 2 -file ssunp64_map_08june -nop

16. Query the session
	pbrun symrcopy -file ssunp64_map_08june query

### Once the copy completes

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

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

	## No devices from 655 should be visible
	pbrun symmaskdb -sid 655 -wwn 10000000c941f2b9 list devs
	pbrun symmaskdb -sid 655 -wwn 10000000c94726b1 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
	92A	92A
	9FD	9FD
	0A50	0A50
	0A1A	0A1A
	0A1F	0A1F
	0A10	0A10
	0A15	0A15
	0A02	0A02
	0A01	0A01
	0A52	0A52
	0A51	0A51
	0A24	0A24
	0A29	0A29
	0A2E	0A2E
	0A4C	0A4C
	0A33	0A33
	0A38	0A38
	0A3D	0A3D
	0A42	0A42
	0A47	0A47

  ### 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 8a -p 0 remove dev 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 5006048c52a6f988 -dir 9a -p 0 remove dev 2AD,2B5,299,29E,2A3,2A8,2B1,2B6,397,39C,422,427,42C,431,436,43A,43F,444,449,44E

	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

	