ADVERTISEMENT

CISCO MDS Zoning Quick Reference Guide

Reference guide for performing the Zoning in CISCO MDS Environment by using Command Line Interface.

Cisco MDS Zoning Setup

Diagram-1

In an existing setup, front end ports of VMax3 array(VMAX1234) are connected to 2 separate SAN Switches. FA ports 1D:04 and 2D:04 are connected SWITCH_A and 3D:04 and 4D:04 connected to SWITCH_B for reduncy on the fabric level. Switch ports, where the FA ports are connected in SWITCH_A are part of VSAN 200( Fabric A ) and in SWITCH_B( Fabric B) it is VSAN 400.

ADVERTISEMENT

Available Information:

VSAN Number( Fabric A )200
HBA_1 PWWN10:00:00:00:00:00:00:01
FA_1 PWWN50:00:00:00:00:00:00:01
FA_2 PWWN50:00:00:00:00:00:00:02
VSAN Number( Fabric B )400
HBA_2 PWWN10:00:00:00:00:00:00:02
FA_3 PWWN50:00:00:00:00:00:00:03
FA_4 PWWN50:00:00:00:00:00:00:04

Creation of new Zone in active Zoneset

Requirement: Perform Zoning and enable the paths between SERVER001 HBA ports and VMAX1234 FA Ports. Server is physically cabled to the switches: HBAs are conected to switch port FC1/10 in both switches.

Following steps and commands will be executed on Switch_A.

1

Find the active Zoneset of VSAN 200

Below command will filter out the zoneset name from the active zoneset information.

Switch_A# show zoneset active vsan 200 | include zoneset
zoneset name ZS_PRD_A vsan 200
switch_A#

So we have the active zoneset name : ZS_PRD_A

2

Create the Zone and add Port WWNs as members

Switch_A# config terminal
Switch_A(config)# zone name Z_SERVER001_HBA1_VMAX1234_FA1_FA2 vsan 200
Switch_A(config-zone)# member pwwn 10:00:00:00:00:00:00:01
Switch_A(config-zone)# member pwwn 50:00:00:00:00:00:00:01
Switch_A(config-zone)# member pwwn 50:00:00:00:00:00:00:02
Switch_A(config-zone)# exit
Switch_A(config)#

3

Add Zone to the active Zoneset.

Switch_A(config)# zoneset name ZS_PRD_A vsan 200
Switch_A(config-zoneset)# member Z_SERVER001_HBA1_VMAX1234_FA1_FA2
Switch_A(config-zoneset)# exit
Switch_A(config)#

4

Activate Zoneset and Commit changes.

Switch_A(config)# zoneset activate name ZS_PRD_A vsan 200
Switch_A(config)# zone commit vsan 200
Switch_A(config)# zoneset distribute full vsan 200
Switch_A(config)# copy running-config startup-config
Switch_A(config)# end
Switch_A#

The same steps are repeated for Switch_B too.

5

Find the active Zoneset of VSAN 400

Switch_B# show zoneset active vsan 400 | include zoneset
zoneset name ZS_PRD_B vsan 400
Switch_B#

Active zoneset name : ZS_PRD_B

6

Create the Zone and add Port WWNs as members

Switch_B# config terminal
Switch_B(config)# zone name Z_SERVER001_HBA2_VMAX1234_FA3_FA4 vsan 400
Switch_B(config-zone)# member pwwn 10:00:00:00:00:00:00:02
Switch_B(config-zone)# member pwwn 50:00:00:00:00:00:00:03
Switch_B(config-zone)# member pwwn 50:00:00:00:00:00:00:04
Switch_B(config-zone)# exit
Switch_B(config)#

7

Add Zone to the active Zoneset.

Switch_B(config)# zoneset name ZS_PRD_B vsan 400
Switch_B(config-zoneset)# member Z_SERVER001_HBA2_VMAX1234_FA3_FA4
Switch_B(config-zoneset)# exit
Switch_B(config)#

8

Activate Zoneset and Commit changes.

Switch_B(config)# zoneset activate name ZS_PRD_B vsan 400
Switch_B(config)# zone commit vsan 400
Switch_B(config)# zoneset distribute full vsan 400
Switch_B(config)# copy running-config startup-config
Switch_B(config)# end
Switch_B#

--

Bonus Info

