HP 3PAR SUSE Linux Enterprise Implementation Guide

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 again editing the
configuration file /etc/iscsid.conf file.
NOTE: The OutgoingUsername variable can be set to anything you want, but the
OutgoingPassword has to be the same as the host CHAP secret configured on the HP 3PAR
StoreServ Storage.
3. Perform discovery and login as described in “Creating the iSCSI Connection in SUSE Using
the iscsiadm Command” (page 40).
If the targets have been discovered previously, you must logout of the iSCSI sessions, delete
the node and send target records before performing discovery and login by completing the
following steps:
a. Stop the open-iSCSI daemon:
# /etc/init.d/open-iscsi stopLogout session [0][10.1.1.100:3260 iqn.2000-05.com.3pardata:20110002ac0001a6"]
Logout session [1][10.0.0.200:3260 iqn.2000-05.com.3pardata:21110002ac0001a6]
done
Stopping iSCSI initiator service: done
b. Delete the target node records:
/etc/iscsi/nodes/#rm -r iqn.2000-05.com.3pardata:20110002ac0001a6
c. Delete the send_target records:
/etc/iscsi/send_targets/#rm 10.0.0.200,3260
d. Start the open-iscsi daemon:
/etc/init.d/open-iscsi start
Starting iSCSI initiator service: done
Setting up iSCSI targets: done
e. Repeat the steps as described in “Creating the iSCSI Connection in SUSE Using the
iscsiadm Command” (page 40) 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.
42 Configuring a Host with iSCSI