Network OS Administration Guide

Supporting Network OS 6.0.1a

Part Number: 53-1003768-04

Configuring LSAN zones: Device-sharing example

The following example shows LSANs sharing devices in separate fabrics. The procedure illustrates the creation of two LSAN zones (called lsan_zone_fabric_02 and lsan_zone_fabric_01), which involve the following devices and connections:

  • RBridge1 and the host in a Network OS fabric named fabric_01.
  • Switch2, Target A, and Target B in a Fabric OS fabric named fabric_02.
  • RBridge1 is connected by one of its FC_Ports to an EX_Port on the FC router.
  • Switch2 is connected to the FC router using another EX_Port or VEX_Port.
  • Host has WWN 10:00:00:00:c9:2b:c9:0c (connected to RBridge1).
  • Target A has WWN 50:05:07:61:00:5b:62:ed (connected to switch2).
  • Target B has WWN 50:05:07:61:00:49:20:b4 (connected to switch2).

The following illustration shows the connectivity.

Figure 29. LSAN zones example

The following example steps create this set of LSAN zones.

  1. Obtain the host WWN in fabric_01:
    1. Log in to any switch in fabric_01.
    2. On the fabric_01 switch, enter the show name-server detail command to list the WWN of the host (10:00:00:00:c9:2b:c9:0c).
      NOTE
      The show name-server detail output displays both the port WWN and node WWN; the port WWN must be used for LSANs.
      switch# show name-server detail
      PID: 012100
      Port Name: 10:00:00:00:c9:2b:c9:0c
      Node Name: 20:00:00:00:c9:2b:c9:0c
      SCR: 3
      FC4s: FCP
      PortSymb: [27] "Brocade-1020|2.3.0.0|localhost.localdomain|Red Hat
      Enterprise Linux Server release 5.5"
      NodeSymb: NULL
      Fabric Port Name: 20:21:00:05:1E:CD:79:7A
      Permanent Port Name: 10:00:00:00:c9:2b:c9:0c
      Device type: Physical Initiator
      Interface: Fcoe 1/1/9
      Physical Interface: Te 1/0/9
      Share Area: No
      Redirect: No
  2. Obtain the target WWNS in fabric_02:
    1. Log in as admin on switch2 in fabric_02.
    2. On fabric_02, enter the nsShow command to list Target A (50:05:07:61:00:5b:62:ed) and Target B (50:05:07:61:00:49:20:b4).
      switch:admin> nsshow
      {
      Type Pid    COS  PortName                 NodeName                 TTL(sec)
      NL   0508e8; 3;  50:05:07:61:00:5b:62:ed; 50:05:07:61:00:1b:62:ed; na
       FC4s: FCP [IBM   DNEF-309170   F90F]
       Fabric Port Name: 20:08:00:05:1e:34:11:e5 
       Permanent Port Name: 50:05:07:61:00:5b:62:ed
      
      NL   0508ef; 3;  50:05:07:61:00:49:20:b4; 50:05:07:61:00:09:20:b4; na
       FC4s: FCP [IBM   DNEF-309170   F90F]
       Fabric Port Name: 20:08:00:05:1e:34:11:e5 
       Permanent Port Name: 50:05:07:61:00:49:20:b4
      The Local Name Server has 2 entries }
  3. Create an LSAN zone in the Network OS fabric (fabric_01)
  4. In fabric_01, enter the zoning defined-configuration zone command to create the LSAN lsan_zone_fabric_01, and include the host.
    switch# config terminal
    switch(config)# zoning defined-configuration zone lsan_zone_fabric_01
    switch(config-zone-lsan_zone_fabric_01)# member-entry 10:00:00:00:c9:2b:c9:0c
  5. In fabric_01, add Target A to the LSAN.
    switch(config-zone-lsan_zone_fabric_01)# member-entry 50:05:07:61:00:5b:62:ed
    switch(config-zone-lsan_zone_fabric_01)# exit
  6. In fabric_01, enter the zoning defined-configuration cfg and zoning enabled-configuration cfg-name commands to add and enable the LSAN configuration.
    switch(config)# zoning defined-configuration cfg zone_cfg
    switch(config-cfg-zone_cfg)# member-zone lsan_zone_fabric_01
    switch(config-cfg-zone_cfg)# exit
    switch(config)# zoning enabled-configuration cfg_name zone_cfg

    Create an LSAN zone in the Fabric OS fabric (fabric_02)

  7. On switch2 (fabric_02), enter the zoneCreate command to create the LSAN lsan_zone_fabric2, which includes the host (10:00:00:00:c9:2b:c9:0c), Target A (50:05:07:61:00:5b:62:ed) , and Target B (50:05:07:61:00:49:20:b4).
    switch:admin> zonecreate "lsan_zone_fabric_02", "10:00:00:00:c9:2b:c9:0c;
                                                              50:05:07:61:00:5b:62:ed;
                                                              50:05:07:61:00:49:20:b4"
  8. On switch2 (fabric_02), enter the cfgShow command to verify that the zones are correct.
    switch:admin> cfgshow
    Defined configuration:
     zone: lsan_zone_fabric_02
            10:00:00:00:c9:2b:c9:0c; 
            50:05:07:61:00:5b:62:ed; 
            50:05:07:61:00:49:20:b4
    Effective configuration:
     no configuration in effect
  9. On switch2 (fabric_02), enter the cfgAdd and cfgEnable commands to create and enable the LSAN configuration.
    switch:admin> cfgadd "zone_cfg", "lsan_zone_fabric_02" 
    switch:admin> cfgenable "zone_cfg"
    You are about to enable a new zoning configuration.
    This action will replace the old zoning configuration with the
    current configuration selected.
    Do you want to enable 'zone_cfg' configuration (yes, y, no, n): [no] y
    zone config "zone_cfg" is in effect
    Updating flash ...

    Display the configuration on the FC router:

  10. Log in as an admin and connect to the FC router.
  11. On the FC router, enter the following commands to display information about the LSANs.

    The lsanZoneShow -s command shows the LSAN.

    switch:admin> lsanzoneshow -s
    Fabric ID: 2 Zone Name: lsan_zone_fabric_02
        10:00:00:00:c9:2b:c9:0c Imported
        50:05:07:61:00:5b:62:ed EXIST
        50:05:07:61:00:49:20:b4 EXIST
    Fabric ID: 75 Zone Name: lsan_zone_fabric_01
        10:00:00:00:c9:2b:c9:0c EXIST
        50:05:07:61:00:5b:62:ed Imported

    The fcrPhyDevShow command shows the physical devices in the LSAN.

    switch:admin> fcrphydevshow
        Device      WWN                      Physical
        Exists                               PID
        in Fabric
        --------------------------------------------
        75         10:00:00:00:c9:2b:c9:0c   c70000
         2         50:05:07:61:00:49:20:b4   0100ef
         2         50:05:07:61:00:5b:62:ed   0100e8
     Total devices displayed: 3

    The fcrProxyDevShow command shows the proxy devices in the LSAN.

    switch:admin> fcrproxydevshow
     
    Proxy      WWN                            Proxy Device  Physical State
    Created                                   PID Exists    PID
    in Fabric                                 in Fabric
    -----------------------------------------------------------------------
    75         50:05:07:61:00:5b:62:ed 01f001   2          0100e8  Imported
     2         10:00:00:00:c9:2b:c9:0c 02f000  75          c70000  Imported
    Total devices displayed: 2

    On the FC router, the host and Target A are imported, because both are defined by lsan_zone_fabric_02 and lsan_zone_fabric_01. However, target B is defined by lsan_zone_fabric_02 and is not imported because lsan_zone_fabric_01 does not allow it.