Bug 55876
Summary: | Conflicting SCSI bus numbers | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Itai Nahshon <itai.nahshon> | ||||||
Component: | kernel | Assignee: | Pete Zaitcev <zaitcev> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Brock Organ <borgan> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 7.2 | ||||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i686 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2003-06-07 20:44:03 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
Itai Nahshon
2001-11-08 02:57:41 UTC
Created attachment 36821 [details]
Here's a transcript of the scenario that repeats the problem.
If the scsi numbers are host/bus/id/lun then the conflicting numbers are for host, not bus as I wrote in the original report. "Maxtor 9 Model: 1728D8" Is a 17GB IDE disk, connected via a USB-IDE adaptor. It would be nice if the USB SCSI devices (which are removable) were always assigned later numbers than the permanent devices. This way the permanent devices have a consistent assignment from boot-to-boot. Actually RedHat pre-loads drivers for scsi cards, assigning the low host numbers. Scsi card drivers are not unloaded unless you explicitely 'rmmod' them. My problem was with 'temporary' hosts. I modprome ide-scsi and sg to use with xcdroast and rmmod them after I finish with xcdroast. usb-storage is loded by hotplug when the device is plugged. After more testing I found that the devices are useful (can be mounted etc) despite the host number conflict but they are not accessible thru sg (so I could not use xcdroast when that happenned. I'm taking this over also to the Linux kernel mailing list. I've got some fixes in this area lined up for 2.4.9-18 or later, when that becomes available. Currently they are available in RawHide 2.4.16-0.13, so I would appreciate testing, if possible. (ftp.redhat.com /pub/redhat/linux/rawhide/i386/RedHat/RPMS) In parallel, I'll work on reproducing it with 2.4.9-13. Created attachment 59924 [details]
Proposed fix
Itai did the work and went to linux-kernel with the fix, so I figured something was wrong with the way I tried to reproduce it. I found that to reproduce the problem is enough to do "echo /bin/true > /proc/sys/kernel/hotplug". With that, either of two scenarios he mentioned work: scenario 1: insmod A rmmod A insmod A insmod B scenario 2: insmod A rmmod A insmod B insmod A kernel 2.4.18-5.76 |