Enable chap for the microsoft iscsi initiator, Enable chap for the open-iscsi iscsi initiator – HP EVA P6000 Storage User Manual
Page 135
Enable CHAP for the Microsoft iSCSI Initiator
1.
Click Discovery. For manually discovering iSCSI target portals:
a.
Click Add under Target Portals.
b.
Enter the IP address of the iSCSI port of the iSCSI or iSCSI/FCoE module.
c.
Click Advanced.
d.
Select the CHAP Login Information checkbox.
e.
Enter the CHAP secret for the iSCSI or iSCSI/FCoE module's-discovered iSCSI Initiator in
the Target Secret box, for example, CHAPsecret01.
f.
Click OK and the initiator completes Target discovery. Using iSNS for target discovery:
•
Click Add under iSNS Servers.
•
Enter the IP address of the iSNS server.
•
Click OK.
2.
Click Targets and select the appropriate target for login.
3.
Click Log On and then click Advanced.
4.
Select the CHAP Login Information checkbox.
5.
Enter the CHAP secret for the iSCSI or iSCSI/FCoE module's-discovered iSCSI Initiator in the
Target Secret box.
6.
Click OK.
7.
Click OK again.
Enable CHAP for the open-iscsi iSCSI Initiator
To enable CHAP in open-iscsi, you need to edit /etc/iscsi/iscsid.conf file:
1.
Enable CHAP for both Discovery and Normal Session by:
node.session.auth.authmethod = CHAP
node.session.auth.authmethod = CHAP
2.
Setup Username and Password for Initiator for Normal Session. For Example:
# To set a CHAP username and password for initiator
# authentication by the target(s), uncomment the following lines:
#node.session.auth.username = username
#node.session.auth.password = password
node.session.auth.username = iqn.1994-05.com.redhat:fc813cac13.
sanergy33
node.session.auth.password = CHAPSecret01
3.
Setup Username and Password for Initiator for Discovery Session. For example:
# To set a discovery session CHAP username and password for the initiator
# authentication by the target(s), uncomment the following lines:
#discovery.sendtargets.auth.username = username
#discovery.sendtargets.auth.password = password
discovery.sendtargets.auth.username = iqn.1994-05.com.redhat:fc813cac13.
sanergy33
discovery.sendtargets.auth.password = CHAPSecret01
4.
Save the file and start or restart iscsi:
[root@sanergy33 iscsi]# /etc/init.d/iscsi start
or /etc/init.d/iscsi
restart
5.
Using the iscsiadm do a discovery. For example:
[root@sanergy33 iscsi]# iscsiadm -m discovery -t sendtargets -p
10.10.1.23
Set up the iSCSI Initiator
135