HP 3PAR Ubuntu Operating System Implementation Guide

2. Set the host CHAP secret.
# sethost initchap -f host_secret0 ubuntuhost
3. Set the target CHAP secret.
# sethost targetchap -f target_secret0 ubuntuhost
4. Verify the host and target CHAP secret.
# showhost -chap
Id Name -Initiator_CHAP_Name- -Target_CHAP_Name-
6 ubuntuhost ubuntuhost 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
99811 S121 HP_3PAR 7200 1699811 2 0 6684672 2132992 4551680 0
Setting Bidirectional CHAP on the Ubuntu Host
To configure the bidirectional CHAP for Ubuntu, 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).
1. Perform the CHAP configuration settings for the host initiator:
# To enable CHAP authentication for a discovery session to the target
# set discovery.sendtargets.auth.authmethod to CHAP. The default is None.
discovery.sendtargets.auth.authmethod = CHAP
# To enable CHAP authentication set node.session.auth.authmethod
# to CHAP. The default is None.
node.session.auth.authmethod = CHAP
2. Perform the CHAP configuration setting for the target. For example:
#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 = ubuntulinux
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 = ubuntulinux
18 Configuring the HP 3PAR StoreServ Storage for iSCSI