[OpenIndiana-discuss] Limit - 255 iSCSI targets

Mike La Spina mike.laspina at laspina.ca
Tue Apr 2 00:47:21 UTC 2013


Hi Geoff,

It looks like the itadm utility is limiting the number of targets. I have not walked all the code but I do not see any reason this cannot be increased to 1024 in the itadm user utility.

http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libiscsit/common/libiscsit.h


43<http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libiscsit/common/libiscsit.h#43>#define  MAX_TARGETS<http://src.illumos.org/source/s?refs=MAX_TARGETS&project=illumos-gate> 255 /* maximum targets that may be created */


You could submit an RFE for this one, it does look like a simple change.

Normally I would say 255 is more that a server should have defined but if the targets are largely idle then more than 255 would be a possible use case. Also with the ever increasing hardware capability emerging 255 will soon become a low limit.


Regards,

Mike

On 2013-04-01, at 7:59 AM, "Geoff Nordli" <geoffn at gnaa.net<mailto:geoffn at gnaa.net>> wrote:

On 13-03-31 01:20 AM, Mike La Spina wrote:
The maximum is actually 1024 on the iscsi port end:

xref: /illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/iscsit.h

55/* Max targets per system */
56#define    ISCSIT_MAX_TARGETS    1024

How have you determined it's 255?

Hi Mike.

I tested it using a for loop to create > 255

for i in {1..260}; do itadm create-target; done

then it will error out with the:

"Maximum of 255 iSCSI targets
itadm create-target failed with error 7

255 is a bit small, but 1024 would be enough for us; really it ought to be enough for anyone :)

Geoff


_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss at openindiana.org<mailto:OpenIndiana-discuss at openindiana.org>
http://openindiana.org/mailman/listinfo/openindiana-discuss


More information about the OpenIndiana-discuss mailing list