Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 04-08-2006 Installation Manual page 266

Table of Contents

Advertisement

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:
[bd0ac2] 149.44.171.99:3260,1 iqn.2006-02.com.example.iserv:systems
For each target defined on the iSCSI target, one line appears. In the previous example,
the ID of the target is bd0ac2. This ID is used to access the target. Learn how to obtain
more information about the stored data in
(page 266). For now, just modify the authentication credentials in this database to be
able to access target bd0ac2. Assume that you access a target with incoming user
<username> and password <password>:
iscsiadm -m node --record=bd0ac2 --op=update \
--name=node.session.auth.authmethod --value=CHAP
iscsiadm -m node --record=bd0ac2 --op=update \
--name=node.session.auth.username --value=<username>
iscsiadm -m node --record=bd0ac2 --op=update \
--name=node.session.auth.password --value=<password>
Now, the initiator is prepared for its activation. The special --login option of
iscsiadm creates all needed devices:
iscsiadm -m node --record=bd0ac2 --login
The newly generated devices show up in the output of lsscsi and can now be accessed
by mount.
11.2.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 the discovery or from the node database. Do
this with the -m discovery and -m node parameters of iscsiadm. Using
iscsiadm just with one of these parameters gives an overview of the stored records:
iscsiadm -m discovery
[bd0ac2] 149.44.171.99:3260,1 iqn.2006-02.com.example.iserv:systems
266
Installation and Administration
Section 11.2.3, "The iSCSI Client Databases"

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents