- 论坛徽章:
- 0
|
[root@node2 rules.d]# more 99-oracle-asmdevices.rules
ACTION=="add", KERNEL=="sdb1",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="sdc1",RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="sdf",RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", KERNEL=="sdg",RUN+="/bin/raw /dev/raw/raw21 %N"
ACTION=="add", KERNEL=="sdh",RUN+="/bin/raw /dev/raw/raw22 %N"
ACTION=="add", KERNEL=="sdi",RUN+="/bin/raw /dev/raw/raw11 %N"
ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="11", RUN+="/bin/raw /dev/raw/raw11 %M %m"
KERNEL=="raw[1-11]*", OWNER="oracle" GROUP="oinstall", MODE="0660"
KERNEL=="raw[21-22]*", OWNER="oracle" GROUP="oinstall", MODE="0660"
系统重启后,为什么raw3没有生效呢?
[root@node2 rules.d]# cd /dev/raw
[root@node2 raw]# ls -al
total 0
drwxr-xr-x 2 root root 160 Feb 19 00:50 .
drwxr-xr-x 11 root root 4380 Feb 19 00:54 ..
crw-rw---- 1 oracle oinstall 162, 1 Feb 19 00:50 raw1
crw-rw---- 1 oracle oinstall 162, 11 Feb 19 00:50 raw11
crw-rw---- 1 oracle oinstall 162, 2 Feb 19 00:50 raw2
crw-rw---- 1 oracle oinstall 162, 21 Feb 19 00:50 raw21
crw-rw---- 1 oracle oinstall 162, 22 Feb 19 00:50 raw22
crw------- 1 root root 162, 3 Feb 19 00:50 raw3 |
|