Bug 137952

Summary: udev doesn't create generic SCSI device
Product: [Fedora] Fedora Reporter: Jonathan Kamens <jik>
Component: hotplugAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
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-03-23 03:41:04 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:

Description Jonathan Kamens 2004-11-03 03:40:42 UTC
I have a SCSI scanner.  Kernel 2.4.x recognizes it as /dev/sg0. 
Current udev doesn't create /dev/sg*, or apparently any other devices
pointing at this device, on boot.  I had to create it with "MAKEDEV
sg" to be able to use my scanner.

Comment 1 Harald Hoyer 2004-11-03 10:13:50 UTC
which version of udev?
# modprobe sg
and all sg device nodes should be created...

Comment 2 Jonathan Kamens 2004-11-03 16:13:28 UTC
udev-039-6
modprobe sg worked.
But it's not obvious to me why I should have to probe for a module to 
get able to use this device.  Will configuring it with kudzu get it 
to load automatically on reboot?


Comment 3 Harald Hoyer 2004-11-03 17:59:34 UTC
could you please give me the output of:
# find /sys/devices -name type 
# find /sys/devices -name type | xargs cat


Comment 4 Jonathan Kamens 2004-11-03 18:35:45 UTC
jik:~!1016$ sudo find /sys/devices -name type
Password:
/sys/devices/pci0000:00/0000:00:0e.0/host0/0:0:4:0/type
jik:~!1017$ sudo find /sys/devices -name type | xargs cat
6
jik:~!1018$ mount | grep -i sysfs


Comment 5 Harald Hoyer 2004-11-04 13:29:05 UTC
$ rpm -qf /etc/hotplug/scsi.agent
hotplug-2004_04_01-6

in scsi.agent, modules sg should be loaded on TYPE=6

Comment 6 Harald Hoyer 2004-11-04 13:29:36 UTC
and maybe on some other types, too

Comment 7 Bill Nottingham 2004-11-04 21:04:24 UTC
Fixed in -8.

Comment 8 Moritz Barsnick 2004-11-11 17:31:13 UTC
FYI: In udev's changelog, this bug is wrongly referenced as bug 
#137592.

Comment 9 Trond Eivind Glomsrød 2004-12-14 15:24:12 UTC
A problem with the latest errata one as well, with scsi tape changers.
TYPE=8

Comment 10 Bill Nottingham 2004-12-14 16:50:08 UTC
+    8)         TYPE=changer ; MOUDLE=sg ;;

is in the patch ... is this in your scsi.agent?

Comment 11 Matthew Richardson 2005-03-21 19:03:29 UTC
I have this same problem. Bru Server backup software cannot find a tape drive
unless I run "modprobe sg" after boot.

[root]# find /sys/devices -name type
/sys/devices/pci0000:00/0000:00:1e.0/0000:02:0b.0/host0/target0:0:0/0:0:0:0/type

[root]# find /sys/devices -name type | xargs cat
1

Comment 12 Bill Nottingham 2005-03-23 03:41:04 UTC
Check for a MODULE typo in /etc/hotplug/scsi.agent - this should be fixed in
2004_09_23-3.