Shrey wrote:
> Dear All,
> I started using/studying open-iscsi recently. I was wondering if there
> is any hard-coded limit to number of targets devices that can
> discovered per iSCSI target? Is there any hard-coded limit on the
> number of LUNs supported per target device (assuming that somehow HBA
> on iscsi target doesn't present any limit) ?

As others pointed out there is a module param for the max lun for 
iscsi_tcp, but that should actually be limited by a libiscsi/scsi-ml 
limit. libiscsi uses a function named int_to_scsilun in 
drivers/scsi/scsi_scan.c and as you can see that only implments 2 
levels. libiscsi/iscsi_tcp also does not do the device scanning (the 
iscsi layer only finds the targets) so we are limited by scsi_scan.c. To 
get the limits for that do "modinfo scsi_mod".

There is also a limit on the number of targets. Because we allocate a 
scsi_host per session, and the scsi layer uses a unsigned short for the 
host number the number of targets is 2^16.

You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to