JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 11.1 Administration: SAN Configuration and Multipathing     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Solaris I/0 Multipathing Overview

2.  Fibre Channel Multipathing Configuration Overview

3.  Configuring Solaris I/O Multipathing Features

4.  Administering Multipathing Devices

5.  Configuring Fabric-Connected Devices

6.  Configuring Solaris iSCSI Initiators

Oracle Solaris iSCSI Technology (Overview)

Identifying Oracle Solaris iSCSI Software and Hardware Requirements

Configuring iSCSI Initiators Tasks

iSCSI Terminology

Recommended iSCSI Configuration Practices

Configuring Dynamic or Static Target Discovery

How to Configure an iSCSI Initiator

How to Access iSCSI Disks

How to Remove Discovered Target Devices

Configuring Authentication in Your iSCSI-Based Storage Network

How to Configure CHAP Authentication for Your iSCSI Initiator

How to Configure CHAP Authentication for Your iSCSI Target

Using a Third-Party RADIUS Server to Simplify CHAP Management in Your iSCSI Configuration

How to Configure a RADIUS Server for Your iSCSI Target

How to Configure a RADIUS Server for Your iSCSI Initiator

Oracle Solaris iSCSI and RADIUS Server Error Messages

Setting Up iSCSI Multipathed Devices in Oracle Solaris

How to Enable Multiple iSCSI Sessions for a Target

Monitoring Your iSCSI Configuration

How to Display iSCSI Configuration Information

Modifying iSCSI Initiator and Target Parameters

Tuning iSCSI Parameters

How to Tune iSCSI Parameters

How to Modify iSCSI Initiator and Target Parameters

Troubleshooting iSCSI Configuration Problems

No Connections to the iSCSI Target From the Local System

How to Troubleshoot iSCSI Connection Problems

iSCSI Device or Disk Is Not Available on the Local System

How to Troubleshoot iSCSI Device or Disk Unavailability

Use LUN Masking When Using the iSNS Discovery Method

General iSCSI Error Messages

7.  Configuring Virtual Fibre Channel Ports

8.  Configuring FCoE Ports

9.  Configuring SAS Domains

10.  Configuring IPFC SAN Devices

11.  Booting the Oracle Solaris OS From Fibre Channel Devices on x86 Based Systems

12.  Persistent Binding for Tape Devices

A.  Manual Configuration for Fabric-Connected Devices

B.  Supported FC-HBA API

C.  Troubleshooting Multipathed Device Problems

Index

Configuring iSCSI Initiators Tasks

This is a general list of tasks associated with configuring iSCSI initiators. Some of the tasks are optional depending on your network configuration needs. Some of the links below will take you to separate documents that describe network configuration and target configuration.

iSCSI Terminology

Review the following terminology before configuring iSCSI targets and initiators.

Term
Description
Discovery
The process that presents the initiator with a list of available targets.
Discovery method
The way in which the iSCSI targets can be found. Three methods are currently available:
  • Internet Storage Name Service (iSNS) – Potential targets are discovered by interacting with one or more iSNS servers.

  • SendTargets – Potential targets are discovered by using a discovery-address.

  • Static – Static target addressing is configured.

Initiator
The driver that initiates SCSI requests to the iSCSI target.
Initiator group
A set of initiators. When an initiator group is associated with a LU, only initiators from that group may access the LU.
iqn or eui address format
An iqn (iSCSI qualified name) address is the unique identifier for a device in an iSCSI network using the form iqn.date.authority:uniqueid. An iSCSI initiator or target is assigned an IQN name automatically when the iSCSI initiator or target is initialized.

An eui (extended unique identifier) address consists of 16 hexadecimal digits, and identifies a class of GUIDs that is used in both the SCSI and InfiniBand standards. SRP devices use the eui address format.

