Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
Which approaches have you found? –  chmeee Jun 20 '09 at 17:23
    
The two that i did find were 1. rawdevice service (etc/sysconfig/rawdevices) 2. Adding rules and access rights to etc/udev/rules.d/60-raw.rules. BTW. My current setup is using the 2nd option. –  OilyRag Jun 20 '09 at 17:39
add comment

2 Answers

up vote 1 down vote accepted

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:

ACTION=="add", KERNEL=="raw*", OWNER=="root", GROUP=="disk", MODE=="0660"

Also, try checking out the following article

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.