HP 3PAR SUSE Linux Enterprise Implementation Guide

3. Login to iscsiadm:
# iscsiadm --mode node login
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 SUSE Linux iscsiadm command usage, run the man iscsiadm
and see the online documents in the /usr/share/doc/packages/open-iscsi folder.
Configuring Challenge-Handshake Authentication Protocol (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 iSCSI Host Definition (page 19).
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 host. Be aware that
CHAP secret must be at least 12 characters long.
Set the host CHAP secret.
# sethost initchap -f host_secret0 SuSElinux
Verify the host CHAP secret.
# showhost -chap
Id Name -Initiator_CHAP_Name- -Target_CHAP_Name-
0 SuSElinux SuSElinux --
Setting the Host CHAP for SUSE on the Host
To set the host CHAP on the host, complete the following steps:
Configuring Challenge-Handshake Authentication Protocol (CHAP) for the iSCSI Host 41