Bug 121985

Summary: raw fails: /dev/rawctl, no such device, but device exists
Product: [Fedora] Fedora Reporter: Thorn Roby <troby>
Component: kernelAssignee: Dave Jones <davej>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: medium    
Version: 2CC: pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-02 21:48:35 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 Thorn Roby 2004-04-29 15:12:04 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6)
Gecko/20040206 Firefox/0.8

Description of problem:
Any raw operation produces the error
Cannot open master raw device '/dev/rawctl' (No such device or address)

The device exists (162,0) permissions 660 owner root. Making a symlink
as /dev/raw/rawctl makes no difference. Raw devices exist under /dev/raw.
Root is on LVM, boot on hda1.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. enter "raw -qa"
2.
3.
    

Actual Results:  Cannot open master raw device '/dev/rawctl' (No such
device or address)

Expected Results:  list raw devices

Additional info:

Comment 1 Thorn Roby 2004-04-29 15:55:08 UTC
I added a non-LVM SCSI drive and reproduced the same error, so it's
probably not related to device-mapper. I tried adding 

alias char-major-162 raw

to /etc/modprobe.conf as suggested in a posting by Andrew Morton with
no effect.

Comment 2 Thorn Roby 2004-04-30 17:15:52 UTC
I recompiled the kernel with CONFIG_RAW_DRIVER enabled and now the raw
command works (haven't actually tried the devices yet). From what I
can tell from mailing lists raw devices are deprecated in 2.6, but I
can't tell what's supposed to take their place. I see some comment
about opening devices using O_DIRECT but that's not an option if I'm
installing a 3rd party application that expects raw devices. And
what's the point of having the raw devices appear in /dev if the
shipped kernel can't access them?

Comment 3 Dave Jones 2004-12-08 06:14:45 UTC
which 3rd party application doesn't support O_DIRECT out of curiousity ?


Comment 4 Thorn Roby 2004-12-08 17:49:41 UTC
I was installing MySQL MaxDB (formerly SAPDB). It is possible that it does
support O_DIRECT, but the installation documentation refers to setting up raw
devices, and the only way I know how to do that is the raw interface. The fact
that the raw interface works properly, and as it did in 2.4, suggested to me
that the only solution was to compile it into the 2.6 kernel, which does work. I
still say that it's a bug to present the raw devices in the file system if they
are deprecated and unusable without a kernel rebuild, but perhaps their presence
makes it easier to add the functionality.
Part of my confusion here is that I really don't know where all this stuff
should be documented. I understand that the distribution documentation can't
cover every obscure aspect of the kernel or other functionality, and that raw
devices aren't used a lot. Maybe it's just a question of including it in the
release notes.

Comment 5 Mark Wormgoor 2004-12-21 14:07:33 UTC
If rawdevices is deprecated (I want to use it for Xine to allow raw
access as suggested in the xine FAQ), what is the purpose of
/etc/init.d/rawdevices and /etc/sysconfig/rawdevices?

If I add a device to /etc/sysconfig rawdevices and do
/etc/init.d/rawdevices start, I get this:
Assigning devices:
           /dev/raw/raw1  -->   /dev/dvd
Cannot open master raw device '/dev/rawctl' (No such device or address)
done


Comment 6 Dave Jones 2005-01-11 05:09:02 UTC
as the raw driver was enabled in FC2 at time it was shipped, I'll reenable it
for the next FC2 kernel update.


Comment 7 Thorn Roby 2005-01-11 17:17:57 UTC
Can you enable it in FC3 also?

Comment 8 Dave Jones 2005-01-11 18:19:43 UTC
no. this is marked as deprecated for some time now, and could go away completely
at any point in a kernel update.