Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2017 15:49:41 +0500
From:      "Eugene M. Zheganin" <emz@norma.perm.ru>
To:        "Eugene M. Zheganin" <emz@norma.perm.ru>, freebsd-stable@freebsd.org
Cc:        =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= <etnapierala@gmail.com>
Subject:   Re: ctld: only 579 iSCSI targets can be created
Message-ID:  <739fe048ccbe15c096ec79fc320eee56@norman-vivat.ru>
In-Reply-To: <20170922071554.GA3846@brick>
References:  <04e8820c2c6cc7a95d6ffdf257f00f7d@norman-vivat.ru> <20170922071554.GA3846@brick>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

Edward Tomasz NapieraƂa wrote 2017-09-22 12:15:
> 
> There are two weird things here.  First is that the error is coming 
> from
> ctld(8) - the userspace daemon, not the kernel.  The second is that 
> those
> invalid opcodes are actually both valid - they are the Text Request,
> and the Logout Request with Immediate flag set, exectly what you'd 
> expect
> for a discovery session.
> 
> Do you have a way to do a packet dump?

Sure. Here it is:

http://enaza.ru/stub-data/iscsi-protocol-error.pcap

Target IP is 10.0.2.4, initiator IP is 10.0.3.127. During the session 
captured in this file I got in messages:

Sep 22 15:38:11 san1 ctld[61373]: 10.0.3.127 
(iqn.1991-05.com.microsoft:worker296): protocol error: received invalid 
opcode 0x4
Sep 22 15:38:11 san1 ctld[61374]: 10.0.3.127 
(iqn.1991-05.com.microsoft:worker296): protocol error: received invalid 
opcode 0x46

This error happens when the initiator is trying to connect the disk from 
a target discovered.

Target is running FreeBSD 11.0-STABLE #1 r310734M where M is for 
CTL_MAX_PORTS 1024 (old verion, yup, but I have a suspicion that I still 
failed to prove that more recent version have some iSCSI vs ZFS 
conflict, but that's another story). Initiator is running Windows 7 
Professional x64, inside a ESX virtual machine. This happens only when 
some unclear threshold is crossed, previous ~2 hundreds of initiators 
run Windows 7 Professional too.

If you need any additional data/diagnostics please let me know.

Eugene.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?739fe048ccbe15c096ec79fc320eee56>