---------------- step raw device Oracle Linux --------------------------
[root@OracleLinux raw]# mknod /dev/raw/raw1 c 162 1
[root@OracleLinux raw]# mknod /dev/raw/raw2 c 162 2
[root@OracleLinux raw]# mknod /dev/raw/raw3 c 162 3
[root@OracleLinux raw]# mknod /dev/raw/raw4 c 162 4
[root@OracleLinux raw]# mknod /dev/raw/raw5 c 162 5
[root@OracleLinux raw#vi /etc/sysconfig/rawdevices
/dev/raw/raw1 /dev/xvdc
/dev/raw/raw2 /dev/xvdb
/dev/raw/raw3 /dev/xvde
/dev/raw/raw4 /dev/xvdf
/dev/raw/raw5 /dev/xvdd
[root@OracleLinux sysconfig]# vi /etc/udev/rules.d/60-raw.rules
# Enter raw device bindings here.
#
# An example would be:
# ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N"
# to bind /dev/raw/raw1 to /dev/sda, or
# ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/bin/raw /dev/raw/raw2 %M %m"
# to bind /dev/raw/raw2 to the device with major 8, minor 1.
ACTION=="add", KERNEL=="xvdc", RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="xvdb", RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="xvde", RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", KERNEL=="xvdf", RUN+="/bin/raw /dev/raw/raw4 %N"
ACTION=="add", KERNEL=="xvdd", RUN+="/bin/raw /dev/raw/raw5 %N"
ACTION=="add", KERNEL=="raw*", OWNER="oracle", GROUP="oinstall", MODE="0660"
[root@OracleLinux rules.d]# raw /dev/raw/raw1 /dev/xvdc
/dev/raw/raw1: bound to major 202, minor 32
[root@OracleLinux rules.d]# raw /dev/raw/raw2 /dev/xvdb
/dev/raw/raw2: bound to major 202, minor 16
[root@OracleLinux rules.d]# raw /dev/raw/raw3 /dev/xvde
/dev/raw/raw3: bound to major 202, minor 64
[root@OracleLinux rules.d]# raw /dev/raw/raw4 /dev/xvdf
/dev/raw/raw4: bound to major 202, minor 80
[root@OracleLinux rules.d]# raw /dev/raw/raw5 /dev/xvdd
/dev/raw/raw5: bound to major 202, minor 48
[root@OracleLinux sysconfig]# start_udev
Starting udev: [ OK ]
[root@OracleLinux sysconfig]#
----------------------------- end step ---------------------------------------------------