We had discussed zoning in Cisco switch recently, in one of our posts. Now we will discuss the same on a Brocade switch via CLI. As we already discussed, the 3 components (zones, aliases and zoneset) remains the core here also. For reading bit more on this, you may read the previous post.
Now let’s directly come in to the commands for various steps.
We have the new HBA connected to the switch, we can ensure the successful connectivity by running switchshow command. This will show all the ports and the connected device WWNs, you can check the port number if you are aware of, or by finding the WWN (you may do a grep for the WWN).
Else if you are not aware of the switch and port on fabric on which the HBA is attached to, you may run nodefind. nodefind 10:xx:xx:xx:xx:xx:xx:01 will list the port details.
Now we can create the alias for the HBA (BForum_HBA1) and the storage port (VNX_SPA3). Below are the commands,
For adding a WWN to an existing alias (adding a WWN – 10:xx:xx:xx:xx:xx:xx:02 to the alias BForum_HBA2 for example) you may run,
Now we will be creating the zone for the HBA and storage port,
We can add an alias to an existing zone by running the zoneadd command in similar way as we used aliadd command.
We can create zone config with the below command. This will add the zone to the cfg too..
we should use the cfgadd command to add a new zone to an existing cfg as shown below,
Thus we have the zones created and added to the (existing/new) config. Now we should save the config to memory to ensure this will be loaded in the next reboot of the switch also. The cfgsave command will do it for us.
We can now enable the zone config to make it in effect.
Yes we are all set. The server and storage now should be able to communicate. Some other useful commands are,
cfgshow BForum_SAN1_CFG #Shows the config BForum_SAN1_CFG in detail
cfgdisable BForum_SAN1_CFG #Disables the config BForum_SAN1_CFG
cfgremove “BForum_SAN1_CFG”,”BForum_HBA1_VNX_SPB2” #Removes the zone BForum_HBA1_VNX_SPB2 from config BForum_SAN1_CFG
cfgactvshow #Shows the current active config
alishow BForum_HBA1 #Shows the alias BForum_HBA1
zoneshow BForum_HBA1_VNX_SPA3 #Shows the zone BForum_HBA1_VNX_SPA3 details
More in coming posts. You may click here for SAN switch related posts. Thanks for reading..