11gRAC安装过程中的裸设备配置

在配置裸盘时 编辑 /etc/sysconfig/rawdevices 在其中加入如下内容:

/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

/dev/raw/raw6 /dev/sdg1

/dev/raw/raw7 /dev/sdh1

然后执行如下命令:

/sbin/service rawdevices restart

预计应该有类似如下的输出:

Assigning devices:
/dev/raw/raw1 --&gt /dev/emcpowera1
/dev/raw/raw1: bound to major 8, minor 33
/dev/raw/raw2 --&gt /dev/emcpowerd1
/dev/raw/raw2: bound to major 8, minor 49
/dev/raw/raw3 --&gt /dev/emcpowere1
/dev/raw/raw3: bound to major 8, minor 65
done

 

编辑 /etc/udev/rules.d/60-raw.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=="sdd1",RUN+="/bin/raw /dev/raw/raw3 %N"

ACTION=="add",KERNEL=="sde1",RUN+="/bin/raw /dev/raw/raw4 %N"

ACTION=="add",KERNEL=="sdf1",RUN+="/bin/raw /dev/raw/raw5 %N"

ACTION=="add",KERNEL=="sdg1",RUN+="/bin/raw /dev/raw/raw6 %N"

ACTION=="add",KERNEL=="sdh1",RUN+="/bin/raw /dev/raw/raw7 %N"

kernel=="raw[1-8]",owner="oracle",group="dba",mode="660"

保存退出后重启后,执行raw –aq就可以看到配置好的裸设备了

/dev/raw/raw1 bound to major 8, minor 17

/dev/raw/raw2 bound to major 8, minor 33

/dev/raw/raw3 bound to major 8, minor 49

/dev/raw/raw4 bound to major 8, minor 65

/dev/raw/raw5 bound to major 8, minor 81

/dev/raw/raw6 bound to major 8, minor 97

/dev/raw/raw7 bound to major 8, minor 113

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23655288/viewspace-732079/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23655288/viewspace-732079/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值