RHEL5 Oracle 10G Rac配置裸设备的小问题

今天在虚拟机上装Oracle Rac,配置裸设备,由于RHEL5中取消了rawdevices,就把裸设备配置到/etc/udev/rules.d/60-raw.rules文件中。按照文档说的添加了如下内容。不同的是文档的第一个disk是sdb1,我的是sdc1。不幸的是问题就在这里。
ACTION=="add", KERNEL=="/dev/sdc1",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", ENV{MAJOR}=="8",ENV{MINOR}=="17",RUN+="/bin/raw /dev/raw/raw1 %M %m"
ACTION=="add", KERNEL=="/dev/sdd1",RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", ENV{MAJOR}=="8",ENV{MINOR}=="33",RUN+="/bin/raw /dev/raw/raw2 %M %m"
ACTION=="add", KERNEL=="/dev/sde1",RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", ENV{MAJOR}=="8",ENV{MINOR}=="49",RUN+="/bin/raw /dev/raw/raw3 %M %m"
ACTION=="add", KERNEL=="/dev/sdf1",RUN+="/bin/raw /dev/raw/raw4 %N"
ACTION=="add", ENV{MAJOR}=="8",ENV{MINOR}=="65",RUN+="/bin/raw /dev/raw/raw4 %M %m"
KERNEL=="raw[1-4]", OWNER="oracle", GROUP="oinstall", MODE="640"
重启服务:
[root@rac1 ~]# start_udev
Starting udev: [ OK ]
验证的时候,发现只有3个裸设备,raw1没有挂载上去。执行partprobe也不管用
[root@rac1 raw]# ll
total 0
crw-r----- 1 oracle oinstall 162, 2 Feb 16 19:32 raw2
crw-r----- 1 oracle oinstall 162, 3 Feb 16 19:32 raw3
crw-r----- 1 oracle oinstall 162, 4 Feb 16 19:32 raw4
又把60-raw.rules文件检查一遍,没发现写错的地方,网上也查不到有用的信息。只好用/bin/raw命令手动添加,结果raw(1-4)的minor数都不一样。
[root@rac1 rpm]# raw /dev/raw/raw1 /dev/sdc1
/dev/raw/raw1:  bound to major 8, minor 33
[root@rac1 rpm]# raw /dev/raw/raw2 /dev/sdd1
/dev/raw/raw2:  bound to major 8, minor 49
[root@rac1 rpm]# raw /dev/raw/raw3 /dev/sde1
/dev/raw/raw3:  bound to major 8, minor 65
[root@rac1 rpm]# raw /dev/raw/raw4 /dev/sdf1
/dev/raw/raw4:  bound to major 8, minor 81
重新修改60-raw.rules内容问题解决。难道ENV{MAJOR}== ENV{MINOR}==不是随便填配的吗?搞不懂!!

你可能感兴趣的:(oracle,虚拟机)