HP 3PAR RedHat and Oracle Linux Implementation Guide

2. Check to see if the iscsid daemon is running by using the script /etc/init.d/iscsi
status.
# /etc/init.d/iscsi status
iscsid (pid 30532 30529) is running... (RedHat 4)
Checking for service iSCSI driver is loaded
Setting Up the Bidirectional CHAP on the HP 3PAR StoreServ Storage
To set bidirectional CHAP (mutual), complete the following steps. The HP 3PAR OS CLI sethost
initchap and sethost targetchap commands must be used to set bidirectional CHAP on
the HP 3PAR StoreServ Storage.
1. Verify that a host definition has been created on the HP 3PAR StoreServ Storage. The following
example uses host_secret0 for the host CHAP password and target_secret0 for the
target CHAP password.
For HP 3PAR OS 3.1.x or 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 showhost command shows the host definition on the HP 3PAR
StoreServ Storage for the iSCSI host:
# showhost
Id Name -----------WWN/iSCSI_Name------------ Port
0 linux iqn.1994-05.com.redhat:a3df53b0a32d --
iqn.1994-05.com.redhat:a3df53b0a32d --
NOTE: 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.
2. Set the host CHAP secret.
# sethost initchap -f host_secret0 redhatlinux
3. Set the target CHAP secret.
# sethost targetchap -f target_secret0 redhatlinux
4. Verify the host and target CHAP secret.
# showhost -chap
Id Name -Initiator_CHAP_Name- -Target_CHAP_Name-
0 redhatlinux redhatlinux S121
Setting the Bidirectional CHAP for RHEL 6 or RHEL 5
To configure the bidirectional CHAP for RHEL 6 or RHEL 5, go to the iSCSI Initiator host console,
or, at a terminal, edit the /etc/iscsi/iscsid.conf and configure the host and target CHAP
passwords for discovery and login sessions by completing the following steps.
86 Configuring a Host with iSCSI