1. 程式人生 > >udev配置RAC ASM的幾種方式

udev配置RAC ASM的幾種方式

一、60-raw.rules

[[email protected] ~]# vi /etc/udev/rules.d/60-raw.rules
ACTION=="add",KERNEL=="sdb",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add",KERNEL=="raw1", OWNER="grid", GROUP="asmadmin",MODE="660"
ACTION=="add",KERNEL=="sdc",RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add",KERNEL=="raw2", OWNER="grid", GROUP="asmadmin",MODE="660"

[
[email protected]
~]# ls -l /dev/raw/raw* brw-rw----1 grid asmadmin 8, 96 Jun 29 21:56 /dev/raw1 brw-rw----1 grid asmadmin 8, 64 Jun 29 21:56 /dev/raw2
二、99-oracle-asmdevices.rules
[[email protected] ~]#vi /etc/udev/rules.d/99-oracle-asmdevices.rules
KERNEL=="sdb",NAME="asmdiskb",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sdc",NAME="asmdiskc",OWNER="grid",GROUP="asmadmin",MODE="0660"
 
[
[email protected]
~]#udevadm control --reload-rules [[email protected] ~#start_udev Starting udev:[ OK ] [[email protected] ~]#ll /dev/asm* brw-rw----. 1 gridasmadmin 8, 16 Dec 16 15:52 /dev/asmdiskb brw-rw----. 1 gridasmadmin 8, 32 Dec 16 15:52 /dev/asmdiskc
上述兩個檔案都可以。如果使用多路徑參考: