
Mass Storage over IP Networks: iSCSI
127
no
vd
ocx
(e
n)
7 Ja
nua
ry 201
0
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
/etc/iscsid.conf
must be edited to provide the information. To
add your password information for the discovery, add the following lines to the end of
/etc/
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
iscsiadm -m discovery --type=st --
portal=<targetip>
. The output should look like:
149.44.171.99:3260,1 iqn.2006-02.com.example.iserv:systems
To discover the available targets on a
iSNS
server, use the command
iscsiadm --mode
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 127
.
The special
--login
option of
iscsiadm
creates all needed devices:
iscsiadm -m node -n iqn.2006-02.com.example.iserv:systems --login
The newly generated devices show up in the output of
lsscsi
and can now be accessed by mount.
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
. There is one database for the discovery of targets and one for the
discovered nodes. When accessing a database, you first must select if you want to get your data from
Summary of Contents for LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010
Page 4: ...4 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 10: ...10 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 12: ...12 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 24: ...24 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 34: ...34 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 78: ...78 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 88: ...88 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 98: ...98 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 108: ...108 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 130: ...130 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 134: ...134 SLES 11 Storage Administration Guide novdocx en 7 January 2010...