Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007 Installation Manual page 282

Table of Contents

Advertisement

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:
[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
Section 12.2.3, "The iSCSI Client Databases"
(page 264).
The special --login option of iscsiadm creates all needed devices:
iscsiadm -m node -r bd0ac2 --login
The newly generated devices show up in the output of lsscsi and can now be accessed
by mount.
12.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
The record ID in this example is bd0ac2. This ID is needed for all actions that relate
to this special data set. To examine the content of the data record with the ID bd0c2,
use the following command:
iscsiadm -m node -r bd0ac2
node.name = iqn.2006-02.com.example.iserv:systems
264
Installation and Administration

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents