RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 802253 - tgtd fails to present more than 255 LUs to single target
Summary: tgtd fails to present more than 255 LUs to single target
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: scsi-target-utils
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: David Lehman
QA Contact: Bruno Goncalves
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-12 08:27 UTC by Bruno Goncalves
Modified: 2021-09-02 08:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-15 07:24:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
setup 512 LUs (2.03 KB, application/x-shellscript)
2012-03-12 08:27 UTC, Bruno Goncalves
no flags Details

Description Bruno Goncalves 2012-03-12 08:27:49 UTC
Created attachment 569299 [details]
setup 512 LUs

Description of problem:
When creating more than 255 LU for a single target only 255 are presented to initiator.

When creating the LUs no error is reported.

Version-Release number of selected component (if applicable):
scsi-target-utils-1.0.14-4.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Run the attached script to create 512 LUs (tgtd.sh)
2. iscsiadm -m discovery -p localhost -t st
3. iscsiadm -m node -l
4. iscsiadm -m session -P3 | grep sd | wc
  
Actual results:
Only 255 devices are shown

Expected results:
Should be able to login to all 512 devices


Additional information:
/var/log/messages shows the following error:
host 5 channel 0 id 0 lun16640 has a LUN larger than allowed by the host adapter

tgt-admin -s shows LUN information correctly.
        LUN: 512
            Type: disk
            SCSI ID: 512
            SCSI SN: 512

Comment 1 Mike Christie 2012-03-13 22:30:36 UTC
It seems tgtd is not sending the lun info how scsi-ml likes it. You can simpify this by just doing a target like this:

<target iqn.2008-09.com.tgtd.meanminna>
    <backing-store /tmp/loop-disk-1-1>
        scsi_sn 512
        scsi_id 512
        lun 512
    </backing-store>
</target>

remember for iscsi_tcp to increase the max_lun

modprobe iscsi_tcp max_lun=513

Comment 2 RHEL Program Management 2012-05-03 05:44:23 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Bruno Goncalves 2013-08-27 19:24:07 UTC
Verified fix on 2.6.32-397.el6.x86_64.

iscsiadm -m discovery -p localhost -t st
[  OK  ] iscsid: [  OK  ]
[::1]:3260,1 iqn.2009-10.com.redhat:storage-1

iscsiadm -m node -l
Logging in to [iface: default, target: iqn.2009-10.com.redhat:storage-1, portal: ::1,3260] (multiple)
Login to [iface: default, target: iqn.2009-10.com.redhat:storage-1, portal: ::1,3260] successful.

iscsiadm -m session -P3 | grep sd | wc
    512    3072   21992

cat /sys/module/iscsi_tcp/parameters/max_lun 
4294967295

Comment 6 RHEL Program Management 2020-12-15 07:24:56 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Comment 7 Pavel Najman 2021-09-02 08:06:47 UTC
Changing to new sst Storage IO


Note You need to log in before you can comment on or make changes to this bug.