Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 145141

Summary: iscsi-ls -l doesn't enumerate the devices correctly.
Product: Red Hat Enterprise Linux 3 Reporter: Wayne Berthiaume <berthiaume_wayne>
Component: iscsi-initiator-utilsAssignee: AJ Lewis <157070.alewis>
Status: CLOSED ERRATA QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: 157070.alewis, conway_heather, coughlan, davidw, rkenna
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-25 16:27:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Initial patch to fix the > 26 lun bug none

Description Wayne Berthiaume 2005-01-14 18:38:52 UTC
Description of problem:


Version-Release number of selected component (if applicable):
3.6.2

How reproducible:
always

Steps to Reproduce:
Server has three NICs, two are connected to the VLAN on two seperate 
subnets for iSCSI targets. There are two iSCSI arrays on the VLAN 
with two connections each one to one subnet and one to the other 
subnet. Therefore this is a multipathing configuration. There are 34 
LUNs assigned between the two storgae arrays to the one server. 
Therefore, the server sees two paths to each LUN for a yield of 68 
LUNs seen by the OS.

1.Installed RHEL U3 (lk 2.4.21-27.EL) updated to lk 2.4.21-27.0.1.EL
2.set up iSCSI with defaults in the iscsi.conf file
3.From a root prompt issue iscsi-ls -l
  
Actual results:
1) Only shows /dev/sda thru sdz all other LUNs are listed but 
no /dev/sd psuedo device names.
2) The enumeration is not correct. iscsi-ls() associates the psuedo 
device names incorrectly. Associating them with the first 26 LUNs in 
order that they are listed by iscsi-ls() output.
Expected results:
iscsi-ls() should report all the devices that are attached to an 
iscsi initiator and report them according to the initiator they are 
connected to correctly.


Additional info:

Comment 1 Wayne Berthiaume 2005-01-14 18:48:20 UTC
Sorry... This is RHEL 3.0 U4.

Comment 3 Tom Coughlan 2005-02-01 20:25:31 UTC
*** Bug 146812 has been marked as a duplicate of this bug. ***

Comment 4 AJ Lewis 2005-02-15 17:38:37 UTC
I'm a bit confused about what you mean in item 2.  Could you provide the
erroneous output for me?

Comment 5 AJ Lewis 2005-02-15 17:53:36 UTC
Created attachment 111094 [details]
Initial patch to fix the > 26 lun bug

Here's an initial stab at a fix for this one:
allow the device name to be 4 characters, but verify the 4th character is an 
alphabetic character so we don't get /dev/sda1 in the output

This should catch the double letter sdxx devices, but avoid the sdx1 partitions

Comment 6 AJ Lewis 2005-02-16 18:19:18 UTC
There is an i386 rpm at
http://people.redhat.com/alewis/rpms/iscsi-initiator-utils-3.6.2-6.i386.rpm that
includes the patch from comment #5.  Please try this and see if it fixes the
problem.  Note that this RPM is unsupported.

Comment 7 Wayne Berthiaume 2005-02-17 23:44:39 UTC
I was unable to install the rpm. I tried -Uvh and it complained of a conflict 
with the original iscsi init script. To install the package I erased the 
original package then installed, with -ivh, the new package. I receive this 
error when I try to start the iscsi driver with a "service iscsi start" command:

Feb 17 18:25:59 l82bi121 iscsid[4615]: version 3.6.2 (27-Sep-2004)
Feb 17 18:25:59 l82bi121 iscsid[4615]: failed to check INBP boot status while da
emon starting errno = 22
Feb 17 18:25:59 l82bi121 iscsid[4615]: INBP ioctl not implemented in the install
ed iSCSI driver version
Feb 17 18:25:59 l82bi121 kernel: ioctl32(iscsid:4615): Unknown cmd fd(3) cmd(004
7030b){00} arg(08064520) on /dev/iscsictl
Feb 17 18:26:04 l82bi121 iscsi:  failed


Comment 8 AJ Lewis 2005-02-22 17:34:13 UTC
What is the kernel version you are using?

Comment 9 Wayne Berthiaume 2005-02-28 16:06:02 UTC
The kernel is 2.4.21.-27.EL SMP x86_64.

Comment 10 AJ Lewis 2005-02-28 16:08:38 UTC
Well, that explains it - the rpm i posted on my peoples page is for x86, not
x86_64!  I'll put an x86_64 rpm up as well.

Comment 12 Wayne Berthiaume 2005-02-28 22:41:10 UTC
I've downloaded it and will update with a new status.

Comment 13 AJ Lewis 2005-03-07 15:08:01 UTC
Any status updates from people trying this?

Comment 14 Wayne Berthiaume 2005-03-28 18:49:52 UTC
AJ, I've tested the -i386 package you posted and it worked properly. 
Thank you.

Comment 15 Heather Conway 2005-04-08 15:24:55 UTC
Testing is in process 

Comment 16 Wayne Berthiaume 2005-04-08 16:19:02 UTC
Hi AJ.
    I've tested the RHEL U5 beta for this issue and it appears to be corrected.
Thank you.
Wayne.