Bug 148265

Summary: scsi_id failure
Product: [openSUSE] SUSE Linux 10.1 Reporter: Nohez Poonawala <nohezp>
Component: KernelAssignee: E-mail List <kernel-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P2 - High    
Version: Beta 3   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Nohez Poonawala 2006-02-05 04:38:24 UTC
scsi_id reports the same id for 3 different volumes exported by SunStorEdge 6920. The system is a Sun V40z with Qlogic 2460 card installed on it. The SAN is exporting 3 volumes and can be accessed by four different paths. Using scsi_id
on these 3 volumes gives the following results:

# for disk in a b c d e f g h i j k l m n
do
        echo "sd$disk -> `scsi_id -u -g -s /block/sd$disk`"
done
sda ->
sdb -> 3600015d00004b200000000000000050a
sdc -> 3600015d00004b200000000000000050a
sdd -> 3600015d00004b200000000000000050a
sde -> 3600015d00004b200000000000000050a
sdf -> 3600015d00004b200000000000000050a
sdg -> 3600015d00004b200000000000000050a
sdh -> 3600015d00004b200000000000000050a
sdi -> 3600015d00004b200000000000000050a
sdj -> 3600015d00004b200000000000000050a
sdk -> 3600015d00004b200000000000000050a
sdl -> 3600015d00004b200000000000000050a
sdm -> 3600015d00004b200000000000000050a
sdn ->

Number of devices found by the driver is correct. But all the devices are the same LUN. Is this a driver problem or scsi_id problem ?

I had reported a problem earlier where Qlogic driver failed to load (bugzilla.novell.com/show_bug.cgi?id=146443). This problem was fixed after I was able to find the qlogic firmware on qlogic ftp site.

I also installed SLES9+SP3 on this system to check and found that scsi_id
reports the id correctly. So the SAN box is configured properly.

# for disk in b c d e f g h i j k l m n  # On SLES9+SP3
do
        echo "sd$disk -> `scsi_id -u -g -p 0x83 -s /block/sd$disk`"
done
sdb -> 3600015d00004b200000000000000050a
sdc -> 3600015d00004b200000000000000050e
sdd -> 3600015d00004b2000000000000000514
sde -> 3600015d00004b200000000000000050a
sdf -> 3600015d00004b200000000000000050e
sdg -> 3600015d00004b2000000000000000514
sdh -> 3600015d00004b200000000000000050a
sdi -> 3600015d00004b200000000000000050e
sdj -> 3600015d00004b2000000000000000514
sdk -> 3600015d00004b200000000000000050a
sdl -> 3600015d00004b200000000000000050e
sdm -> 3600015d00004b2000000000000000514
sdn -> 3600015d00004b200000000000000050a
Comment 1 Nohez Poonawala 2006-02-05 04:42:58 UTC
Forgot to mention that it fails in Debian distro too. So it does not look like
something specific to OpenSuSE.
Comment 2 Nohez Poonawala 2006-02-06 23:33:55 UTC
Patch provided by Andrew Vasquez for "LU enumeration bug" fixes the problem 
reported by me. Please incorporate the patch in the kernel.

Patch can be found at http://marc.theaimsgroup.com/?l=linux-scsi&m=113926753727954&w=2
Comment 3 Hannes Reinecke 2006-02-07 10:37:34 UTC
Patch has been committed to our kernel CVS; will be included in Beta4.