View Source

h2. How to Make Logical Units Available for iSCSI and iSER

Simply registering a logical unit with the STMF framework does not make it available to hosts (initiators) on the network. This section describes how to make SCSI logical units visible to initiator hosts for iSCSI, Fibre Channel, and FCoE configurations by mapping the logical unit. To determine which method to use 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.

After you complete the steps in [How to Make SCSI Logical Units Available|How to Make SCSI Logical Units Available], perform the additional steps below for iSCSI and iSER configurations.
# From the SCSI initiator, list the configured target names.
{code}
# itadm list-target -v
{code}
# From the SCSI target, list the initiator names.
{code}
# iscsiadm list initiator-node
{code}
# Use the initiator and target names in your LUN mapping.
See [How to Make SCSI Logical Units Available].
# Verify that the logical unit is visible.
* For iSCSI, verify that the disks are visible.
{code:none}
format < /dev/null
{code}
* For a Solaris Fibre Channel initiator host, verify that the logical unit is visible.
{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>&amp;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 that scans for configuration changes provided by the HBA vendor.
* 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.

h5. Where to Go Next
* [How to Create a Target Portal Group]

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