Table of ContentsView in Frames

Creating and configuring the VSANs on Cisco FC switches

You must create a VSAN for the FC-VI ports and a VSAN for the storage ports on each FC switch in the MetroCluster configuration. The VSANs should have a unique number and name. You must do additional configuration if you are using two ISLs with in-order delivery of frames.

About this task

The examples here use the following naming conventions:
Switch fabric VSAN name ID number
1 FCVI_1_10 10
STOR_1_20 20
2 FCVI_2_30 30
STOR_2_20 40
This task must be performed on each FC switch fabric.

Steps

  1. Configure the FC-VI VSAN:
    1. Issue the following command to enter configuration mode if you have not done so already: config t
    2. Issue the following command to edit the VSAN database: vsan database
    3. Set the VSAN ID using the following command: vsan vsan-ID
    4. Set the VSAN name using the following command: vsan vsan-ID name vsan_name
    Example
    The following example shows the commands on FC_switch__A_1:
    FC_switch_A_1# conf t
    FC_switch_A_1(config)# vsan database
    FC_switch_A_1(config-vsan-db)# vsan 10
    FC_switch_A_1(config-vsan-db)# vsan 10 name FCVI_1_10
    FC_switch_A_1(config-vsan-db)# end
    FC_switch_A_1# copy running-config startup-config
    The following example shows the commands on FC_switch__B_1:
    FC_switch_B_1# conf t
    FC_switch_B_1(config)# vsan database
    FC_switch_B_1(config-vsan-db)# vsan 10
    FC_switch_B_1(config-vsan-db)# vsan 10 name FCVI_1_10
    FC_switch_B_1(config-vsan-db)# end
    FC_switch_B_1# copy running-config startup-config
  2. Add ports to the FC-VI VSAN:
    1. Issue the following command for each port in the VSAN:vsan vsan-ID interface interface_name
    For the FC-VI VSAN, the ports connecting the two local FC-VI ports will be added. In the following example, the port s are fc1/1 and fc1/13:
    Example
    FC_switch_A_1# conf t
    FC_switch_A_1(config)# vsan database
    FC_switch_A_1(config)# vsan 10 interface fc1/1
    FC_switch_A_1(config)# vsan 10 interface fc1/13
    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)# vsan database
    FC_switch_B_1(config)# vsan 10 interface fc1/1
    FC_switch_B_1(config)# vsan 10 interface fc1/13
    FC_switch_B_1(config)# end
    FC_switch_B_1# copy running-config startup-config
  3. Verify the members of the VSAN using the following command: show vsan member
    Example
    FC_switch_A_1# show vsan member
    FC_switch_B_1# show vsan member
  4. Configure the VSAN to guarantee in-order-delivery of frames:
    1. Enable the in-order-guarantee of exchanges for the VSAN by entering the following command:in-order-guarantee vsan vsan-ID
    2. Enable load balancing for the VSAN by entering the following command: vsan vsan-ID loadbalancing src-dst-id
      Example
      The following example shows the commands on FC_switch__A_1:
      FC_switch_A_1# config t
      FC_switch_A_1(config)# in-order-guarantee vsan 10
      FC_switch_A_1(config)# vsan database
      FC_switch_A_1(config-vsan-db)# vsan 10 loadbalancing src-dst-id
      FC_switch_A_1(config-vsan-db)# end
      FC_switch_A_1# copy running-config startup-config
      
      The following example shows the commands on FC_switch__B_1:
      FC_switch_B_1# config t
      FC_switch_B_1(config)# in-order-guarantee vsan 10
      FC_switch_B_1(config)# vsan database
      FC_switch_B_1(config-vsan-db)# vsan 10 loadbalancing src-dst-id
      FC_switch_B_1(config-vsan-db)# end
      FC_switch_B_1# copy running-config startup-config
  5. Set QoS policies for the FC-VI VSAN:
    1. Enter configuration mode: conf t
    2. Enable the QoS and create a class map by entering the following commands in sequence: qos enableqos class-map class_name match-any
    3. Add the class map created in a previous step to the policy map by entering the following command:class class_name
    4. Set the priority by entering the following command: priority high
    5. Add the VSAN to the policy map created in step 2 by entering the following command: qos service policy policy_name vsan vsanid
    6. Copy the updated configuration to the startup configuration: copy running-config startup-config
    Example
    The following example shows the commands on FC_switch__A_1:
    FC_switch_A_1# conf t
    FC_switch_A_1(config)# qos enable
    FC_switch_A_1(config)# qos class-map FCVI_1_10_Class match-any
    FC_switch_A_1(config)# qos policy-map FCVI_1_10_Policy
    FC_switch_A_1(config-pmap)# class FCVI_1_10_Class
    FC_switch_A_1(config-pmap-c)# priority high
    FC_switch_A_1(config-pmap-c)# exit
    FC_switch_A_1(config)# exit
    FC_switch_A_1(config)# qos service policy FCVI_1_10_Policy vsan 10
    FC_switch_A_1(config)# end
    FC_switch_A_1# copy running-config startup-config
    The following example shows the commands on FC_switch__B_1:
    FC_switch_B_1# conf t
    FC_switch_B_1(config)# qos enable
    FC_switch_B_1(config)# qos class-map FCVI_1_10_Class match-any
    FC_switch_B_1(config)# qos policy-map FCVI_1_10_Policy
    FC_switch_B_1(config-pmap)# class FCVI_1_10_Class
    FC_switch_B_1(config-pmap-c)# priority high
    FC_switch_B_1(config-pmap-c)# exit
    FC_switch_B_1(config)# exit
    FC_switch_B_1(config)# qos service policy FCVI_1_10_Policy vsan 10
    FC_switch_B_1(config)# end
    FC_switch_B_1# copy running-config startup-config
  6. Configure the storage VSAN:
    1. Set the VSAN ID using the following command: vsan vsan-ID
    2. Set the VSAN name using the following command: vsan vsan-ID name vsan_name
    Example
    The following example shows the commands on FC_switch_A_1:
    FC_switch_A_1# conf t
    FC_switch_A_1(config)# vsan database
    FC_switch_A_1(config-vsan-db)# vsan 20
    FC_switch_A_1(config-vsan-db)# vsan 20 name STOR_1_20
    FC_switch_A_1(config-vsan-db)# end
    FC_switch_A_1# copy running-config startup-config
    The following example shows the commands on FC_switch_B_1:
    FC_switch_B_1# conf t
    FC_switch_B_1(config)# vsan database
    FC_switch_B_1(config-vsan-db)# vsan 20
    FC_switch_B_1(config-vsan-db)# vsan 20 name STOR_1_20
    FC_switch_B_1(config-vsan-db)# end
    FC_switch_B_1# copy running-config startup-config
  7. Add ports to the storage VSAN.
    For the storage VSAN, all ports connecting HBA or FC-to-SAS bridges must be added. In this example fc1/5, fc1/9, fc1/17, fc1/21. fc1/25, fc1/29, fc1/33 and fc1/37 are being added.
    Example
    The following example shows the commands on FC_switch_A_1:
    FC_switch_A_1# conf t
    FC_switch_A_1(config)# vsan database
    FC_switch_A_1(config)# vsan 20 interface fc1/5
    FC_switch_A_1(config)# vsan 20 interface fc1/9
    FC_switch_A_1(config)# vsan 20 interface fc1/17
    FC_switch_A_1(config)# vsan 20 interface fc1/21
    FC_switch_A_1(config)# vsan 20 interface fc1/25
    FC_switch_A_1(config)# vsan 20 interface fc1/29
    FC_switch_A_1(config)# vsan 20 interface fc1/33
    FC_switch_A_1(config)# vsan 20 interface fc1/37
    FC_switch_A_1(config)# end
    FC_switch_A_1# copy running-config startup-config
    The following example shows the commands on FC_switch_B_1:
    FC_switch_B_1# conf t
    FC_switch_B_1(config)# vsan database
    FC_switch_B_1(config)# vsan 20 interface fc1/5
    FC_switch_B_1(config)# vsan 20 interface fc1/9
    FC_switch_B_1(config)# vsan 20 interface fc1/17
    FC_switch_B_1(config)# vsan 20 interface fc1/21
    FC_switch_B_1(config)# vsan 20 interface fc1/25
    FC_switch_B_1(config)# vsan 20 interface fc1/29
    FC_switch_B_1(config)# vsan 20 interface fc1/33
    FC_switch_B_1(config)# vsan 20 interface fc1/37
    FC_switch_B_1(config)# end
    FC_switch_B_1# copy running-config startup-config