Skip Navigation Links | |
Exit Print View | |
![]() |
Oracle Solaris 10 1/13 Installation Guide: Basic Installations Oracle Solaris 10 1/13 Information Library |
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)
4. Installing the Oracle Solaris 10 OS on an iSCSI Target Disk
Hardware and Firmware Requirements
iSCSI Configuration and Installation
Creating And Configuring an iSCSI Target
How to Configure iSCSI Parameters on the Initiator (Text Interactive Method)
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:
Preparing the Target for Oracle Solaris 10 Installation
Associating a Target With the Initiator
Clearing CHAP details on the Target System
Tip - Use the pkginfo package-name command to find out if the packages are installed.
SUNWiscsitu
SUNWiscsitr
SUNWiscsidmu
SUNWiscsidmr
SUNWstmf
SUNWstmfu
For example, to create zpool named iscsi-pool out of slice c0t1dos0:
# zpool create -f iscsi-pool c0t1d0s0
For example:
# zfs create -V 20G iscsi-pool/mytarget
For example:
# zfs set shareiscsi=on iscsi-pool/mytarget
# 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.
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.
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.
See Configuring Authentication in Your iSCSI-Based Storage Network in System Administration Guide: Devices and File Systems for details.
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.
For example:
# iscsitadm modify initiator --chap-name mytestname my-initiator-profile
For example :
# iscsitadm modify initiator --chap-secret mytestname my-initiator-profile Enter secret: ************** Re-enter secret: *************
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.
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.
For example :
# iscsitadm delete target --acl my-initiator-profile iscsi-pool/mytarget
For example :
# iscsitadm modify initiator --chap-secret mytestname my-initiator-profile Enter secret: Re-enter secret :
# iscsitadm modify initiator --chap-name "" my-initiator-profile
# iscsitadm modify admin --chap-secret Enter secret: Re-enter secret :
# iscsitadm modify admin --chap-name ""
# iscsitadm delete initiator --all my-initiator-profile