This manual page describes the format of the
/etc/iscsi.conf file. This file is a simple text file that
iscsid(8) uses to locate iSCSI target devices and LUNs.
Comments are marked by lines beginning with '#'.
Available entries include:
DiscoveryAddress=<address>
IP address or hostname to use for target discovery. A TCP port
number may be specified by appending a colon followed by the port
number. This entry must start in the first column, and must not
contain any whitespace.
TargetIpAddr=<address>
A synonym for DiscoveryAddress.
Target,Lun=<x,y>
Specify which LUN 'y' on target 'x' to probe. If not present, the LUN
activator will probe LUNs 0-31 for each of 16 possible targets. This entry
must start in the first column, and must not contain any whitespace.
Username=<user>
Specify the authentication user.
If this entry precedes all DiscoveryAddress entries, it serves as the default.
If this entry is indented under a DiscoveryAddress entry, it specifies the
user for all targets discovered at that IP address.
Password=<pass>
Specify the authentication password for the previously listed iSCSI
If this entry precedes all DiscoveryAddress entries, it serves as the default.
If this entry is indented under a DiscoveryAddress entry, it specifies the
user for all targets discovered at that IP address.
EXAMPLE
# set the default user and password
Username=alice
Password=nty57nbe
# targets at this address will use the default Username and Password
DiscoveryAddress=192.168.10.94
# targets at this address will use the Username and Password below
DiscoveryAddress=192.168.10.95
Username=beatrice
Password=93fdgc20
# only probe a subset of the 16 possible targets and
# 32 possible LUNS for each target.
# If there are no Target,Lun entries, 32 LUNs will be
# probed for each target.
Target,Lun=0,0
Target,Lun=0,1
Target,Lun=1,0
NOTES
The iSCSI initiator drivers, README files, and example configuration files
are available on the Linux-iSCSI homepage at: