HP 3PAR RedHat and Oracle Linux Implementation Guide

3. Perform discovery and login as described in “Discovering Devices with a Software iSCSI
Connection (page 112).
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 logins by completing the
following steps:
a. Perform an iSCSI Logout:
# iscsiadm -m node --logoutall=all
b. Remove the iSCSI Node:
# iscsiadm -m node -o delete -T iqn.2000-05.com.3pardata:20310002ac000079 -p
10.100.0.101,3260
c. Remove iSCSI targets:
# iscsiadm -m discovery -o delete -p 10.100.0.101
d. Stop and start the iSCSI daemon:
# /etc/init.d/iscsid stop
Stopping iSCSI daemon:
# /etc/init.d/iscsid start
Turning off network shutdown. Starting iSCSI daemon: [ OK ]
[ OK ]
e. Repeat the steps as described in “Creating the Software iSCSI Connection in RHEL 6 or
RHEL 5 Using the iscsiadm Command” (page 79) to rediscover the iSCSI target nodes
and create the iSCSI login sessions.
Setting the Host CHAP for RHEL 4
To set the host CHAP for RHEL 4, complete the following steps:
1. Go to the iSCSI Initiator host console, or, at a terminal, edit the /etc/iscsi/iscsid.conf
file and configure the host CHAP password.
DiscoveryAddress=10.0.0.10
DiscoveryAddress=10.0.0.20
OutgoingUsername=redhatlinux
OutgoingPassword=host_secret0
NOTE: You must have the OutgoingUsername and OutgoingPassword variables under
the DiscoveryAddress variable.
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.
Configuring CHAP for the iSCSI Host 85