I Hope this is a simple question.
What is the best practice to mount RAW drives on RHEL 5. I have found a couple of approaches but i'm not sure what the correct one is as i have found references to some being depreciated.
As an aside, i would also need to know how to assign ownership rights as they shouldn't be owned by root if its included in the mounting process.
Using sysconfig/rawdevices is considered deprecated in RHEL5, use the udev method. As for ownership, use the following in /etc/udev/rules.d/60-raw.rules:
Also, try checking out the following article
The raw device mapping is sloppy because applications have been encouraged to open with O_DIRECT for so long. Unfortunately vendors have been slow to react, and people have been left suffering with dangerously confusing raw device configuration.
Always ask the vendor when they expect to support O_DIRECT, if you're forced to use the /dev/raw stuff.