How to Make Logical Units Available for FC and FCoE

How to Make Logical Units Available for FC and FCoE

Simply registering a logical unit 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 SCSI Logical Units Available. Both methods use the stmfadm command. The additional steps below are for FC and FCoE configurations.

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

  1. Make a logical unit available to hosts.
    To make a logical unit available to all hosts, obtain the Global Unique Identification (GUID) number for the logical unit.
    # sbdadm list-lu
    # stmfdm list-lu -v
    

    To make a logical unit available to selected hosts, 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
    
  2. Add a view and perform mapping by following the instructions in How to Make SCSI Logical Units Available.
  3. Verify that the logical unit is visible in one of the following ways:
  • For a Solaris initiator host, verify that the logical unit is visible 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 logical units appear in the format output, because the script forces the initiator to touch all the logical units 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 LUN, as described in How to Make SCSI Logical Units Available.

  • For a Linux initiator host, verify that the logical unit 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.

Labels

task task Delete
smallsiteadmin smallsiteadmin Delete
configuring configuring Delete
storage storage Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. May 22

    enriqueflores says:

    I think you need to change: # stmfdm list-lu -v to: # stmfadm list-lu...

    I think you need to change:

    # stmfdm list-lu -v
    

    to:

    # stmfadm list-lu -v
    

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact