HP 3PAR Ubuntu Operating System Implementation Guide
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 Ubuntu Using
the iscsiadm Command” (page 15).
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 and start the open-iscsi daemon:
# /etc/init.d/open-iscsi stop
Logout 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 Ubuntu Using the
iscsiadm Command” (page 15) 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.
Connecting a Host Server with iSCSI 17