Setting Up The Iscsi Initiator Manually; The Iscsi Client Databases - Novell LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010 Administration Manual

Table of Contents

Advertisement

Setting the Start-up Preference for iSCSI Target Devices
1 In YaST, select iSCSI Initiator, then select the Connected Targets tab to view a list of the iSCSI
target devices that are currently connected to the server.
2 Select the iSCSI target device that you want to manage.
3 Click Toggle Start-Up to modify the setting:
Automatic: This option is used for iSCSI targets that are to be connected when the iSCSI
service itself starts up.This is the typical configuration.
Onboot: This option is used for iSCSI targets that are to be connected during boot; that is,
when root (
) is on iSCSI. As such, the iSCSI target device will be evaluated from the
/
initrd on server boots.
4 Click Finish to save and apply your changes.

13.3.2 Setting Up the iSCSI Initiator Manually

Both the discovery and the configuration of iSCSI connections require a running iscsid. When
running the discovery the first time, the internal database of the iSCSI initiator is created in the
directory
/var/lib/open-iscsi
If your discovery is password protected, provide the authentication information to iscsid. Because
the internal database does not exist when doing the first discovery, it cannot be used at this time.
Instead, the configuration file
add your password information for the discovery, add the following lines to the end of
:
iscsid.conf
discovery.sendtargets.auth.authmethod = CHAP
discovery.sendtargets.auth.username = <username>
discovery.sendtargets.auth.password = <password>
The discovery stores all received values in an internal persistent database. In addition, it displays all
detected targets. Run this discovery with the command
. The output should look like:
portal=<targetip>
149.44.171.99:3260,1 iqn.2006-02.com.example.iserv:systems
To discover the available targets on a
discovery --type isns --portal <targetip>
For each target defined on the iSCSI target, one line appears. For more information about the stored
data, see
Section 13.3.3, "The iSCSI Client Databases," on page
The special
option of
--login
iscsiadm -m node -n iqn.2006-02.com.example.iserv:systems --login
The newly generated devices show up in the output of

13.3.3 The iSCSI Client Databases

All information that was discovered by the iSCSI initiator is stored in two database files that reside
in
/var/lib/open-iscsi
discovered nodes. When accessing a database, you first must select if you want to get your data from
.
must be edited to provide the information. To
/etc/iscsid.conf
server, use the command
iSNS
creates all needed devices:
iscsiadm
. There is one database for the discovery of targets and one for the
iscsiadm -m discovery --type=st --
iscsiadm --mode
127.
and can now be accessed by mount.
lsscsi
Mass Storage over IP Networks: iSCSI 127
/etc/

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11 storage

Table of Contents