[Bug 761109] New: generic scsi module not loaded / devices not created
https://bugzilla.novell.com/show_bug.cgi?id=761109 https://bugzilla.novell.com/show_bug.cgi?id=761109#c0 Summary: generic scsi module not loaded / devices not created Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: per@opensuse.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 Hardware: IBM Thinkcenter, 2.8GHz Celeron, 512M RAM, single SATA drive (MSL6000 controller). Software: openSUSE 12.2M4 (updated to Factory as of 07/05/2012). I hooked up our small HP MSL6000 library to this box - I noticed that there were no generic SCSI devices created (for the tape exchanger). I manually loaded the 'sg' module: [ 536.947077] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 536.948794] sr 1:0:0:0: Attached scsi generic sg1 type 5 [ 536.950864] ch 2:0:0:0: Attached scsi generic sg2 type 8 [ 536.950975] st 2:0:1:0: Attached scsi generic sg3 type 1 With openSUSE 12.1, this happens automatically. Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c
kk zhang
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c1
--- Comment #1 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c2
--- Comment #2 from Per Jessen
I'll check it out.
Can I get to the system where you're having this problem?
I'm not sure, it might be possible to work something out. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c3
--- Comment #3 from Per Jessen
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c4
--- Comment #4 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c5
--- Comment #5 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c6
--- Comment #6 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c7
--- Comment #7 from Per Jessen
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c8
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c9
--- Comment #9 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c10
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c11
--- Comment #11 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c12
--- Comment #12 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c13
--- Comment #13 from Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c14
--- Comment #14 from Per Jessen
The old rule: SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv sg"
.. will be fine for 12.2. The only down side is that until the sg module is loaded, multiple modprobes will run. Once it's successfully loaded, the the module/sg test will fail, so modprobe won't run again. It's not perfect but it's good enough, and certainly a lot better than messing around with boot.local to prevent what is essentially a regression from being introduced.
Agree, that's how I see it too.
Lee and Per, if we're going to switch to bsg for 12.3, it would be good to ensure they're compatible. I believe they are, but we should verify it.
If they are, then perhaps we just make symlinks from /dev/sg* to /dev/bsg/$SCSIPATH to keep applications working properly.
This is also an area with a) 3rd party apps and b) custom scripts - keeping /dev/sg for backward compatibility is important. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c15
--- Comment #15 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c16
--- Comment #16 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c17
--- Comment #17 from Per Jessen
Per: since I do not have any software handy that uses sg (except the sg utils), can you try Jeff's suggestion, i.e. make /dev/sgN a symlink to /dev/bsg/N:0:0:0 (or whatever it is on your system), and make sure your software runs correctly?
Willdo. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c18
--- Comment #18 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c19
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c20
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c21
--- Comment #21 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c22
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c23
--- Comment #23 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c24
--- Comment #24 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c25
--- Comment #25 from Lee Duncan
Lee doesn't this look better:
Index: udev-182/rules/80-drivers.rules =================================================================== --- udev-182.orig/rules/80-drivers.rules +++ udev-182/rules/80-drivers.rules @@ -7,6 +7,7 @@ SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}== SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", IMPORT{builtin}="kmod load tifm_ms" SUBSYSTEM=="memstick", IMPORT{builtin}="kmod load ms_block mspro_block" SUBSYSTEM=="i2o", IMPORT{builtin}="kmod load i2o_block" +SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", IMPORT{builtin}="kmod load sg" SUBSYSTEM=="module", KERNEL=="parport_pc", IMPORT{builtin}="kmod load ppdev"
LABEL="drivers_end"
I don't wanna use modprobe and wanna make it look like all the other rules.
Robert: Yes, that looks better. My patch was simply replacing the rule that had been removed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c27
--- Comment #27 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c28
--- Comment #28 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c30
--- Comment #30 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c31
--- Comment #31 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c32
--- Comment #32 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c33
--- Comment #33 from Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c34
--- Comment #34 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c35
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c36
--- Comment #36 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=761109
https://bugzilla.novell.com/show_bug.cgi?id=761109#c37
--- Comment #37 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com