User Manual

Rev 2.2-1.0.1
Mellanox Technologies
316
Step 2. Configure the Initiator.
[[root@sqa070 ~ ]# vim /etc/iscsi/iscsid.conf
node.startup = automatic
## Optional: for CHAP authentication, uncomment the following #lines
#discovery.sendtargets.auth.authmethod = CHAP
#discovery.sendtargets.auth.username = joe
#discovery.sendtargets.auth.password = secret
#node.session.auth.authmethod = CHAP
#node.session.auth.username = jack
#node.session.auth.password = 12charsecret
node.session.timeo.replacement_timeout = 120
node.conn[0].timeo.login_timeout = 15
node.conn[0].timeo.logout_timeout = 15
node.conn[0].timeo.noop_out_interval = 10
node.conn[0].timeo.noop_out_timeout = 15
node.session.initial_login_retry_max = 10
node.session.cmds_max = 128
node.session.queue_depth = 32
node.session.iscsi.InitialR2T = No
node.session.iscsi.ImmediateData = Yes
node.session.iscsi.FirstBurstLength = 262144
node.session.iscsi.MaxBurstLength = 16776192
node.conn[0].iscsi.MaxRecvDataSegmentLength = 131072
discovery.sendtargets.iscsi.MaxRecvDataSegmentLength = 32768
node.session.iscsi.FastAbort = No
Step 3. Start the iSCSI Initiator service.
[root@sqa070 ~ ]# service iscsi start
Step 4. Discover the iSCSI target host.
In the example below, the IP address 12.7.6.30 is the iSCSI target.
[root@sqa070 ~ ]# iscsid start
[root@sqa070 ~ ]# iscsiadm -m discovery -t st -p 12.7.6.30
Starting iscsid: [ OK ]
12.7.6.30:3260,1 iqn.2013-10.qalab.com:sqa030.prt9
Achieving a successful target discovery at this stage is mandatory for proceeding with the
process of iSCSI boot. A failure at this stage is probably a result of an erroneous target or
network configuration and troubleshooting that is out of the scope of this document.
Step 5. Log into the target.
[root@sqa070 ~ ]# iscsiadm -m node -p 12.7.6.30 -T iqn.2013-10.qalab.com:sqa030.prt9
--login
Logging in to [iface: default, target: iqn.2013-10.qalab.com:sqa030.prt9, portal:
12.7.6.30,3260] (multiple)
Login to [iface: default, target: iqn.2013-10.qalab.com:sqa030.prt9, portal:
12.7.6.30,3260] successful.
A successful LUN login at this stage is mandatory for proceeding with the process of
iSCSI boot. A failure at this stage is probably a result of an erroneous target or network
configuration and troubleshooting that is out of the scope of this document.