HP 3PAR Citrix Implementation Guide

e. Repeat the steps as described in “Setting the Host CHAP Authentication on the HP 3PAR
StoreServ Storage (page 29) to rediscover the iSCSI target nodes and create the iSCSI
login sessions.
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.
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 citrix
3. Set the target CHAP secret.
# sethost targetchap -f target_secret0 citrix
4. Verify the host and target CHAP secret.
# showhost -chap
Id Name -Initiator_CHAP_Name- -Target_CHAP_Name-
0 citrix citrix S121
Setting the Bidirectional CHAP for Citrix
To configure the bidirectional CHAP for Citrix, go to the iSCSI Initiator host console, or, at a
terminal, edit the /etc/iscsi/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).
1. Perform the CHAP configuration settings for the host initiator:
# To enable CHAP authentication set node.session.auth.authmethod
# to CHAP. The default is None.
node.session.auth.authmethod = CHAP
# 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 = citrix
discovery.sendtargets.auth.password = host_secret0
# To set a CHAP username and password for initiator
# authentication by the target(s), uncomment the following lines:
Configuring CHAP for the iSCSI Host 31