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>
4.To set up discovery session CHAP authentication, first uncomment the following line: discovery.sendtargets.auth.authmethod = CHAP
5.Set a user name and password for a discovery session CHAP authentication of the initiator by the target(s) by editing the following lines:
discovery.sendtargets.auth.username =<iscsi_initiator_username> discovery.sendtargets.auth.password =<CHAP_initiator_password>
6.To set the user name and password for discovery session CHAP authentication of the target(s) by the initiator for Mutual CHAP, edit the following lines:
discovery.sendtargets.auth.username = <iscsi_target_username> discovery.sendtargets.auth.password_in = <CHAP_target_password>
7.The final configuration contained in the /etc/iscsi/iscsid.conf file may look like this:
node.session.auth.authmethod = CHAP
node.session.auth.username = iqn.2005- 03.com.redhat01.78b1b8cad821 node.session.auth.password = password_1 node.session.auth.username_in= iqn.1984- 05.com.dell:powervault.123456 node.session.auth.password_in = test1234567890 discovery.sendtargets.auth.authmethod = CHAP discovery.sendtargets.auth.username = iqn.2005- 03.com.redhat01.78b1b8cad821 discovery.sendtargets.auth.password = password_1
discovery.sendtargets.auth.username = iqn.1984- 05.com.dell:powervault. 123456discovery.sendtargets.auth.password_in = test1234567890
For SUSE Linux Enterprise Server SP3 Using The GUI
1.Click Desktop→ YaST→ iSCSI Initiator.
2.Click Service Start, then select When Booting.
3.Select Discovered Targets, then select Discovery.
4.Enter the IP address of the port.
5.Click Next.
6.Select any target that is not logged in and click Log in.
7.Select one of the following:
–If you are not using CHAP authentication, select No Authentication. Go to step 8. or
–If you are using CHAP authentication, enter the CHAP user name and password. To enable Mutual CHAP, select and enter the Mutual CHAP user name and password.
8.Repeat step 7 for each target until at least one connection is logged in for each controller.
9.Go to Connected Targets.
10.Verify that the targets are connected and the status is true.
41