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.
- 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
- Add a view and perform mapping by following the instructions in 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.
#!/bin/ksh fcinfo hba-port |grep "^HBA" | awk '{print $4}' | while read 1n do fcinfo remote-port -p $1n -s >/dev/null 2>&1 doneAll 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.


Comments (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:
to: