On Tue, 2004-02-10 at 16:07, Norbert Kamenicky wrote:
Michael Peppler wrote:
Hi,
I'm new to gentoo - long time RH user, though - and I need to create the /dev/rawctl and /dev/raw/rawX devices for use with a Sybase database server. On RH these devices are created by default, but it seems that with the default gentoo install (or at least the one that I've built :-) I don't have these devices.
Normally devices are created by mknod, if devfs is in use (gentoo default), they are created by kernel itself.
I used a work-around and created them in /etc/conf.d/local.start for now (I also need chown the device files so that user "sybase" has read/write access...)
I am not familiar with Sybase, but can u send ls -l of relevant devices from RH ?
[EMAIL PROTECTED] dev]$ ls -l rawctl crw-rw---- 1 sybase sybase 162, 0 Apr 11 2002 rawctl [EMAIL PROTECTED] dev]$ ls -l raw/raw? crw-rw---- 1 sybase sybase 162, 1 Apr 11 2002 raw/raw1 crw-rw---- 1 sybase sybase 162, 2 Apr 11 2002 raw/raw2 crw-rw---- 1 sybase sybase 162, 3 Apr 11 2002 raw/raw3 crw-rw---- 1 sybase sybase 162, 4 Apr 11 2002 raw/raw4 crw-rw---- 1 sybase sybase 162, 5 Apr 11 2002 raw/raw5 crw-rw---- 1 sybase sybase 162, 6 Apr 11 2002 raw/raw6 crw-rw---- 1 sybase sybase 162, 7 Apr 11 2002 raw/raw7 crw-rw---- 1 sybase sybase 162, 8 Apr 11 2002 raw/raw8 crw-rw---- 1 sybase sybase 162, 9 Apr 11 2002 raw/raw9
I don't know if there is some feature in the kernel that I haven't seen that will auto create these files/devices for me - but like I said I've got a workaround, and that's good enough for me.
Michael
OK, those are standard Linux raw devices, I also don't know about some switch in kernel config to give them up in /dev automatically ...
So u have to do is put these command to rc.local:
mknod /dev/rawctl c 162 0 mkdir /dev/raw mknod /dev/raw/raw1 c 162 1 etc. for next devices chown sybase:sybase /dev/rawctl /dev/raw/raw?
And then u have to assign some block device to raw device using "raw" command, i.e. if your database sits on "/dev/hdc6" u have to run:
raw /dev/raw/raw1 /dev/hdc6
noro
-- [EMAIL PROTECTED] mailing list