Logical unit (LU)
A uniquely numbered component in a storage system. When a LU is associated with one or more SCSI targets, the target can be accessed by one or more SCSI initiators. A logical unit is identified by a logical unit number (LUN).
Target device
The iSCSI storage component.
Target group
A set of targets. A LU can be made available to all targets in one target group.
Target portal group
A list of IP addresses that determines which interfaces a specific iSCSI target will listen to. A TPG contains IP addresses and TCP port numbers.

Recommended iSCSI Configuration Practices

Review the following iSCSI recommendations before configuring iSCSI devices in your network.

Configuring Dynamic or Static Target Discovery

Determine whether you want to configure one of the dynamic device discovery methods or use static iSCSI initiator targets to perform device discovery.


Note - Do not configure an iSCSI target to be discovered by both static and dynamic device discovery methods. The consequence of using redundant discovery methods might be slow performance when the initiator is communicating with the iSCSI target device.


How to Configure an iSCSI Initiator

Part of the initiator configuration process is to identify the iSCSI target discovery method, which presents an initiator with a list of available targets. You can configure iSCSI targets for static, SendTargets, or iSNS dynamic discovery. Dynamic discovery using the SendTargets option is the optimum configuration for an iSCSI initiator that accesses a large number of targets, such over an iSCSI to Fibre Channel bridge. SendTargets dynamic discovery requires the IP address and port combination of the iSCSI target for the iSCSI initiator to perform the target discovery. The most common discovery method is SendTargets.

When configuring the target discovery method, you must provide the following information, depending on which method you choose:

For more information about configuring target discovery methods, see Configuring Dynamic or Static Target Discovery.

  1. Enable the iSCSI initiator service.
    initiator# svcadm enable network/iscsi/initiator
  2. Verify the target's name and IP address while logged in to the server that is providing the target.
    target# ipadm show-addr
    ADDROBJ           TYPE     STATE        ADDR
    lo0/v4            static   ok           127.0.0.1/8
    e1000g0/_b        dhcp     ok           1.2.3.4/24
    lo0/v6            static   ok           ::1/128
    e1000g0/_a        addrconf ok           fe80::123:1234:fe27:360c/10
    target# itadm list-target -v
    TARGET NAME                                                  STATE    SESSIONS 
    iqn.1986-03.com.sun:02:73d12edc-9bb9-cb44-efc4-c3b36c123456  online   0        
            alias:                  -
            auth:                   none (defaults)
            targetchapuser:         -
            targetchapsecret:       unset
            tpg-tags:               default
  3. Configure the target to be statically discovered.
    initiator# iscsiadm add static-config iqn.1986-03.com.sun:02:73d12edc-9bb9-cb44-efc4-c3b36c123456,
    1.2.3.4
  4. Review the static configuration information.
    initiator# iscsiadm list static-config
    Static Configuration Target: iqn.1986-03.com.sun:02:73d12edc-9bb9-cb44-efc4-c3b36c123456,
    1.2.3.4:3260

    The iSCSI connection is not initiated until the discovery method is enabled. See the next step.

  5. Configure one of the following target discovery methods:
    • If you have configured a dynamically discovered (SendTargets) target, configure the SendTargets discovery method.

      initiator# iscsiadm add discovery-address 1.2.3.4
    • If you have configured a dynamically discovered (iSNS) target, configure the iSNS discovery method.

      initiator# iscsiadm add isns-server 1.2.3.4
  6. Enable one of the following the target discovery methods:
    • If you have configured a dynamically discovered (SendTargets) target, enable the SendTargets discovery method.

      initiator# iscsiadm modify discovery --sendtargets enable
    • If you have configured a dynamically discovered (iSNS) target, enable the iSNS discovery method.

      initiator# iscsiadm modify discovery --iSNS enable
    • If you have configured static targets, enable the static target discovery method.

      initiator# iscsiadm modify discovery --static enable
  7. Reconfigure the /dev namespace to recognize the iSCSI disk, if necessary.
    initiator# devfsadm -i iscsi

How to Access iSCSI Disks

