30 March 2012

Step by Step Raw Device creation on OEL4.5 Linux32bit

Raw Device Setup:-

This step is only necessary if you want ASM to access the disks as raw devices.

Edit the "/etc/sysconfig/rawdevices" file, adding the following lines.

    /dev/raw/raw1 /dev/sdb1
    /dev/raw/raw2 /dev/sdc1

[root@primary dev]# service rawdevices restart
Assigning devices:
           /dev/raw/raw1  -->   /dev/sdb1
/dev/raw/raw1:  bound to major 8, minor 17
           /dev/raw/raw2  -->   /dev/sdc1
/dev/raw/raw2:  bound to major 8, minor 33
done
[root@primary dev]#

Run the following commands and add them the "/etc/rc.local" file.
chown oracle:oinstall /dev/raw/raw1
chown oracle:oinstall /dev/raw/raw2
chmod 600 /dev/raw/raw1
chmod 600 /dev/raw/raw2

No comments: