Fibre Channel (SAN)

Name server and Port based zoning example

by Hemant on ‎06-19-2010 05:06 AM (30,151 Views)

Simple way to zoning
------------------------------------
For server tango , storage alpha and tape delta for Dual  new fabric .


Name server zoning


Fab-1
----
alicreate"TANGO_HBA1", "wwn of tango HBA1"
alicreate"TANGO_HBA3", "wwn of tango HBA3"
alicreate"ALPHA_CNTLA", "wwn of alpha cntl A"
alicreate"DELTA_TAPE1", "wwn of Delta tape1"
zonecreate"TANGO_ALPHA", "TANGO_HBA1; ALPHA_CNTLA"
zonecreate "TANGO_TAPE", "TANGO_HBA3; DELTA_TAPE1"
cfgcreate "CFG1","TANGO_ALPHA; TANGO_TAPE"(if you are creating brand new Fabric)or

cfgadd "CFG1","TANGO_ALPHA; TANGO_TAPE"( if you have already created config file)
cfgsave
cfgenable "CFG1"

Fab-2
------
alicreate"TANGO_HBA2", "wwn of tango HBA2"
alicreate"TANGO_HBA4", "wwn of tango HBA4"
alicreate"ALPHA_CNTLB", "wwn of alpha cntl B"
alicreate"DELTA_TAPE2", "wwn of Delta tape2"
zonecreate"TANGO_ALPHA", "TANGO_HBA2; ALPHA_CNTLB"
zonecreate "TANGO_TAPE", "TANGO_HBA4; DELTA_TAPE2"
cfgcreate "CFG2","TANGO_ALPHA; TANGO_TAPE"(if you are creating brand new Fabric)or

cfgadd "CFG2","TANGO_ALPHA; TANGO_TAPE"( if you have already created config file)
cfgsave
cfgenable "CFG2"
------------------------------------------------------------------------------------


Portbased zoning:

Fab-1
----
zonecreate"TANGO_ALPHA", "5,1; 5,2"( 5 is the domain ID of the SW, 1 is the port no of HBA, 2 is the port no of storage contl)
zonecreate "TANGO_TAPE", "5,1; 5,3"( 5 is the domain ID of the SW, 1 is the port no of HBA, 2 is the port no of tape)
cfgcreate "CFG1","TANGO_ALPHA; TANGO_TAPE"(if you are creating brand new Fabric)or

cfgadd "CFG1","TANGO_ALPHA; TANGO_TAPE"( if you have already created config file)
cfgsave
cfgenable "CFG1"

Fab-2
------
zonecreate"TANGO_ALPHA", "6,1; 6,2"( 6 is the domain ID of the SW, 1 is the port no of HBA, 2 is the port no of storage contl)
zonecreate "TANGO_TAPE", "6,1; 6,3"( 6 is the domain ID of the SW, 1 is the port no of HBA, 2 is the port no of tape)
cfgcreate "CFG2","TANGO_ALPHA; TANGO_TAPE"(if you are creating brand new Fabric)or

cfgadd "CFG2","TANGO_ALPHA; TANGO_TAPE"( if you have already created config file)
cfgsave
cfgenable "CFG2"

------------------------------------------------------------------------------------

Best Practice:

Always use single initiator to single target zone , in case of tape drives

never make single initiator to more than 5 target zones.

 

To add a new HBA's wwn  if TANGO_HBA1 is bad:

 

aliadd "TANGO_HBA1", "wwn of the new HBA"

aliremove "TANGO_HBA1", "wwn of the old HBA"

cfgsave

cfgenbale "CFG1"

 

To add/remove a member from the zone

 

zoneadd "zone name", " member alias"

zoneremove "zone name", " member alias"

cfgsave

cfgenable "CFG1"

 

To delete "TANGO_TAPE" zone from Fab-1

 

zonedelete "TANGO_TAPE"

cfgremove "CFG1", "TANGO_TAPE"

cfgsave

cfgenable "CFG1"