Thursday, November 14, 2019

SAN Cisco: Fiber Channel Zoning on Cisco MDS Switches with examples



I am a seasonal IT professional with a background on VMware, Storage, Backup, Unix, and Project liaison experience. I have held positions working on technologies like Netapp, EMC, IBM, Cohesity storage and Backup supporting SAN and NAS Environment. I have held roles of IT administrator, engineer, team lead and project liaison. This blog is for Storage and Backup Professionals, and content are derived from vendor as well as my own experience.
............................................................................................................................................................................Configure SAN FC zoning in Cisco MDS SAN Switches

Every changes requires configuration mode.

Step 1:

Log into SAN Switch by ssh’ing.
switch# config t
Enters configuration mode.

Step 2:

Create a Zone in a vsan with vsan-id specified
switch(config)# zone name Zone1 vsan 3
switch(config-zone)#
switch(config-zone)# member pwwn 10:00:00:23:45:67:89:ab (Member pwwn, if pwwn is used)
switch(config-zone)# member fwwn 10:01:10:01:10:ab:cd:ef (Member wwn, if wwn is used)
switch(config-zone)# member fcid 0xce00d1 (Member fcid, if fcid is used)

Step 2a. However for management simplicity, it is efficient, creating device-alias or fc-alias is helpful.

Switch#config t
Switch (config)# device-alias database
Switch (Config-dev-alias-database)# device-alias name hostA_portA pwwn 10:00:00:23:45:67:89:ab
Switch (Config-dev-alias-database)# device-alias name stroageA_portA pwwn 10:00:00:23:45:65:89:yy
Switch (Config-dev-alias-database)#dev commit
Switch(Config)# exit

Step 2b. Now add newly created device_alias into zone.

switch(config)# zone name Zone2 vsan 3
switch(config-zone)# member dev-alias hostA_portA
switch(config-zone)# member dev-alias storageA_portA
switch(config-zone)# exit

Step 3: Create Zoneset (if not present) in specific VSAN. IN this example we assume zoneset is  present.

switch# config t
switch(config)# zoneset name Zoneset2 vsan 3
switch(config-zoneset)#
switch(config-zoneset)# member Zone2
switch(config-zoneset)# exit

Step 4: Activate Zoneset to make newly added members active and be able to communicate.

switch# config t
switch(config)# zoneset activate name Zoneset2 vsan 3

Step 5: Save changes made.

switch(config)# copy running-config startup-config

<< If you want to disable entire zoneset, follow below. But Be careful, it will deactivate all exising members that may already in production and is working>>
switch(config)# no zoneset activate name Zoneset1 vsan 3



Few Helpful Display Function within SAN Switch can be found at other blog link here:

https://www.blogger.com/blogger.g?blogID=3972111459361070478#editor/target=post;postID=6438659679711440104;onPublishedMenu=allposts;onClosedMenu=allposts;postNum=0;src=postname



You are Welcome :)
Source: www.cisco.com

No comments:

Post a Comment