This post is going to provide the basic day to day task in the FC SAN Fabric. The zoning examples shown below are from the Cisco MDS family of switches.
The below example is configuring a multiple target, multiple initiator scenario, including two HBA’s from a storage (target) array and two HBA’s from a Server (initiator).
Configuration example:
Creating a Zone:
configure terminal
zone name “CiscoUSC_NetApp” vsan “100”
– Note: text in between quotation marks are an example, please add your specific information and remove the quotation marks before pressing enter.
Adding members to the Zone:
member pwwn 50:00:00:00:00:0a – Note: this member is an example of your Storage Array
member pwwn 50:00:00:00:00:0b – Note: this member is an example of your Storage Array
member pwwn 20:00:00:00:00:0a – Note: this member is an example of your Cisco USC server
member pwwn 20:00:00:00:00:0b – Note: this member is an example of your Cisco USC server
– Note: Once all of your members are added press enter, exit
Creating a Zoneset:
zoneset name “Zone_A” vsan “100”
Adding Zones to the Zoneset
member “CiscoUSC_NetApp”
Activating the Zoneset
zoneset activate “CiscoUSC_NetApp” vsan “100”
Commits changes made to the zone
zone commit vsan “100”
Below are some commands to verify the above zoning configurations
show flogi database – shows all of the HBA’s physically connected to the Fabric
show zone active – shows the active zones
sh zoneset active – shows the active zoneset
sh run zone – shows the current zones configured in the running config
Additional Notes:
If you ever run into a lock error message when attempting to commit configurations, this is because enhanced mode is enabled on the switch.
The below command should remove the lock and you will be able to continue
unlock commands:
no zone commit vsan – if you are administrator that failed to previously commit your changes
clear zone lock – if you have no idea who failed to commit the previous changes
Removing zones and zonesets are simple also. Just like every other Cisco device “no” in front of your command will remove the configuration
example:
no member pwwn 50:00:00:00:00:0a – removes a member in a zone
no zone “zonename” – removes the zone from the zoneset, remember to be in the context of the zoneset.