Wyllys Ingersoll | 25 Aug 19:27 2014
Picon

_padding function changes parameter sizes

in iscsi_copy_operational_params, the conn->max_recv_dlength is set to
_padding (conn_conf->MaxRecvDataSegmentLength);

initiator_common.c:153 ::  conn->max_recv_dlength =
__padding(conn_conf->MaxRecvDataSegmentLength);

This (_padding) rounds up the value. If the configured
MaxRecvDataSegmentLength is set to the actual maximum (2^24 -1 :
16777215), the _padding function changes it to 16777216, causing the
comparison to fail since it is above the maximum and it resets the
value to the default minimum (262144).  This is probably not the
intended result.

The actual maximum is really 16777212 since 16777212 & 0x03 == 0,
which will cause it to pass thru the _padding function with no change.

The _padding issue probably affects other parameters as well, thats
the one where I first noticed the problem.

-Wyllys Ingersoll

--

-- 
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe@...
To post to this group, send email to open-iscsi@...
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

loulanguju | 21 Aug 05:44 2014

Any help or hint to compile open-iscsi-2.0-870.2 for kernel 2.6.18 ?

Any help or hint to compile open-iscsi-2.0-870.2 for kernel 2.6.28 ?

[root <at> SPA open-iscsi]# uname -a
Linux SPA 2.6.18-194.17.1.b1.07 #12 SMP Wed Jun 18 15:22:13 CST 2014 x86_64 x86_64 x86_64 GNU/Linux

[root <at> SPA open-iscsi]# gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)

[root <at> SPA open-iscsi]# make
make -C utils/open-isns
make[1]: Entering directory `/home/colibri/repos/open-iscsi/utils/open-isns'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/colibri/repos/open-iscsi/utils/open-isns'
make -C utils/sysdeps
make[1]: Entering directory `/home/colibri/repos/open-iscsi/utils/sysdeps'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/colibri/repos/open-iscsi/utils/sysdeps'
make -C utils/fwparam_ibft
make[1]: Entering directory `/home/colibri/repos/open-iscsi/utils/fwparam_ibft'
cc -O2 -g -fPIC -Wall -Wstrict-prototypes -I../../include -I../../usr -D_GNU_SOURCE   -c -o ../../usr/iscsi_net_util.o ../../usr/iscsi_net_util.c
In file included from ../../usr/iscsi_net_util.c:32:
../../usr/ethtool-copy.h:24: error: expected specifier-qualifier-list before ‘__u8’
../../usr/ethtool-copy.h: In function ‘ethtool_cmd_speed_set’:
../../usr/ethtool-copy.h:44: error: ‘struct ethtool_cmd’ has no member named ‘speed_hi’
../../usr/ethtool-copy.h: In function ‘ethtool_cmd_speed’:
../../usr/ethtool-copy.h:49: error: ‘struct ethtool_cmd’ has no member named ‘speed_hi’
../../usr/ethtool-copy.h: At top level:
../../usr/ethtool-copy.h:76: error: expected specifier-qualifier-list before ‘__u8’
../../usr/ethtool-copy.h:90: error: expected specifier-qualifier-list before ‘__u8’
../../usr/ethtool-copy.h:99: error: expected specifier-qualifier-list before ‘__u8’
../../usr/ethtool-copy.h:251: error: expected specifier-qualifier-list before ‘__u8’
../../usr/ethtool-copy.h:278: error: expected specifier-qualifier-list before ‘__u8’
../../usr/ethtool-copy.h:304: error: expected specifier-qualifier-list before ‘__u8’
../../usr/ethtool-copy.h:311: error: expected specifier-qualifier-list before ‘__u8’
../../usr/ethtool-copy.h:317: error: expected specifier-qualifier-list before ‘__u8’
../../usr/ethtool-copy.h:322: error: expected specifier-qualifier-list before ‘__u8’
../../usr/ethtool-copy.h:333: error: expected specifier-qualifier-list before ‘__u8’
../../usr/ethtool-copy.h:349: error: expected specifier-qualifier-list before ‘__u8’
make[1]: *** [../../usr/iscsi_net_util.o] Error 1
make[1]: Leaving directory `/home/colibri/repos/open-iscsi/utils/fwparam_ibft'
make: *** [user] Error 2


Thanks for your help?

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Wyllys Ingersoll | 21 Aug 23:10 2014
Picon

iscsi over RBD performance tips?


Im looking for suggestions about maximizing performance when using an RBD backend (Ceph) over a 10GB Ethernet link.  In my testing, I see the read throughput max out at about 100Mbyte/second for just about any block sizes above 4K (below 4K it becomes horribly slow) and write operations are about 40Mbyte/second.

Using librados directly to read from the same backend pool/image yields much higher numbers, so the issue seems to be in the iscsi/bs_rbd backend.  Regardless of the data sizes being read, the max thruput I am seeing is about 80% slower than using librados directly.

Any suggestions would be much appreciated.

thanks,
  Wyllys

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Redwood Hyd | 22 Aug 19:34 2014
Picon

Creating multiple TCP flows between initiator and target - 10Gbps link

Hi All
I am trying to  achieve10Gbps in my single initiator/single target env. (open-iscsi and IET)

