beautypg.com

HP EVA P6000 Storage User Manual

Page 143

background image

3.

Setup Username and Password for Initiator and Portal 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
# To set a discovery session CHAP username and password for target(s)
# authentication by the initiator, uncomment the following lines:
#discovery.sendtargets.auth.username_in = username_in
discovery.sendtargets.auth.username_in = iqn.2004-09.com.hp.fcgw.mez50.1.01.50014380025da538
#discovery.sendtargets.auth.password_in = password_in
discovery.sendtargets.auth.password_in = hpstorageworks

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

6.

Using the iscsiadm do a login into the iSCSI Target. For example:

[root@sanergy33 iscsi]# iscsiadm --mode node --targetname

iqn.2004-09.com.hp.fcgw.mez50.1.01.50014380025da538 –login

The following is a sample iscsid.conf file for CHAP:

# *************
# CHAP Settings
# *************
# To enable CHAP authentication set node.session.auth.authmethod
# to CHAP. The default is None.
#node.session.auth.authmethod = CHAP
node.session.auth.authmethod = CHAP

# 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.username =
iqn.1994-05.com.redhat:fc813cac13.sanergy33
#node.session.auth.password = password
node.session.auth.password = CHAPSecret01

# To set a CHAP username and password for target(s)
# authentication by the initiator, uncomment the following lines:
#node.session.auth.username_in = username_in
node.session.auth.username_in =
iqn.2004-09.com.hp.fcgw.mez50.1.01.50014380025da538
#node.session.auth.password_in = password_in
node.session.auth.password_in = hpstorageworks

# To enable CHAP authentication for a discovery session to the target
# set discovery.sendtargets.auth.authmethod to CHAP. The default is None.
#discovery.sendtargets.auth.authmethod = CHAP
discovery.sendtargets.auth.authmethod = CHAP

# 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.username =
iqn.1994-05.com.redhat:fc813cac13.sanergy33
#discovery.sendtargets.auth.password = password
discovery.sendtargets.auth.password = CHAPSecret01

# To set a discovery session CHAP username and password for target(s)
# authentication by the initiator, uncomment the following lines:
#discovery.sendtargets.auth.username_in = username_in
discovery.sendtargets.auth.username_in =
iqn.2004-09.com.hp.fcgw.mez50.1.01.50014380025da538
#discovery.sendtargets.auth.password_in = password_in
discovery.sendtargets.auth.password_in = hpstorageworks

Set up the iSCSI Initiator

143