Red Hat Linux Enterprise 5 cannot make raw devices
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Red Hat Linux Enterprise 5 cannot make raw devices
I need eight (8) raw devices for use with Oracle 11g. I am having a time trying to get these configured and persistent? Anyone have a post. I'm sure someone has figured out how to do this in version 5. Thank you for your kind replies.
I need eight (8) raw devices for use with Oracle 11g. I am having a time trying to get these configured and persistent? Anyone have a post. I'm sure someone has figured out how to do this in version 5. Thank you for your kind replies.
Can you show us what commands you're using and what errors you're getting? Any other details you can provide will obviously help.
You can edit /etc/sysconfig/rawdevices for specifying your devices (the syntax is the same that the raw command, but removing raw), and then, init rawdevices as if it was a service (i.e., /etc/init.d/rawdevices start/stop, or with service).
Hi Dude
in oracle 11G having a good future there is no need of RAW devices in RHEL5
if u need to configure the some permissions on during boot time pls enter the permissions on /et/rc.local file
If you go with raw, you can set permissions via udev following the example in /etc/udev/rules.d/60-raw.rules instead of /etc/rc.local, which is very dirty.
PD: I really *hate* oracle intromissions into unix sysadmin's work, just like in a windows state of mind
Disable the oracleasm script to not start-up automatically.
$ sudo /sbin/chkconfig oracleasm off
Ensure oracleasm won’t start up automatically.
$ sudo /sbin/chkconfig oracleasm --list
after that u can make changes in rc.local according to ur UDEV names.
I'll try to adapt what I did some months ago for RHEL 5.5 and Oracle 10g using raw devices to your specific setup, just to help here for using raw devices in 11g, regardless oracle recommendations/support for raw devices in 11g.
The background is to use custom udev rules and use symlinks a custom dedicated directory under /dev/ for oracle instead of using any of the standard directories, not to be "scanned" by anyone, including root. Custom names for symlinks can also be used in order to know what is that device for.
1) Put your raw devices in /etc/sysconfig/rawdevices, like this:
/dev/raw/raw1 /dev/hdb1
2) Set the udev rules. Let's keep your "asmdisks" directory name for symlinks. I set the prefix "ocr" for the two ocrs (assigning on purpose "raw1" and "raw2"), "voting" for voting disks (raw3 to raw5), and the rest (from raw10 on), leave as is. In 11g, I think some don't exist, but anyway, you can play with it:
3) Test your rules. YOU SHOULD STOP ORACLE AND ASM FIRST. Then, unmap your existing raw devices. Check if "/etc/init.d/rawdevices stop" does the work (map to 0 0 if not). When there are no raw devices, then map them all by running "/etc/init.d/rawdevices start", and check if the symlinks exist and the proper permissions in /dev/raw/.
4) Point asm to use /dev/asmdisks for the devices, and start the software. Everything should work fine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.