I exported 3 Ramdisks, via 3 different IP aliases to initator, did three iscsi logins , 3 mounts points and then 3 fio jobs in parallel (256K block size each).

Question 1) Is above a real use case where  from same iscsi initiator  i did 3 iscsi logins to same target (via different IP  addresses) ?  Anything pros/cons with this. I get 9 Gbps WRITES in this configuration.

Question 2) What are the other best ways to  create parallel TCP flows  (because it seems open-iscsi  does'nt have   MC/S support)

Question 3)  In this scenario can I use dm-multipath - can someone suggest most common way so that at TCP level  i get multiple flows.

Thanks in Advance
Best Regards
---rh

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Redwood Hyd | 22 Aug 19:07 2014
Picon

Best way to create multiple TCP flows on 10 Gbps link

Hi All,
I am trying to achieve10Gbps in my single initiator/single target env. (open-iscsi and IET)

I exported 3 Ramdisks, via 3 different IP aliases to initator, did three iscsi logins , 3 mounts points and then 3 fio jobs in parallel (256K block size each).

Question 1) Is above a real use case where from same iscsi initiator i did 3 iscsi logins to same target (via different IP addresses) ? Anything pros/cons with this.

Question 2) What are the other best ways to create parallel TCP flows (because it seems open-iscsi does'nt have MC/S support)

Question 3) In this scenario can I use dm-multipath - can someone suggest most common way so that at TCP level i get multiple flows.

Thanks in Advance
Best Regards
---rh

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Gaofeng | 14 Aug 10:47 2014
Picon

Can i use open-iscsi in kernel(3.10.16) and CentOS 6.2 ?

My platform:  CentOS 6.2 

My kernel: 3.10.16
I use  open-iscsi-2.0-873。 When i make, It failed when "patch -p1 < 2.6.14-23_compat.patch".
I do not think i need 2.6.14-23_compat.patch in this kernel. 
My question:
1) Can open-iscsi support 3.10.16 kernel?
2)  Do i need any patch?

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
KUMAR NITISH | 30 Jul 08:19 2014
Picon

Getting log "Login authentication failed with target .." during login-redirect

Hi all,

I am using Dell EqualLogic array as target. When I make session with this target, I am getting logs as given below :

login response status 0101
Login authentication failed with target iqn.2001-05.com.equallogic:0-8a0906-964f1f903-d850018d2a253d5f-nitishk521
...
..
login response status 0000
Login Success: iqn.2001-05.com.equallogic:0-8a0906-964f1f903-d850018d2a253d5f-nitishk521 if=default addr=10.115.178.29:3260 (TPGT:1 ISID:0x1)


Since "login response status 0101" is for "iscsi login-redirect" , so why " Login authentication failed with target " message is coming..?
I think It's a bug and It should show the proper log message.


Thanks,
Nitish

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
KUMAR NITISH | 30 Jul 08:41 2014
Picon

Getting log-message "Login authentication failed with target .." during iSCSI login-redirect

Hi all,

I am using Dell EqualLogic array as target. When I make session with this target, I am getting the logs as given below :

login response status 0101
Login authentication failed with target iqn.2001-05.com.equallogic:0-8a0906-964f1f903-d850018d2a253d5f-nitishk521
..
..
login response status 0000
Login Success: iqn.2001-05.com.equallogic:0-8a0906-964f1f903-d850018d2a253d5f-nitishk521 if=default addr=10.115.178.29:3260 (TPGT:1 ISID:0x1)

Why log "Login authentication failed with target" shows on iSCSI login-redirect..?
I think It's a bug and It should show the proper message.

Regards,
Nitish

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Alex McWhirter | 29 Jul 03:39 2014
Picon

Multiple Targets Via Kernel Options

I'm using Ubuntu's MAAS system which boots nodes via PXE and feeds the kernel iSCSI options to boot the actual OS image. The MAAS server feeds kernel options such as...

iscsi_target_name=iqn.2004-05.com.ubuntu:maas:ephemeral-amd64-generic-trusty-release 
iscsi_target_ip=10.0.0.49
iscsi_target_port=3260 
iscsi_initiator=Alpha ip=::::Alpha:BOOTIF

I would like to pass a second "iscsi_target_name" option to have open-iscsi mount a second target at boot. The problem is that by passing a second "iscsi_target_name" option it causes open-iscsi causes boot errors referring a session that already exists. Is there a away to accomplish this via kernel options or should i put a shell script in the boot image to load the second target after init loads?

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
TriadicTech | 30 Jul 01:17 2014
Picon

Multiple iSCSI Targets Via Kernel Flags

Is it possible to use two "iscsi_target_name" flags at boot to mount two targets? Using two of these flags will throw session errors, so i was wondering if there was another way to accomplish this task.

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
shivraj dongawe | 30 Jul 11:08 2014
Picon

Sending more than one write request as a single write request

Hi all,

         I would like to ask one question regarding write command in iSCSI.
         Suppose I have info about few lbas, lengths and data at the lbas.
         Is it possible that I could send more number of lbas, lengths and data at those lbas in a single write command PDU 
         from initiator to target? 

--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Gmane