The steps below detail the process of clearing all zoning configurations on an MDS switch. Including: fcaliases, zonesets and zones. If you wish to remove individual zones from a zoneset then please see post here: How To Remove Zones from an Active Zoneset

Note: Ensure this is a standalone switch; if it is connected to other switches in the fabric then you may potentially affect the entire fabric.

1. Firstly determine the names of the active zonesets for each vsan. In this example we will clear down all the zoning associated with the zonset “vsan10_zs” on vsan 10:

MDS-9148# show zoneset active | inc zoneset
zoneset name vsan10_zs vsan 10

2. Next you will need to deactivate the zoneset “vsan10_zs” on vsan 10:

MDS-9148# conf t
MDS-9148(config)# no zoneset activate name vsan10_zs vsan 10
Enhanced zone session has been created. Please ‘commit’ the changes when done.
MDS-9148(config)# zone commit vsan 10
Commit operation initiated. Check zone status

3. Remove the zonset “vsan10_zs” from the configuration:

MDS-9148(config)# no zoneset name vsan10_zs vsan 10
MDS-9148(config)# zone commit vsan 10
MDS-9148(config)# show zoneset active
Zoneset not present

4. Clear all the zones from the database associated with vsan 10:

MDS-9148# clear zone database vsan 10
Enhanced zone session has been created. Please ‘commit’ the changes when done.
MDS-9148(config)# zone commit vsan 10
MDS-9148(config)# show zone
Zone not present
MDS-9148# show fcalias
Alias not present

5. Clear any device alias entries:
MDS-9148(config)# clear device-alias database
MDS-9148(config)# device-alias commit
MDS-9148(config)# show device-alias database

6. Exit config mode, save your running config to startup and reload the switch:

MDS-9148(config)# exit
MDS-9148# copy run startup-config
[########################################] 100%
Copy complete, now saving to disk (please wait)…
MDS-9148# reload
This command will reboot the system. (y/n)? [n] y

Then apply your new zoning configuration:
copy ftp://FTP-Server-IP/Zoning.cfg system:running-config

EXAMPLE

#### FABRIC A ####
show zoneset active | inc zoneset

conf t
no zoneset activate name vsan10_zs vsan 10
zone commit vsan 10

no zoneset name vsan10_zs vsan 10
zone commit vsan 10
show zoneset active

clear zone database vsan 10
zone commit vsan 10
show zone
show fcalias

clear device-alias database
device-alias commit
show device-alias database

exit
copy run startup-config

#### FABRIC B ####
show zoneset active | inc zoneset

conf t
no zoneset activate name vsan11_zs vsan 11
zone commit vsan 11

no zoneset name vsan10_zs vsan 11
zone commit vsan 11
show zoneset active

clear zone database vsan 11
zone commit vsan 11
show zone
show fcalias

clear device-alias database
device-alias commit
show device-alias database

exit
copy run startup-config

## Then apply your new zoning configuration: ##
copy ftp://10.10.10.1/ZoningA.cfg system:running-config
show zoneset active
copy run start
copy ftp://10.10.10.1/ZoningB.cfg system:running-config
show zoneset active
copy run start

If prompted for ‘vrf’ the default entry is ‘management’:
Enter vrf (If no input, current vrf ‘default’ is considered): management

1 Comment »

Leave a comment