Configuring zoning on a Cisco FC switch
You must assign the switch ports to separate zones to isolate storage (HBA) and controller (FC-VI) traffic.
These steps must be performed on both FC switch fabrics.
The following steps use the zoning described in the section Zoning for a FibreBridge 7600N in a four-node MetroCluster configuration.
- Clear the existing zones and zone set, if present.
- Determine which zones and zone sets are active: show zoneset active
FC_switch_A_1# show zoneset active
FC_switch_B_1# show zoneset active - Disable the active zone sets identified in the previous step: no zoneset activate name zoneset_name vsan vsan_id The following example shows two zone sets being disabled:
ZoneSet_A on FC_switch_A_1 in VSAN 10
ZoneSet_B on FC_switch_B_1 in VSAN 20
FC_switch_A_1# no zoneset activate name ZoneSet_A vsan 10
FC_switch_B_1# no zoneset activate name ZoneSet_B vsan 20 - After all zone sets are deactivated, clear the zone database: clear zone database zone-name
FC_switch_A_1# clear zone database 10
FC_switch_A_1# copy running-config startup-config
FC_switch_B_1# clear zone database 20
FC_switch_B_1# copy running-config startup-config
- Determine which zones and zone sets are active: show zoneset active
- Obtain the switch worldwide name (WWN): show wwn switch
- Configure the basic zone settings:
- Set the default zoning policy to permit : no system default zone default-zone permit
- Enable the full zone distribution: system default zone distribute full
- Set the default zoning policy for each VSAN: no zone default-zone permit vsanid
- Set the default full zone distribution for each VSAN: zoneset distribute full vsanid
FC_switch_A_1# conf t
FC_switch_A_1(config)# no system default zone default-zone permit
FC_switch_A_1(config)# system default zone distribute full
FC_switch_A_1(config)# no zone default-zone permit 10
FC_switch_A_1(config)# no zone default-zone permit 20
FC_switch_A_1(config)# zoneset distribute full vsan 10
FC_switch_A_1(config)# zoneset distribute full vsan 20
FC_switch_A_1(config)# end
FC_switch_A_1# copy running-config startup-config
FC_switch_B_1# conf t
FC_switch_B_1(config)# no system default zone default-zone permit
FC_switch_B_1(config)# system default zone distribute full
FC_switch_B_1(config)# no zone default-zone permit 10
FC_switch_B_1(config)# no zone default-zone permit 20
FC_switch_B_1(config)# zoneset distribute full vsan 10
FC_switch_B_1(config)# zoneset distribute full vsan 20
FC_switch_B_1(config)# end
FC_switch_B_1# copy running-config startup-config
- Create storage zones and add the storage ports to them.
These steps only need to be performed on one switch in each fabric.
The zoning depends on the model FC-to-SAS bridge you are using. For details, see the section for your model bridge. The examples show Brocade switch ports, so adjust your ports accordingly.
- Zoning for FibreBridge 7600N bridges using one FC port
- Zoning for FibreBridge 7500N bridges using both FC ports
Each storage zone contains the HBA initiator ports from all controllers and one single port connecting an FC-to-SAS bridge.
- Create the storage zones: zone name STOR_zone-name vsan vsanid
- Add storage ports to the zone: member portswitch WWN
- Activate the zone set: zoneset activate name STOR_zonenameesetname vsan vsanid
FC_switch_A_1# conf t
FC_switch_A_1(config)# zone name STOR_Zone_1_20_25 vsan 20
FC_switch_A_1(config-zone)# member interface fc1/5 swwn 20:00:00:05:9b:24:cb:78
FC_switch_A_1(config-zone)# member interface fc1/9 swwn 20:00:00:05:9b:24:cb:78
FC_switch_A_1(config-zone)# member interface fc1/17 swwn 20:00:00:05:9b:24:cb:78
FC_switch_A_1(config-zone)# member interface fc1/21 swwn 20:00:00:05:9b:24:cb:78
FC_switch_A_1(config-zone)# member interface fc1/5 swwn 20:00:00:05:9b:24:12:99
FC_switch_A_1(config-zone)# member interface fc1/9 swwn 20:00:00:05:9b:24:12:99
FC_switch_A_1(config-zone)# member interface fc1/17 swwn 20:00:00:05:9b:24:12:99
FC_switch_A_1(config-zone)# member interface fc1/21 swwn 20:00:00:05:9b:24:12:99
FC_switch_A_1(config-zone)# member interface fc1/25 swwn 20:00:00:05:9b:24:cb:78
FC_switch_A_1(config-zone)# end
FC_switch_A_1# copy running-config startup-config - Create a storage zone set and add the storage zones to the new set.NoteYou only need to perform these steps on one switch in the fabric.
- Create the storage zone set: zoneset name STOR_zonesetname vsan vsanid
- Add storage zones to the zone set: member STOR_zonename
- Activate the zone set: zoneset activate name STOR_zonesetname vsan vsanid
FC_switch_A_1# conf t
FC_switch_A_1(config)# zoneset name STORI_Zoneset_1_20 vsan 20
FC_switch_A_1(config-zoneset)# member STOR_Zone_1_20_25
...
FC_switch_A_1(config-zoneset)# exit
FC_switch_A_1(config)# zoneset activate name STOR_ZoneSet_1_20 vsan 20
FC_switch_A_1(config)# exit
FC_switch_A_1# copy running-config startup-config
- Create FCVI zones and add the FCVI ports to them.
Each FCVI zone contains the FCVI ports from all the controllers of one DR Group.
These steps only need to be performed on one switch in each fabric.
The zoning depends on the model FC-to-SAS bridge you are using. For details, see the section for your model bridge. The examples show Brocade switch ports, so adjust your ports accordingly.
- Zoning for FibreBridge 7600N bridges using one FC port
- Zoning for FibreBridge 7500N bridges using both FC ports
Each storage zone contains the HBA initiator ports from all controllers and one single port connecting an FC-to-SAS bridge.
- Create the FCVI zones: zone name FCVI_zone-name vsan vsanid
- Add FCVI ports to the zone: member FCVI zone-name
- Activate the zone set: zoneset activate name FCVI_zonenameesetname vsan vsanid
FC_switch_A_1# conf t
FC_switch_A_1(config)# zone name FCVI_Zone_1_10_25 vsan 10
FC_switch_A_1(config-zone)# member interface fc1/1 swwn20:00:00:05:9b:24:cb:78
FC_switch_A_1(config-zone)# member interface fc1/2 swwn20:00:00:05:9b:24:cb:78
FC_switch_A_1(config-zone)# member interface fc1/1 swwn20:00:00:05:9b:24:12:99
FC_switch_A_1(config-zone)# member interface fc1/2 swwn20:00:00:05:9b:24:12:99
FC_switch_A_1(config-zone)# end
FC_switch_A_1# copy running-config startup-config - Create an FCVI zone set and add the FCVI zones to it:These steps only need to be performed on one switch in the fabric.
- Create the FCVI zone set: zoneset name FCVI_zonesetname vsan vsanid
- Add FCVI zones to the zone set: member FCVI_zonename
- Activate the zone set: zoneset activate name FCVI_zonesetname vsan vsanid
FC_switch_A_1# conf t
FC_switch_A_1(config)# zoneset name FCVI_Zoneset_1_10 vsan 10
FC_switch_A_1(config-zoneset)# member FCVI_Zone_1_10_25
FC_switch_A_1(config-zoneset)# member FCVI_Zone_1_10_29
...
FC_switch_A_1(config-zoneset)# exit
FC_switch_A_1(config)# zoneset activate name FCVI_ZoneSet_1_10 vsan 10
FC_switch_A_1(config)# exit
FC_switch_A_1# copy running-config startup-config - Verify the zoning: show zone
- Repeat the previous steps on the second FC switch fabric.