Go to main content

Managing Devices in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018
 
 

Making SCSI Logical Units Available

Simply registering a logical unit (LU) with the STMF framework does not make it available to hosts (initiators) on the network. This section describes how to make LUs visible to initiator hosts for the following configurations.

For iSCSI, Fibre Channel, and FCoE configurations, a LU must be mapped before it can be accessed. You can choose one of the following methods, both of which use the stmfadm command:

  • Simple mapping – Exposes the LU to all initiators through all the ports, using one command. Making LUs available to all hosts uses this method.

  • Selective mapping– Enables you to specify the hosts that can access the LU. Making LUs available to selected hosts uses this method. This process includes the following steps:

    1. Defining host groups – A host group is a name given to a set of initiators that are allowed to access the same LUs. This step is not needed if the same set of LUs is visible to all the hosts, as in simple mapping.

    2. Defining target groups – A target group is a name given to a set of target ports that export the same set of LUs to the same set of host groups. This step is not needed if the same set of LUs is visible to all the hosts, as in simple mapping.

    3. Adding one or more views for each logical unit – Adding a view creates a bridge between the LU and the host initiator. When an initiator from the host group logs in to a target port contained in the target group, the LU is visible.


Note -  Don't confuse a target group with a target portal group (TPG). A TPG is a list of IP addresses that an iSCSI target listens to. A TPG can help you restrict an iSCSI target so that it is available only through one specific IP address. For more information on target groups, see stmfadm(1M).

A view entry consists of four components: host group, target group, logical unit number (LUN), and LU identifier. Of these four components, only the LU identifier is required. If the other components are omitted, the following default values are assumed:

  • If the host group is omitted, the all initiators value is assumed.

  • If the target group is omitted, the all targets value is assumed.

  • If the LUN is omitted, the system chooses a suitable LUN for the entry.