Cisco MDS Zoning Commands

The RoundTower Demonstration Lab uses re-purposed Cisco UCS, Cisco MDS, Dell-EMC VNX and XtremIO storage. The next-generation HCI infrastructure resides in the Sandbox portion of the lab for performance testing and customer POCs. I do not touch the MDS often and each time I have to perform administrator tasks, I search for the same commands, so here they are in one place.

I normally prepare the command set using a text editor and QA the configuration before I paste it into the terminal. I also make a copy of the configuration before I make any changes.

Step-1 – Define Device-Aliases

  • SSH into the MDS A as “admin”
  • Type “Configure Terminal”
  • Type “device-alias database”
  • Type “device-alias name <device name> pwwn <wwn>”
  • Repeat for each new device you want to zone.
  • Type “exit”
  • Type “device-alias commit”
  • Remember to do the same on MDS B.

Step-2 – Define Zone Names

  • Type “zone name <HOSTNAME-HBA#_ARRAYNAME-SP#-PORT#> vsan <VSAN#>”
  • Type “member device-alias <device name HOSTNAME-HBA#>”
  • Type “member device-alias <device name ARRAYNAME-SP#-PORT#>”
  • Repeat for each new Initiator and Target pair you want to zone.
  • Remember to do the same on MDS B.

Step-3 – Add Zone Names to the Zone Set

  • Type “zoneset name <FABRIC NAME> vsan <VSAN#>”
  • Repeat for each new zone defined in Step 2.
  • Type “exit”
  • Type “zoneset activate name <FABRIC NAME> vsan <VSAN#>”
  • Type “Control-Z” to exit configuration mode.
  • Type “copy running-config startup-config” to save the configuration.
  • Remember to do the same on MDS B.
  • Your initiators should now be able to discover your storage targets.

2 Replies to “Cisco MDS Zoning Commands”

  1. Scott Harney says:

    If you need to do this a lot or migrate many zones this may help :

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Website Built with
%d bloggers like this: