[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

After discovery, how do I create sessions?



I'm using the iscsi-tcp module in linux-2.6.15.6 and the
linux-iscsi-5.0.0.0.3rc6-36 user space tools.  The targets are on a
third-party iSCSI device used as an archiver and tape backup system.
I think that this device may be running BSD.

Discovery seems to work:

 # iscsiadm -m discovery --type sendtargets --portal=10.10.11.48
 [027515] 10.10.11.48:3260,1 eui.000b560000004285
 [027516] 10.10.11.48:3260,1 eui.000b560000004286

 # iscsiadm -m node
 [027515] 10.10.11.48:3260,1 eui.000b560000004285
 [027516] 10.10.11.48:3260,1 eui.000b560000004286

But I'm not able to initiate sessions to these devices.  Perhaps I
don't understand what I'm expected to do.

  # sudo iscsiadm -d8 -m node --record=027515 --login
  iscsiadm: updating defaults from '/etc/iscsid.conf'
  iscsiadm: updated 'discovery.sendtargets.auth.authmethod', 'None' => 'None'
  iscsiadm: updated 'node.startup', 'manual' => 'manual'
  iscsiadm: updated 'node.session.timeo.replacement_timeout', '0' => '0'
  iscsiadm: updated 'node.session.err_timeo.abort_timeout', '10' => '10'
  iscsiadm: updated 'node.session.err_timeo.reset_timeout', '30' => '30'
  iscsiadm: updated 'node.session.iscsi.InitialR2T', 'No' => 'No'
  iscsiadm: updated 'node.session.iscsi.ImmediateData', 'Yes' => 'Yes'
  iscsiadm: updated 'node.session.iscsi.FirstBurstLength', '262144' => '262144'
  iscsiadm: updated 'node.session.iscsi.MaxBurstLength', '16776192' => '16776192'
  iscsiadm: updated 'node.session.iscsi.DefaultTime2Wait', '0' => '0'
  iscsiadm: updated 'node.session.iscsi.DefaultTime2Retain', '0' => '0'
  iscsiadm: updated 'node.session.iscsi.MaxConnections', '1' => '0'
  iscsiadm: updated 'node.session.auth.authmethod', 'None' => 'None'
  iscsiadm: searching for key '10.10.11.48:3260#10.10.11.48:3260,1#eui.000b560000004285'
  iscsiadm: iscsid reported error (9 - internal error)

I've run the daemon with debuging enabled, but it doesn't give me much
more information.

  # sudo /usr/local/bin/iscsid -d9 -f
  iscsid: IPC socket is listening...
  iscsid: in ctldev_open
  iscsid: created NETLINK_ISCSI socket...
  iscsid: InitiatorName=iqn.1987-05.com.cisco:01.da61dbb86a5
  iscsid: InitiatorName=iqn.1987-05.com.cisco:01.da61dbb86a5
  iscsid: InitiatorAlias=alice.kenjenfwy.com
  iscsid: version 0.3 variant (22-Apr-2005)
  iscsid: in ktrans_list
  iscsid: synced 1 transport(s)
  iscsid: detected poll event 1
  iscsid: updating defaults from '/etc/iscsid.conf'
  iscsid: updated 'discovery.sendtargets.auth.authmethod', 'None' => 'None'
  iscsid: updated 'node.startup', 'manual' => 'manual'
  iscsid: updated 'node.session.timeo.replacement_timeout', '0' => '0'
  iscsid: updated 'node.session.err_timeo.abort_timeout', '10' => '10'
  iscsid: updated 'node.session.err_timeo.reset_timeout', '30' => '30'
  iscsid: updated 'node.session.iscsi.InitialR2T', 'No' => 'No'
  iscsid: updated 'node.session.iscsi.ImmediateData', 'Yes' => 'Yes'
  iscsid: updated 'node.session.iscsi.FirstBurstLength', '262144' => '262144'
  iscsid: updated 'node.session.iscsi.MaxBurstLength', '16776192' => '16776192'
  iscsid: updated 'node.session.iscsi.DefaultTime2Wait', '0' => '0'
  iscsid: updated 'node.session.iscsi.DefaultTime2Retain', '0' => '0'
  iscsid: updated 'node.session.iscsi.MaxConnections', '1' => '0'
  iscsid: updated 'node.session.auth.authmethod', 'None' => 'None'
  iscsid: searching for key '10.10.11.48:3260#10.10.11.48:3260,1#eui.000b560000004285'
  iscsid: in ktrans_list
  iscsid: thread b7cf6b04 schedule: delay 0 state 2
  iscsid: no authentication configured...
  iscsid: resolved 10.10.11.48 to 10.10.11.48
  iscsid: set TCP recv window size to 524288, actually got 1048576
: set TCP send window size to 524288, actually got 1048576
  iscsid: connecting to 10.10.11.48:3260 ip_length 4
  iscsid: event_type: 2 adding to the tail: 0x0x806d1d0:0x0x806d1d0:0x0x806d1e4:0x0x80711d0 elem 0x0x806d1d0 length 20
  iscsid: thread b7cf6b04 schedule: delay 0 state 1
  iscsid: thread b7cd6538 schedule: delay 60 state 2
  iscsid: thread b7cd6538 wait some more
  iscsid: event_type: 2 removing from the head: 0x0x806d1d0:0x0x806d1e4:0x0x806d1e4:0x0x80711d0 elem 0x0x806d1d0 length 20
  iscsid: connected local port 57915 to 10.10.11.48:3260
  iscsid: thread b7cd6538 delete: state 0
  iscsid: deleting a scheduled/waiting thread!
  iscsid: in kcreate_session
  iscsid: in __kipc_call
  iscsid: in kwritev
  iscsid: in nlpayload_read
  iscsid: in nlpayload_read
  iscsid: can't create session (115)
  iscsid: thread b7cf6b04 delete: state 2
  iscsid: thread b7cf6b04 removed from actor_list

There are a couple of packets exchanged between the GNU/Linux machine
and the iSCSI target, but it's just a SYN, SYN/ACK, ACK triplet.

Pointers will be appreciated.

Cheers.





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
linux-iscsi-users mailing list
linux-iscsi-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/linux-iscsi-users

[IP Storage]     [IETF]     [Linux SCSI]     [iSCSI Book]     [Linux Resources]     [Yosemite News]     [Photo]     [Home]     [IETF Announcements]     [IETF Discussion]     [SCSI Hardware]