System information

The default iSCSI configuration file is /etc/i scsi /i scsi d. co nf. This file contains iSCSI
settings used by i scsi d and i scsi ad m.
During target discovery, the i scsi ad m tool uses the settings in /etc/i scsi /i scsi d . co nf to
create two types of records:
No d e reco rd s in /var/l i b/i scsi /no d es
When logging into a target, i scsi ad m uses the settings in this file.
Disco very reco rd s in /var/l i b/i scsi /discovery_type
When performing discovery to the same destination, iscsi ad m uses the settings in this file.
Before using different settings for discovery, delete the current discovery records (i.e.
/var/l i b/i scsi /discovery_type) first. To do this, use the following command:
# iscsiadm -m discovery -t discovery_type -p target_IP:port -o delete
Here, discovery_type can be either send targ ets, i sns, or fw.
For details on different types of discovery, refer to the DISCOVERY TYPES section of man i scsi ad m.
There are two ways to reconfigure discovery record settings:
Edit the /etc/i scsi /i scsi d . co nf file directly prior to performing a discovery. Discovery
settings use the prefix d i sco very; to view them, run:
# iscsiadm -m discovery -t discovery_type -p target_IP:port
Alternatively, i scsi ad m can also be used to directly change discovery record settings, as in:
# iscsiadm -m discovery -t discovery_type -p target_IP:port -o update
-n setting -v %value
Refer to man i scsi ad m for more information on available settings and valid values for each.
After configuring discovery settings, any subsequent attempts to discover new targets will use the
new settings. Refer to Section 25.12, “ Scanning iSCSI Interconnects for details on how to scan for
new iSCSI targets.
For more information on configuring iSCSI target discovery, refer to the man pages of i scsi ad m and
i scsi d . The /etc/i scsi /i scsi d . co nf file also contains examples on proper configuration
syntax.
25.11. Configuring iSCSI Offload and Int erface Binding
This chapter describes how to set up iSCSI interfaces in order to bind a session to a NIC port when
using software iSCSI. It also describes how to set up interfaces for use with network devices that
support offloading; namely, devices from Chelsio, Broadcom and ServerEngines.
The network subsystem can be configured to determine the path/NIC that iSCSI interfaces should use
for binding. For example, if portals and NICs are set up on different subnets, then it is not necessary
to manually configure iSCSI interfaces for binding.
Before attempting to configure an iSCSI interface for binding, run the following command first:
[7]
Red Hat Ent erprise Lin ux 6 St orage Admin ist rat io n G uide
182