Command Execution Script by Ephraim Iverson, Storage Architect
*** EMC Storage frame targeted HOST device side work
1.) Verify cabling request with facilities, and request cables to be moved
2.) Confirm HBA WWPN online in SAN port per design and activate pre-staged SAN zoning of HOST to SVC
3.) Mask targeted Device to SVC port. = = => Use command line( Symcli ) for masking.
symmask -sid "Frame_ID" –wwn xxxx add dev xxxx –dir 8b –p 1 ===> See
Host LUN mapping for all detail
symmask -sid "Frame_ID" –wwn xxxx add dev xxxx –dir 9B –p 1 ===> See Host
LUN mapping for all detail
symmask -sid "Frame_ID" refresh
Notes Yes, mask all 16 WWPN per each fabric to every devices, See tab EMC_Symcli for detail
SPECIAL UNMASKING NEED for VSCSI Client since we are only moving client buy client.
* * * * * = = = > See tab Specail UNMasK for the detail
1.) Unmask SAN LUN from Current/OLD HBA WWPN
*** SVC targeted HOST LUN side work
1.) start putty session in to SVC
a.) List mdisk already on this svc ===> svcinfo lsmdisk -filtervalue name=mdisk*
b.) note down all existing mdisk name
c.) discover the new mdisk ===> svctask discovermdisk
d.) Document the unmanage Mdisk name into the Host_LUN Mapping tab
NOTES PLEASE MAKE SURE YOU UPDATE HOST/SERVER's CLI_SCRIPT ACCORDINGLY
2.) Execute Host/Server's SVC CLI Script ===> See tab " EMC_CLI_Script " for detail
Here is a sample only of the SVC CLI script.
#Create host entry with dummy WWPN
#
svctask mkhost -name server01 -force -hbawwpn 2000000000000000 -mask 1111
#Create Image Mode MDG
#
svctask mkmdiskgrp -name IMGGRP -ext 512
#Create FC Consistency Group
#
svctask mkfcconsistgrp -name SRV01_FCG -autodelete
#Create Image Mode VDISK from unmanaged MDISK, FC Targets, FCunmap, and VDISK-host unmap
#
svctask mkvdisk -mdiskgrp IMGGRP -iogrp 1 -vtype image -mdisk mdisk23 -name SRV01_IMG_004
svctask addvdiskcopy -mdiskgrp T02G004DS8VA100 SRV01_IMG_004
svctask splitvdiskcopy -copy 1 -iogrp 0 -name server01_004 -force SRV01_IMG_004
svctask mkfcmap -source SRV01_IMG_004 -target server01_004 -name SRV01_FMP_004 -consistgrp SRV01_FCG -copyrate 75 -autodelete
svctask mkvdiskhostmap -host server01 server01_004
#Prep and Start FC
#
svctask startfcconsistgrp -prep SRV01_FCG
#Add actual WWPNs and remove dummy to effectively unmap all 30 luns in single step.
svctask addhostport -force -hbawwpn <WWPN> server01
svctask rmhostport -hbawwpn 2000000000000000 server01
NOTES ONCE DONE, LET SA COMPLETE THEIR WORK AND SCAN FOR THE SAN LUN
*** BACKOUT PLAN!
1.) Disable server access to SAN on SVC
2.) Remask SAN LUN to Current/OLD HBA
*** VERFICATION
1) To check to see if host was created run
svcinfo lshost [hostname]
2) To check to see if mdiskgroup was created
svcinfo lsmdiskgrp
3) To check to see if image vdisks were created
svcinfo lsvdisk -filtervalue type=image
4) To check to see if target vdisks were created
svcinfo lsvdisk -filtervalue name=[targetvdisk]*
5) To check to see if flashcopy mappings were created/check status
svcinfo lsfcmap
6) To check to see if flashcopy consistency group was created
svcinfo lsfcconsistgrp
7) To check discovery status of detectmdisk
svcinfo lsdiscoverystatus