HP 3PAR RedHat and Oracle Linux Implementation Guide

NOTE: The RHEL 5 iSCSI iface setup describes how to bind a session to a NIC port using
iSCSI software. Running iscsiadm -m iface reports iface configurations setup in /var/
lib/iscsi/ifaces.
For more details, refer to the RHEL 5 U4 open-iscsi release note.
Configuring RHEL 4 for iSCSI
This section discusses the necessary tasks for setting up iSCSI for RHEL 4.
Installing iSCSI on RHEL 4
Install the software iSCSI initiator software package if it has not been installed. The software
package can be installed from the respective Service Pack distribution CDs of your RHEL 4 OS
version using the RPM tool.
Setting Up a Software iSCSI for RHEL 4
Complete the following steps to setup the RHEL 4 iSCSI host:
1. Check state of the iSCSI service run level information with the chkconfig command.
# chkconfig --list | grep iscsi
iscsi 0:off 1:off 2:off 3:off 4:off 5:off 6:off
2. Check your system run level.
# runlevel
N 5
3. Configure the iSCSI service run level the same as your system run level and verify that the
setting for the run level has changed. Now, every time you boot up the system, the iSCSI
service will run.
# chkconfig --level 5 iscsi on
# chkconfig --list | grep iscsi
iscsi 0:off 1:off 2:on 3:on 4:on 5:on 6:off
4. Edit the /etc/iscsi/iscsid.conf file and at the end of the file add the following lines
to configure the HP 3PAR StoreServ Storage iSCSI target port to connect to. In this example
we are adding an iSCSI target port with an IP address of 10.0.0.10 and 10.0.0.20.
ConnFailTimeout=10
DiscoveryAddress=10.0.0.10
DiscoveryAddress=10.0.0.20
5. Reload the iSCSI service:
# /etc/init.d/iscsi reload
/etc/init.d/iscsi reload
Configuring RHEL 4 for iSCSI 81