After the devices have been discovered by the Oracle Solaris iSCSI initiator, the login negotiation occurs automatically. The Oracle Solaris iSCSI driver determines the number of available LUs and creates the device nodes. Then, the iSCSI devices can be treated as any other SCSI device.

You can create a ZFS storage pool on the LU and then create a ZFS file system.

You can view the iSCSI disks on the local system by using the format utility.

  1. Review the iSCSI LU information in the format output.
    initiator# format
           0. c0t600144F0B5418B0000004DDAC7C10001d0 <SUN-COMSTAR-1.0 cyl 1022 alt 2 hd 128 sec 32>
              /scsi_vhci/disk@g600144f0b5418b0000004ddac7c10001
           1. c8t0d0 <Sun-STK RAID INT-V1.0 cyl 17830 alt 2 hd 255 sec 63>
              /pci@0,0/pci10de,375@f/pci108e,286@0/disk@0,0
           2. c8t1d0 <Sun-STK RAID INT-V1.0-136.61GB>
              /pci@0,0/pci10de,375@f/pci108e,286@0/disk@1,0
           3. c8t2d0 <Sun-STK RAID INT-V1.0-136.61GB>
              /pci@0,0/pci10de,375@f/pci108e,286@0/disk@2,0
           4. c8t3d0 <Sun-STK RAID INT-V1.0 cyl 17830 alt 2 hd 255 sec 63>
              /pci@0,0/pci10de,375@f/pci108e,286@0/disk@3,0
    Specify disk (enter its number): 0
    selecting c0t600144F0B5418B0000004DDAC7C10001d0
    [disk formatted]

    In the above output, disk 0 is an iSCSI LU under MPxIO control. Disks 1-4 are local disks.

  2. You can create a ZFS storage pool and ZFS file systems on the iSCSI LU.
    initiator# zpool create pool-name c0t600144F0B5418B0000004DDAC7C10001d0
    initiator# zfs create pool-name/fs-name

    The ZFS file system is automatically mounted when created and is remounted at boot time.

How to Remove Discovered Target Devices

The associated targets are logged out after you perform any of the following actions:

If these associated targets are still in use, for example, they have mounted file systems, the logout of these devices will fail, and they will remain on the active target list.

This optional procedure assumes that you are logged in to the local system where access to an target device has already been configured.

  1. Become an administrator.
  2. (Optional) Disable an iSCSI target discovery method by using one of the following:
    • If you need to disable the SendTargets discovery method, use the following command:

      initiator# iscsiadm modify discovery --sendtargets disable
    • If you need to disable the iSNS discovery method, use the following command:

      initiator# iscsiadm modify discovery --iSNS disable
    • If you need to disable the static target discovery method, use the following command:

      initiator# iscsiadm modify discovery --static disable
  3. Remove an iSCSI device discovery entry by using one of the following:
    • Remove an iSCSI SendTargets discovery entry.

      For example:

      initiator# iscsiadm remove discovery-address 1.2.3.4:3260
    • Remove an iSCSI iSNS discovery entry.

      For example:

      # iscsiadm remove isns-server 1.2.3.4:3205
    • Remove a static iSCSI discovery entry.

      For example:

      initiator# iscsiadm remove static-config eui.5000ABCD78945E2B,1.2.3.4

    Note - If you attempt to disable or remove a discovery entry that has an associated logical unit (LU) in use, the disable or remove operation fails with the following message:

    logical unit in use

    If this errors occurs, stop all associated I/O on the LU, unmount the file systems. Then, repeat the disable or remove operation.


  4. Remove the iSCSI target device.

    For example:

    target# itadm delete-target target-IQN

    This command might error if the target is still online or busy:

    The target is online or busy. Use the -f (force) option, or 'stmfadm offline-target 
    iqn.1986-03.com.sun:02:99619b8a-a4dc-4cfb-93f0-ee3de1234567'
    itadm delete-target failed with error 16