Managing Devices in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Making Logical Units Available for FC and FCoE

Simply registering a logical unit (LU) with the STMF framework does not make it available to hosts (initiators) on the network. You must make logical units visible to initiator hosts for Fibre Channel and FCoE configurations by mapping the logical unit. To determine which method to use and how to map the logical unit, see How to Make a Logical Unit Available to All Systems. Both methods use the stmfadm command. The additional steps below are for FC and FCoE configurations.

How to Make Logical Units Available for FC and FCoE

This procedure makes the LU available to all hosts or selected hosts for FC or FCoE configurations on a storage network. The steps are run on the host.

  1. Become an administrator.
  2. Make a LU available to hosts.

    Obtain the global unique identification (GUID) number for the LU.

    # sbdadm list-lu
    # stmfdm list-lu -v

    Identify the WWNs for the FC or FCoE ports of the host.

    # fcinfo hba-port
    HBA Port WWN: *210000e08b83378d*
    OS Device Name: /dev/cfg/c4
    Manufacturer: QLogic Corp.
    Model: QLA2462
    Firmware Version: 4.0.27
    Fcode/BIOS Version: N/A
    Type: N-port
    State: online
    Supported Speeds: 1Gb 2Gb 4Gb
    Current Speed: 4Gb
    Node WWN: 210000e08b83378d
    HBA Port WWN: *210100e08ba3378d*
    OS Device Name: /dev/cfg/c5
    Manufacturer: QLogic Corp.
    Model: QLA2462
    Firmware Version: 4.0.27
    Fcode/BIOS Version: N/A
    Type: N-port
    State: online
    Supported Speeds: 1Gb 2Gb 4Gb
    Current Speed: 4Gb
    Node WWN: 210100e08ba3378d
  3. Add a view and perform mapping.

    Follow the instructions in How to Make a Logical Unit Available to All Systems.

  4. Verify that the LU is visible on an Oracle Solaris initiator host by running the following script.
    #!/bin/ksh
    fcinfo hba-port |grep "^HBA" | awk '{print $4}' | while read 1n
    do
    fcinfo remote-port -p $1n -s >/dev/null 2>&1
    done

    All subsequent LUNs appear in the format output, because the script forces the initiator to touch all the LUNs through all the ports. If you do not see the LUNs, run the format command again. If you still do not see the LUNs, ensure that the service is enabled on the target by using the svcs stmf command. Also ensure that you added view entries for the LU, as described in How to Make a Logical Unit Available to All Systems.

  5. Verify that the LU is visible on other systems.
    • For a Linux initiator host, verify that the LU is visible by running the utility provided by the HBA vendor. The utility scans for configuration changes.

    • For a Windows initiator host, verify that the logical unit is visible by selecting Control Panel → Administrative Tools → Computer Management → Disk Management. Then, from the Action menu, choose Rescan Disks.