New iSCSI initiator with Dell TL2000
Edward Tomasz Napierała
trasz at FreeBSD.org
Tue Jul 14 15:24:53 UTC 2015
Sorry for delay. The debug log was quite useful - it shows that
the target drops the connection after the first PDU. Unfortunately,
I didn't have a slightest idea what could actually be wrong there.
The patch below is a shoot in the dark. Could you patch the source
tree, rebuild and reinstall world, run iscsid with debug, just like
before, and see if it makes any difference? (You actually only need
a new iscsid binary; if you don't want to rebuild everything just tell
me, I'll send you the executable.)
If it doesn't - could you make a packet dump of a working session
establishment (ie with iscontrol), using tcpdump like below (substitute
em0 with your network interface) and send it to me:
tcpdump -s0 port 3260 -i em0 -w meh.pcap
Index: usr.sbin/iscsid/discovery.c
===================================================================
--- usr.sbin/iscsid/discovery.c (revision 285383)
+++ usr.sbin/iscsid/discovery.c (working copy)
@@ -89,7 +89,7 @@ text_new_request(struct connection *conn)
bhstr->bhstr_target_transfer_tag = 0xffffffff;
bhstr->bhstr_initiator_task_tag = 0; /* XXX */
- bhstr->bhstr_cmdsn = 0; /* XXX */
+ bhstr->bhstr_cmdsn = htonl(1); /* XXX */
bhstr->bhstr_expstatsn = htonl(conn->conn_statsn + 1);
return (request);
@@ -133,7 +133,7 @@ logout_new_request(struct connection *conn)
bhslr->bhslr_reason = BHSLR_REASON_CLOSE_SESSION;
bhslr->bhslr_reason |= 0x80;
bhslr->bhslr_initiator_task_tag = 0; /* XXX */
- bhslr->bhslr_cmdsn = 0; /* XXX */
+ bhslr->bhslr_cmdsn = htonl(1); /* XXX */
bhslr->bhslr_expstatsn = htonl(conn->conn_statsn + 1);
return (request);
Index: usr.sbin/iscsid/login.c
===================================================================
--- usr.sbin/iscsid/login.c (revision 285383)
+++ usr.sbin/iscsid/login.c (working copy)
@@ -298,7 +298,7 @@ login_new_request(struct connection *conn, int csg
memcpy(bhslr->bhslr_isid, &conn->conn_isid, sizeof(bhslr->bhslr_isid));
bhslr->bhslr_tsih = htons(conn->conn_tsih);
bhslr->bhslr_initiator_task_tag = 0;
- bhslr->bhslr_cmdsn = 0;
+ bhslr->bhslr_cmdsn = htonl(1);
bhslr->bhslr_expstatsn = htonl(conn->conn_statsn + 1);
return (request);
On 0521T1107, Andrea Brancatelli wrote:
> Hello,
>
> sorry for the delay, but the machine is in production and we dont' have
> many circunstances for experimentations.
>
> This is the machine:
>
> [root at arsenico ~]# freebsd-version
> 10.1-RELEASE-p10
> [root at arsenico ~]#
>
> So, we started iscsid -d and this is the output we got:
>
> [root at arsenico ~]# while :; do iscsid -d; done
> iscsid: waiting for request from the kernel
> iscsid: not forking due to -d flag; will exit after servicing a single
> request
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0): connecting to
> 10.40.2.100
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0): setting session
> timeout to 60 seconds
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0): Capsicum
> capability mode enabled
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0): beginning Login
> phase; sending Login PDU
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0): key to send:
> "AuthMethod=None"
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0): key to send:
> "InitiatorName=iqn.1994-09.org.freebsd:arsenico.roma.schema31.it"
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0): key to send:
> "SessionType=Normal"
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0): key to send:
> "TargetName=iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0"
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0): exiting due to timeout
> iscsid: waiting for request from the kernel
> iscsid: not forking due to -d flag; will exit after servicing a single
> request
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.1): connecting to
> 10.40.2.100
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.1): setting session
> timeout to 60 seconds
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.1): Capsicum
> capability mode enabled
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.1): beginning Login
> phase; sending Login PDU
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.1): key to send:
> "AuthMethod=None"
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.1): key to send:
> "InitiatorName=iqn.1994-09.org.freebsd:arsenico.roma.schema31.it"
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.1): key to send:
> "SessionType=Normal"
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.1): key to send:
> "TargetName=iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.1"
> iscsid: 10.40.2.100
> (iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.1): exiting due to timeout
>
>
> If you need else feel free to ask, we'll try to give you some more infos.
>
>
> Il 05/03/15 18:08, Edward Tomasz Napierała ha scritto:
> > On 0305T1600, Andrea Brancatelli wrote:
> >> Hello everybody.
> >>
> >> We have a marvelous Dell Powervault TL2000 here, with the iSCSI bridge.
> >>
> >> Our "backup server", with Bacula running on it, used to be a 9.1 machine
> >> and used to work ok :-)
> >>
> >> Today we upgraded to FreeBSD 10 and tried to switch to new iscsid, but
> > FreeBSD 10.what exactly? 10.1?
> >
> >> we weren't able to connect to the iSCSI device.
> >>
> >> This is what we found in the TL2000 log file:
> >>
> >>
> >> Mar 5 14:51:15 (UTC) bwcore[216]: iSCSI: Connection accepted from 10.40.3.1
> >> Mar 5 14:51:15 (UTC) bwcore[238]: iSCSI: New session from
> >> iqn.1994-09.org.freebsd:arsenico.roma.schema31.it to
> >> iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0
> >> Mar 5 14:51:15 (UTC) bwcore[238]: iSCSI: request to login to target
> >> iqn.1988-11.com.dell.20278e:eui.5000e111456c2002.0
> >> Mar 5 14:51:15 (UTC) bwcore[238]: iSCSI: Login request with illegal stage
> >> Mar 5 14:51:15 (UTC) bwcore[238]: iSCSI: Local socket closure
> >> Mar 5 14:52:45 (UTC) bwcore[216]: iSCSI: Connection accepted from 10.40.3.1
> > Could you do this: kill iscsid (pkill iscsid), then start iscsid like this:
> >
> > while :; do iscsid -d; done
> >
> > ... then, with this running in a terminal, try to add the session,
> > then copy/paste the output and mail me? Thanks!
> >
>
> --
> *Andrea Brancatelli
>
> Schema31 S.p.A.
> Responsabile IT*
>
> BO - FI - ROMA - PA
> ITALY
> Tel: +39.06.98358472
> Cell: +39.331.2488468
> Fax: +39.055.71880466
> Società del gruppo SC31 ITALIA
> _______________________________________________
> freebsd-scsi at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-scsi
> To unsubscribe, send any mail to "freebsd-scsi-unsubscribe at freebsd.org"
More information about the freebsd-scsi
mailing list