HP 3PAR Ubuntu Operating System Implementation Guide

4. Now examine the iSCSI session and content session of the node information by issuing
iscsiadm --mode session.
For example:
# iscsiadm --mode session
tcp: [1] 10.102.2.2:3260,31 iqn.2000-05.com.3pardata:20310002ac0000b1
tcp: [2] 10.103.3.3:3260,131 iqn.2000-05.com.3pardata:21310002ac0000b1
For more information about Ubuntu iscsiadm command usage, see “Ubuntu iscsiadm Utility
Usage (page 8).
Configuring CHAP for the iSCSI Host
Two CHAP authentication configurations are available: Host CHAP authentication, where the
HP 3PAR StoreServ Storage iSCSI target port authenticates the iSCSI Initiator host when it tries to
connect to it, and bidirectional (mutual) CHAP authentication, where both the iSCSI target and
host authenticate each other when the host tries to connect to the target.
You must create an iSCSI host definition on the HP 3PAR StoreServ Storage before setting and
configuring CHAP for the iSCSI host. See “Creating the Software iSCSI Host Definition (page 7).
Setting the Host CHAP Authentication on the HP 3PAR StoreServ Storage
To set the host CHAP authentication, an iSCSI host definition must have been created on the
HP 3PAR StoreServ Storage and the HP 3PAR OS CLI sethost initchap command must be
used to set the host CHAP secret.
The following example uses the host CHAP password host_secret0 for the ubuntuhost. Be
aware that CHAP secret must be at least 12 characters long.
Set the host CHAP secret.
# sethost initchap -f host_secret0 ubuntuhost
# showhost -chap
Id Name -Initiator_CHAP_Name- -Target_CHAP_Name-
6 ubuntuhost ubuntuhost --
Setting iSCSI CHAP on the Ubuntu Host
To set the host CHAP on the host, complete the following steps:
1. Go to the iSCSI Initiator host console, or, at a terminal, edit the /etc/iscsid.conf file
and enable CHAP authentication:
# 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. Configure the host CHAP password for the discovery and login session by setting the
OutgoingUsername and OutgoingPassword variables in the configuration file /etc/
iscsid.conf.
16 Configuring the HP 3PAR StoreServ Storage for iSCSI