LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-30-2012, 08:55 AM   #1
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Rep: Reputation: 14
Unable to change Negotiated iSCSI params in CentOS 6.2


Hello,

I found this link with guidance on how to performance tune iscsi.

My problem is either parameters are not being changed or they are not being reported correctly.

For instance, on the target (/etc/tgt/targets.conf) I've set this (on the global parameters section):
Code:
InitialR2T No
(I did uncomment the line)

Then restarted the target daemon (tgtd)

On the initiator side, the default iscsi.conf is set to
Code:
node.session.iscsi.InitialR2T = No
So I logon to the target with (this starts the iscsid daemon):

Code:
iscsiadm -m node -T iqn.choco.org.dev:disk1.disk -p 10.0.0.1 --login
But when I try (from the initiator):
Code:
iscsiadm -m session -P 2
from the initiator, this is what I get:
Quote:
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 262144
MaxXmitDataSegmentLength: 8192
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: Yes
MaxOutstandingR2T: 1
If I run:
Code:
iscsiadm -m node -T iqn.choco.org.dev:disk1.disk -p 10.0.0.1
I get this:

Quote:
node.session.iscsi.InitialR2T = No
I've even tried updating the InitialR2T setting with:
Code:
 iscsiadm -m node -T iqn.choco.org.dev:disk1.disk -p 10.0.0.1 --op=update -n node.session.iscsi.InitialR2T -v No
this made no difference

What is going on? I'm a bit confused.

Any ideas?

Thanks
 
Old 03-30-2012, 08:58 AM   #2
manyrootsofallevil
Member
 
Registered: Dec 2010
Distribution: Red Hat, Kubuntu
Posts: 130

Original Poster
Rep: Reputation: 14
nevermind

I've just added
Code:
InitialR2T No
to the target definition and it works fine now

D'oh

Like this:

Code:
<target iqn.choco.org.dev:disk1.disk>
backing-store /dev/sdb
InitialR2T No
</target>

Last edited by manyrootsofallevil; 04-02-2012 at 02:22 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 6 & iSCSI Vick Vega Linux - General 6 01-13-2012 12:13 PM
CentOS iSCSI MTU size shaticus Linux - Networking 5 11-21-2011 03:30 PM
Unable to dynamically create an array of params for execv in C nindzadza Programming 9 01-06-2011 12:51 PM
CentOS 5.3 - how can I set up a partition as an iscsi tartget slinx Red Hat 2 03-18-2010 11:00 AM
CentOS 4.4 iscsi-initiator IanDMac Linux - Software 0 01-01-2007 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration