下面列出两种版本下的配置
1.linux redhat as 4
Edit the /etc/sysconfig/rawdevices file, adding the following lines.
/dev/raw/raw1 /dev/sdb1
/dev/raw/raw2 /dev/sdc1
/dev/raw/raw3 /dev/sdd1
/dev/raw/raw4 /dev/sde1
/dev/raw/raw5 /dev/sdf1
chown oracle:oinstall /dev/raw/raw1
chown oracle:oinstall /dev/raw/raw2
chown oracle:oinstall /dev/raw/raw3
chown oracle:oinstall /dev/raw/raw4
chown oracle:oinstall /dev/raw/raw5
chmod 600 /dev/raw/raw1
chmod 600 /dev/raw/raw2
chmod 600 /dev/raw/raw3
chmod 600 /dev/raw/raw4
chmod 600 /dev/raw/raw5
修改/etc/udev/permissions.d/50-udev.permissions,
[root@rac1 ~]# vi /etc/udev/permissions.d/50-udev.permissions
# raw devices
ram*:root:disk:0660
#raw/*:root:disk:0660
raw/*:oracle:dba:0660 机器启动时能自动加载给oracle用户使用。
2.linux redhat as 5
因为rh5中取消了rawdevices服务,要使用裸设备的话,需要做以下配置。
# vi /etc/udev/rules.d/60-raw.rules
添加以下部分的内容
ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"ITPUB个人空间:@pn%BH9|k K.VH2{
ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/bin/raw /dev/raw/raw2 %M %m"
# start_udev
rN)I,E&l}119501Starting udev: [ OK ]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/119501/viewspace-620574/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/119501/viewspace-620574/