CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can someone point me to documentation for configuring RAW devices on CentOS 6.5?
We have a Sybase database which uses RAW devices and the configuration seems to have changed somewhat between CentOS 5 and 6.
From what you mentioned I am assuming that you are getting stuck at step 6 of the link I posted.
The document says it should be bound to numbered raw device. So where /dev/raw/rawctl came from. Can you share the command that you are trying to run?
# /bin/raw /dev/raw/raw10 /dev/mapper/PRDIQ_C0S0M0 # 360060160c7c0260080ea9aae9d0ee411
Cannot open master raw device '/dev/raw/rawctl' (No such file or directory)
Is PRDIQ_C0S0M0 your lv name? I have never seen lv name in CAPS so not sure if that could be the issue. From what I can understand from the recent output you shared is that the system is not able to see the device under /dev/mapper/ which is your LV.
Is PRDIQ_C0S0M0 your lv name? I have never seen lv name in CAPS so not sure if that could be the issue. From what I can understand from the recent output you shared is that the system is not able to see the device under /dev/mapper/ which is your LV.
The steps listed in the initial document are what we did on CentOS 5, and they worked well. However, on this new Centos 6.5 build, I get the error about rawctl. I did not get this on CentOS 5, so im not sure what changed.
We used upper-case names previously without difficulty.
lrwxrwxrwx 1 root root 7 Jul 18 10:41 /dev/mapper/PRDIQ_C0S0M0 -> ../dm-4
which maps to the following WWN on the SAN.
lrwxrwxrwx 1 root root 10 Jul 18 10:41 /dev/disk/by-id/dm-uuid-mpath-360060160c7c0260080ea9aae9d0ee411 -> ../../dm-4
brw-rw---- 1 root disk 253, 4 Jul 18 10:41 /dev/dm-4
major 253, minor 4.
In reading, some web-sites are suggesting "UDEV" configuration rather than using /etc/rc.local.
The document is for Ubuntu but it is mentioned that running modprobe raw. Here is what they say about it in that link:
Quote:
Raw devices are character devices with major number 162. The first minor number (i.e. 0) is reserved as a control interface and is usually found at /dev/rawctl. The control device /dev/rawctl can be generated with the command
I checked on one of my test system and I can see that the following module is loaded: snd_rawmidi. When I checked /dev/raw I can see rawctl there. You can check if this module is loaded on your system using:
Code:
lsmod -a | grep raw
It will display some 2-3 lines as follows (if module is loaded):
I checked on one of my test system and I can see that the following module is loaded: snd_rawmidi. When I checked /dev/raw I can see rawctl there. You can check if this module is loaded on your system using:
Code:
lsmod -a | grep raw
It will display some 2-3 lines as follows (if module is loaded):
Sorry that was my mistake it is lsmod not lsmod -a. Also those modules are for sound. Just did modinfo on those. It is quite strange that module is not loaded for raw device because I have default install of this test box and I do see rawctl under /dev/raw/
Sorry that was my mistake it is lsmod not lsmod -a. Also those modules are for sound. Just did modinfo on those. It is quite strange that module is not loaded for raw device because I have default install of this test box and I do see rawctl under /dev/raw/
Im wondering if there is some package I missed when I setup this server.
rpm -qa | grep -i raw
doesn't show anything, but I don't know what the package might be. The /bin/raw tools are installed, so it's not that.
It's apparently something in the kernel.
I am out of ideas, I checked my system and I don't see anything which could point from where that rawctl file is coming from. I checked kernel parameters, device parameters but didn't see anything in there. Finally checked /etc/udev/rules.d and there is a rules for raw device suggesting to put bindings there. I don't have raw device configured on this system so that I can test but this is something you can give a try.
You can configure the rule and then run: udevadm trigger to trigger the rule. Just keep tail -f dmesg and tail -f /var/log/messages on to see if there is anything you can see after rule execution.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.