68 Appendix—Manual Configuration of iSCSI
5
Remove the target portal that you configured on the storage array during
target discovery:
iscsicli RemoveTargetPortal <IP_address>
<TCP_listening_port>
6
Add the target portal with CHAP defined:
iscsicli QAddTargetPortal
<IP_address_of_iSCSI_port_on_storage_array>
[CHAP_username]
[CHAP_password]
where, [CHAP_username] is the initiator name and [CHAP_password] is
the target CHAP secret.
If you require a discovery session failover, repeat step5 for all iSCSI ports
on the storage array. Otherwise, single-host port configuration is sufficient.
If you are using Red Hat Enterprise Linux 5, Red Hat Enterprise Linux 6,
SUSE Linux Enterprise Server 10, or SUSE Linux Enterprise Server 11:
1
To enable CHAP (optional), the following line needs to be enabled in your
/etc/iscsi/iscsid.conf
file:
node.session.auth.authmethod = CHAP
2
To set a user name and password for CHAP authentication of the initiator
by the target(s), edit the following lines:
node.session.auth.username =
<iscsi_initiator_username>
node.session.auth.password =
<CHAP_initiator_password>
3
If you are using Mutual CHAP authentication, you can set the user name
and password for CHAP authentication of the target(s) by the initiator by
editing the following lines:
node.session.auth.username_in=
<iscsi_target_username>
node.session.auth.password_in =
<CHAP_target_password>
book.book Page 68 Sunday, September 11, 2011 10:24 PM