HP 3PAR RedHat and Oracle Linux Implementation Guide

3. Perform discovery and login as describe 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. Make sure to remove the iSCSI persistent files under these directories:
/var/lib/iscsi/send_targets/
/var/lib/iscsi/nodes/
For example:
# ls -l /var/lib/iscsi/send_targets/*
# ls -l /var/lib/iscsi/nodes/*
# rm -rf /var/lib/iscsi/send_targets/*
# rm -rf /var/lib/iscsi/nodes/*
f. 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 Bidirectional CHAP for RHEL 4
To configure the bidirectional CHAP for RHEL 4, complete the following steps.
88 Configuring a Host with iSCSI