View Source

h2. 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|How to Make SCSI Logical Units Available]. Both methods use the [stmfadm|http://docs.sun.com/app/docs/doc/819-2240/stmfadm-1m?a=view] 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.

# 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.
{code}
# sbdadm list-lu
# stmfdm list-lu -v
{code}
To make a logical unit available to selected hosts, identify the WWNs for the FC or FCoE ports of the host.
{code}
# fcinfo hba-port
{code}
{code}
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
{code}
# Add a view and perform mapping by following the instructions in [How to Make SCSI Logical Units Available|How to Make SCSI Logical Units Available].
# 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.
{code:none}
#!/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
{code}
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|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.

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