Bug 145141 - iscsi-ls -l doesn't enumerate the devices correctly.
Summary: iscsi-ls -l doesn't enumerate the devices correctly.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: iscsi-initiator-utils
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: AJ Lewis
QA Contact: Brock Organ
URL:
Whiteboard:
: 146812 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-01-14 18:38 UTC by Wayne Berthiaume
Modified: 2008-04-07 04:43 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-25 16:27:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Initial patch to fix the > 26 lun bug (779 bytes, patch)
2005-02-15 17:53 UTC, AJ Lewis
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2005:168 0 low SHIPPED_LIVE iscsi-initiator-utils bug fix 2005-05-19 04:00:00 UTC

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.


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