HP 3PAR SUSE Linux Enterprise Implementation Guide

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 SuSElinux Generic-legacy iqn.1996-04.de.suse:01:9282cfbddd49 0:3:1
iqn.1996-04.de.suse:01:9282cfbddd49 1:3:1
For HP 3PAR OS 2.2.x, the output shows:
# showhost
Id Name -----------WWN/iSCSI_Name------------ Port
0 SuSElinux iqn.1996-04.de.suse:01:9282cfbddd49 0:3:1
iqn.1996-04.de.suse:01:9282cfbddd49 1:3:1
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 SuSElinux
3. Set the target CHAP secret.
# sethost targetchap -f target_secret0 SuSElinux
4. Verify the host and target CHAP secret.
# showhost -chap
Id Name -Initiator_CHAP_Name- -Target_CHAP_Name-
0 SuSElinux SuSElinux S121
5. By default, the target Chap_Name matches the system name as shown in the showsys output,
unless the -chapname option of the sethost command was used.
# showsys
----------------(MB)----------------
ID -Name- ---Model--- -Serial- Nodes Master TotalCap AllocCap FreeCap FailedCap
121 S121 InServ V400 1400121 2 1 36257792 9968640 26280960 0
Setting the Bidirectional CHAP for SUSE
To configure the bidirectional CHAP for SUSE, go to the iSCSI Initiator host console, or, at a
terminal, edit the /etc/iscsid.conf file and configure the host and target CHAP passwords
for discovery and login sessions by completing the following steps.
NOTE: Notice that two DiscoveryAddress variables with the same IP address for the HP 3PAR
StoreServ Storage iSCSI target port are required. One for the host CHAP username and password
variables (OutgoingUsername and OutgoingPassword) and another one for target CHAP
username and password variables (IncomingUsername and IncomingPassword).
Configuring Challenge-Handshake Authentication Protocol (CHAP) for the iSCSI Host 43