CENTOS6.5
[grid@oraclework ~]$ uname -a
Linux oraclework 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux[grid@oraclework ~]$ more /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=="sdb1",RUN+="/bin/raw /dev/raw/raw1 %N"
- KERNEL=="raw1",OWNER="grid",GROUP="dba",MODE="0660"
- ACTION=="add",KERNEL=="sdb2",RUN+="/bin/raw /dev/raw/raw2 %N"
- KERNEL=="raw2",OWNER="grid",GROUP="dba",MODE="0660"
- ACTION=="add",KERNEL=="sdb3",RUN+="/bin/raw /dev/raw/raw3 %N"
- KERNEL=="raw3",OWNER="grid",GROUP="dba",MODE="0660"
- ACTION=="add",KERNEL=="sdb4",RUN+="/bin/raw /dev/raw/raw4 %N"
- KERNEL=="raw4",OWNER="grid",GROUP="dba",MODE="0660"
复制代码 [root@bogon grid]# ll /dev/raw*
总用量 0
crw-rw---- 1 grid dba 162, 1 12月 24 02:40 raw1
crw-rw---- 1 grid dba 162, 2 12月 24 02:40 raw2
crw-rw---- 1 grid dba 162, 3 12月 24 02:40 raw3
crw-rw---- 1 grid dba 162, 4 12月 24 02:40 raw4
crw-rw---- 1 root disk 162, 0 12月 24 02:40 rawctl
|