If we already added/deleted some Zones to/from the active Zoneset but not commited then following command will show us changes that we made within the current session. This is a good way to verify the changes before commiting.

Switch_B(config)# show zone pending-diff
zoneset name ZS_PRD_B vsan 400
+ member Z_SERVER001_HBA1_VMAX1234_FA1_FA2
+zone name Z_SERVER001_HBA1_VMAX1234_FA1_FA2 vsan 400
+ member pwwn 10:00:00:00:00:00:00:02
+ member pwwn 50:00:00:00:00:00:00:03
+ member pwwn 50:00:00:00:00:00:00:04
Switch_B(config)#

ADVERTISEMENT

Removal of existing Zone from active Zoneset

Requirement: As part of server decommission process, the zones related to SERVER001 need to removed from the active zoneset.

Following steps and commands will be executed on Switch_A.

1

Find the active Zoneset of VSAN 200

Below command will filter out the zoneset name from the active zoneset information.

Switch_A# show zoneset active vsan 200 | include zoneset
zoneset name ZS_PRD_A vsan 200
switch_A#

Active zoneset name : ZS_PRD_A

2

Remove Zone from the active Zoneset.

Switch_A(config)# zoneset name ZS_PRD_A vsan 200
Switch_A(config-zoneset)# no member Z_SERVER001_HBA1_VMAX1234_FA1_FA2
Switch_A(config-zoneset)# exit
Switch_A(config)#

3

Activate Zoneset and Commit changes.

Switch_A(config)# zoneset activate name ZS_PRD_A vsan 200
Switch_A(config)# zone commit vsan 200
Switch_A(config)# zoneset distribute full vsan 200
Switch_A(config)# copy running-config startup-config
Switch_A(config)# end
Switch_A#

The same steps are repeated for Switch_B too.

4

Find the active Zoneset of VSAN 400

Switch_B# show zoneset active vsan 400 | include zoneset
zoneset name ZS_PRD_B vsan 400
Switch_B#

Active zoneset name : ZS_PRD_B

5

Remove Zone from the active Zoneset.

Switch_B(config)# zoneset name ZS_PRD_B vsan 400
Switch_B(config-zoneset)# no member Z_SERVER001_HBA2_VMAX1234_FA3_FA4
Switch_B(config-zoneset)# exit
Switch_B(config)#

6

Activate Zoneset and Commit changes.

Switch_B(config)# zoneset activate name ZS_PRD_B vsan 400
Switch_B(config)# zone commit vsan 400
Switch_B(config)# zoneset distribute full vsan 400
Switch_B(config)# copy running-config startup-config
Switch_B(config)# end
Switch_B#

--

Bonus Info

Even though the zone removed from the active zoneset it will still remain in the zone database. The zone can be fully deleted by below commands.

Switch_B(config)# no zone name Z_SERVER001_HBA2_VMAX1234_FA3_FA4 vsan 400
Switch_B(config)# zone commit vsan 400
Switch_B(config)# end
Switch_B#

ADVERTISEMENT

HBA Replacement

Requirement: Existing HBA became faulty and replaced with new one. This resulted a change in the HBA Port WWN, need to replace old WWPN with new one in the respective Zone.

Old HBA WWPN : 10:00:00:00:00:00:00:02
New HBA WWPN : 10:00:00:00:00:00:00:08

Following steps and commands will be executed on Switch_A.

1

Find the active Zoneset of VSAN 200

Switch_A# show zoneset active vsan 200 | include zoneset
zoneset name ZS_PRD_A vsan 200
switch_A#

Active zoneset name : ZS_PRD_A

2

Remove old HBA WWPN from Zone and add new one

Switch_A# config terminal
Switch_A(config)# zone name Z_SERVER001_HBA1_VMAX1234_FA1_FA2 vsan 200
Switch_A(config-zone)# no member pwwn 10:00:00:00:00:00:00:01
Switch_A(config-zone)# member pwwn 10:00:00:00:00:00:00:08
Switch_A(config-zone)# exit
Switch_A(config)#

3

Activate Zoneset and Commit changes.

Switch_A(config)# zoneset activate name ZS_PRD_A vsan 200
Switch_A(config)# zone commit vsan 200
Switch_A(config)# zoneset distribute full vsan 200
Switch_A(config)# copy running-config startup-config
Switch_A(config)# end
Switch_A#