Configuring Cisco MDS 9148S 16G 48 FC SAN switch with multipath for HA

From Notes_Wiki

Home > Switch configuration notes > Configuring Cisco MDS 9148S 16G 48 FC SAN switch with multipath for HA

In case of network switches we need to use stacking and Port aggregation (also called link aggregation, nic bonding, IEEE 802.3ad, etc.) for allowing HA. This is necessary as without corresponding configuration there would be switching loops which would get detected by Spanning Tree Protocol (STP), which would cause redundant links to remain inactive.

In contrast on stroage switches we do not have looping issues. Further we can let the end-host (Server or initiator) see multiple paths to a target (Volume shared by Storage server) as OS multipath drivers can understand and show only one single virtual volume for all paths to the same volume.

Thus, to configure two storage switches with multipathing for providing HA use:

  1. If the end-point (server or initiator) is going to virtualize HBA card and present virtual WWN numbers for each VM then we need to enable npiv on storage switch. For enabling npiv on storage switch use:
    config t
    feature npiv
    Note that many guides, pages, manuals, etc. would show how to enable npv mode. npv mode is not required and would not help in any way for virtualized WWN
  2. For each port connected to virtualized servers that needs npiv use:
    config t
    interface fc 1/7 - 10
    switchport trunk mode off
    switport mode F
    no shut
  3. For each port connected to storage server use:
    config t
    interface <appropriate interface>
    switchport trunk mode off
    no shut
  4. Optional Add all hosts (server or initiator) ports to vsan database using:
    config t
    vsan database
    vsan 1 interface fc1/7
  5. Reboot of server along with all VMs might be required before the virtual wwn numbers shown up on switch. This is 100% required for Suse IBM Power-VM base (Host) along with all VMs (LPARS).
  6. Create (fc)aliases, zones and zoneset using command-line in same order.
    1. Create fcaliases. For example:
      config t
      fcalias name dellslot1fc0 vsan 1
      member pwwn 21:00:00:24:ff:77:0e:88
    2. Create zones with fcalias members. For example:
      config t
      zone name gilcor1qahnap1 vsan 1
      member fcalias Ctlr1_fc2_Sw2_port2
      member fcalias Ctlr1_fc4_Sw2_port4
      member fcalias Ctlr2_fc1_Sw2_port1
      member fcalias Ctlr2_fc3_Sw2_port3
      member fcalias gilcor1qahnap1_vios1_fcs1
      member fcalias gilcor1qahnap1_vios1_fcs3
      exit
    3. Configure zoneset with zone members. For example:
      config t
      zoneset name gilsap_zone1 vsan 1
      member dellslmn_port0
      member gilcor1devhnap1
      member glcor1erpap1
      exit
    4. Activate zoneset. For example:
      config t
      zoneset activate name gilsap_zone1 vsan 1

Please note that when (fc)aliases are used the shown run shows all zones twice. Once with aliases replaced with wwn numbers and other time with zones with alias names. In such cases if any alias is remapped to another wwn number then zone reactivation using commands such as:

   zoneset activate name <zoneset-name> vsan 1

might be necessary for changed alias to take effect for active zoneset.


Home > Switch configuration notes > Configuring Cisco MDS 9148S 16G 48 FC SAN switch with multipath for HA