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.

About this task

These steps must be performed on both FC switch fabrics.

The following steps use the zoning described in the section Zoning for a FibreBridge 7500N in a four-node MetroCluster configuration.

Zoning for FC-VI ports

Procedure

  1. Clear the existing zones and zone set, if present.
    1. 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
    2. 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
    3. 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
  2. Obtain the switch worldwide name (WWN): show wwn switch
  3. Configure the basic zone settings:
    1. Set the default zoning policy to permit: no system default zone default-zone permit
    2. Enable the full zone distribution: system default zone distribute full
    3. Set the default zoning policy for each VSAN: no zone default-zone permit vsanid
    4. 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
  4. 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.

    Each storage zone contains the HBA initiator ports from all controllers and one single port connecting an FC-to-SAS bridge.

    1. Create the storage zones: zone name STOR_zone-name vsan vsanid
    2. Add storage ports to the zone: member port switch WWN
    3. 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
  5. Create a storage zone set and add the storage zones to the new set.
    Note: You only need to perform these steps on one switch in the fabric.
    1. Create the storage zone set: zoneset name STOR_zonesetname vsan vsanid
    2. Add storage zones to the zone set: member STOR_zonename
    3. 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
  6. 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.

    Each storage zone contains the HBA initiator ports from all controllers and one single port connecting an FC-to-SAS bridge.

    1. Create the FCVI zones: zone name FCVI_zone-name vsan vsanid
    2. Add FCVI ports to the zone: member FCVI zone-name
    3. 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
  7. 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.
    1. Create the FCVI zone set: zoneset name FCVI_zonesetname vsan vsanid
    2. Add FCVI zones to the zone set: member FCVI_zonename
    3. 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
  8. Verify the zoning: show zone
  9. Repeat the previous steps on the second FC switch fabric.