JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 10 1/13 Installation Guide: Basic Installations     Oracle Solaris 10 1/13 Information Library
search filter icon
search icon

Document Information

Preface

1.  Planning for a Oracle Solaris Installation From CD or DVD Media (Tasks)

2.  Installing With the Oracle Solaris Installation Program For UFS File Systems (Tasks)

3.  Installing With the Oracle Solaris Interactive Text Installer for ZFS Root Pools (Planning and Tasks)

4.  Installing the Oracle Solaris 10 OS on an iSCSI Target Disk

iSCSI Installation (Overview)

Hardware and Firmware Requirements

iSCSI Configuration and Installation

Supported SPARC Systems

Creating And Configuring an iSCSI Target

Configuring iSCSI Parameters

How to Configure iSCSI Parameters on the Initiator (Text Interactive Method)

Configuring iSCSI Parameters: JumpStart Installation Method

(Example) Preparing a Target and Associating a Target With an Initiator

How to Prepare the Target for Oracle Solaris 10 Installation

How to Associate a Target With the Initiator

How to Clear CHAP Settings on an iSCSI Target

Index

(Example) Preparing a Target and Associating a Target With an Initiator

The procedures in this section describe how to prepare a target and associate the target with an initiator. The tasks are listed in the order of operation:

  1. Preparing the Target for Oracle Solaris 10 Installation

  2. Associating a Target With the Initiator

  3. Clearing CHAP details on the Target System

How to Prepare the Target for Oracle Solaris 10 Installation

  1. Become superuser.
  2. If the following packages are not already installed. install them.

    Tip - Use the pkginfo package-name command to find out if the packages are installed.


    • SUNWiscsitu

    • SUNWiscsitr

    • SUNWiscsidmu

    • SUNWiscsidmr

    • SUNWstmf

    • SUNWstmfu

  3. Create a ZFS volume iscsi-pool as an iSCSI target.

    For example, to create zpool named iscsi-pool out of slice c0t1dos0:

    # zpool create -f iscsi-pool c0t1d0s0

  4. Create the target directory on the iscsi-pool zpool where the Oracle Solaris 10 OS will be installed.

    For example:

    # zfs create -V 20G iscsi-pool/mytarget
  5. Share the target to make it globally accessible for installation.

    For example:

    # zfs set shareiscsi=on iscsi-pool/mytarget
  6. List the iSCSI target names to confirm that the target has been created successfully.

    # iscsitadm list mytarget

    Target: iscsi-pool/mytarget
         iSCSI Name: iqn.1986-03.com.sun:02:d0a02ee1-91ad-67d9-bb8c-a3d4c4f1e152
         Connections: 0

    A value of 0 in the Connections field indicates that no Initiator has attempted to connect to the target.

  7. Ensure that your target system is on the same subnet as the Initiator for which you want to install Oracle Solaris 10.

    Targets can be a flat file, a UFS slice, a COMSTAR object, or a ZFS Volume.

Next Steps

If you want to set up CHAP authentication on the target system, see How to Associate a Target With the Initiator and How to Configure CHAP Authentication for Your iSCSI Target in the System Administration Guide: Devices and File Systems.

If CHAP authentication is not required, the target is globally visible. Associate the target with the Initiator.

How to Associate a Target With the Initiator

This procedure describes how to set the CHAP username and password on a target system, and the steps to create and associate a target with the Initiator profile.

Before You Begin

The target must be prepared before beginning this task. See How to Configure iSCSI Parameters on the Initiator (Text Interactive Method) for more information.

  1. (Optional) Set the CHAP username and secret for the administrator.

    See Configuring Authentication in Your iSCSI-Based Storage Network in System Administration Guide: Devices and File Systems for details.

  2. Create and associate a target with the Initiator profile.

    You can also provide an alias for the initiator such as my-initiator-profile.

    For example:

    # iscsitadm create initiator
    --iqn iqn.1986-03.com.sun:01:000000000500.initiator my-initiator-profile

    The initiator ID (IQN) is provided by the host system during the configuration of the iSCSI parameters. As an example, the IQN number shown in the How to Configure iSCSI Parameters on the Initiator (Text Interactive Method) task is used.

  3. Set the CHAP username as given on the Initiator.

    For example:

    # iscsitadm modify initiator --chap-name mytestname my-initiator-profile
  4. Provide the same CHAP secret credential as set on Initiator.

    For example :

    # iscsitadm modify initiator --chap-secret mytestname my-initiator-profile
        Enter secret: **************
        Re-enter secret: *************
  5. Add this profile to the access control list.

    For example :

    # iscsitadm modify target --acl my-initiator-profile  iscsi-pool/mytarget

    This command ensures that the Initiator profile, my-initiator-profile, is associated with the target iscsi-pool/mytarget and also restricts access to the targets.

See Also

If you have used CHAP authentication and want to clear the settings on the target after completion of your task, see How to Clear CHAP Settings on an iSCSI Target.

How to Clear CHAP Settings on an iSCSI Target

This procedure lists the steps to remove the CHAP settings on an iSCSI target and to disassociate related profiles. This process ensures that the target is released from the currently configured host and is available to other host initiators.

  1. Delete the initiator profile from the access control list for the target.

    For example :

    # iscsitadm delete target --acl  my-initiator-profile iscsi-pool/mytarget
  2. Clear the CHAP secret for associated profile, iscsi-pool/mytarget.

    For example :

    # iscsitadm modify initiator --chap-secret mytestname my-initiator-profile
    Enter secret: 
    Re-enter secret :
  3. Clear the CHAP username for associated profile, my-initiator-profile.
    # iscsitadm modify initiator --chap-name ""  my-initiator-profile
  4. Clear the admin CHAP secret.
    # iscsitadm modify admin --chap-secret
    Enter secret:
    Re-enter secret :
  5. Clear the admin CHAP username.
    # iscsitadm modify admin --chap-name ""
  6. Delete the Initiator profile.
    # iscsitadm delete initiator --all my-initiator-profile