HP 3PAR RedHat and Oracle Linux Implementation Guide

For HP 3PAR OS 3.1.x and OS 2.3.x, the output shows:
# showhost
Id Name Persona ----------WWN/iSCSI_Name----------- Port
0 redhatlinux Generic iqn.1994-05.com.redhat:a3df53b0a32d ---
For HP 3PAR OS 2.2.x, the output shows:
# showhost
Id Name -----------WWN/iSCSI_Name------------ Port
0 linux iqn.1994-05.com.redhat:a3df53b0a32d --
iqn.1994-05.com.redhat:a3df53b0a32d
The following example uses the host CHAP password host_secret0 for the host. Be aware that
CHAP secret must be at least 12 characters long.
Set the host CHAP secret.
# sethost initchap -f host_secret0 redhatlinux
Verify the host CHAP secret.
# showhost -chap
Id Name -Initiator_CHAP_Name- -Target_CHAP_Name-
0 redhatlinux redhatlinux --
Setting the Host CHAP for RHEL 6 or RHEL 5
To set the host CHAP for RHEL 6 or RHEL 5, complete the following steps:
1. Go to the iSCSI Initiator host console, or, at a terminal, edit the /etc/iscsi/iscsid.conf
file and enable CHAP authentication:
#To enable CHAP authentication set node.session.auth.authmethod
#to CHAP. The default is None.
node.session.auth.authmethod = CHAP
2. Configure the host CHAP password for the discovery and login session by again editing the
configuration file /etc/iscsi/iscsid.conf file.
#To set a discovery session CHAP username and password for the initiator
#authentication by the target(s), uncomment the following lines:
discovery.sendtargets.auth.username = redhatlinux
discovery.sendtargets.auth.password = host_secret0
#To set a CHAP username and password for initiator
#authentication by the target(s), uncomment the following lines:
node.session.auth.username = redhatlinux
node.session.auth.password = host_secret0
NOTE: The OutgoingUsername variable can be set to anything you want, but the
OutgoingPassword has to be the same as the host CHAP secret configured on the HP 3PAR
StoreServ Storage.
84 Configuring a Host with iSCSI