oracle 60-raw.rules和99-oracle-asmdevices.rules区别
来源:互联网 发布:淘宝怎么宝贝发布不了 编辑:程序博客网 时间:2024/05/17 08:15
我最近观看很多安装oracle rac环境的文档的时候,发现oracle 10gRac大家普遍的修改60-raw.rules,而一些oracle11R2的版本,大家都在用99-oracle-asmdevices.rules这个文件,这个问题困扰了我很久了,今天才在一个偶然的环境下,解开了这个谜团。
我在看这篇文章的时候,才知道为什么了。“Linux平台通过udev的方式将块设备转换为字符设备,并固定设备的权限和所有者,这种需求只在安装11gR1之前的RAC数据库的时候需要这样做,安装11gR2的RAC Database,ASM可以直接使用块设备。”原文自:http://blog.itpub.net/23135684/viewspace-696799/
于是我自己也做了实验来验证这个结论。
一.创建60-raw.rules类型的
[root@xuexi1 dev]# [root@xuexi1 dev]# cat /etc/udev/rules.d/60-raw.rules# Enter raw device bindings here.## An example would be:# ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N"# to bind /dev/raw/raw1 to /dev/sda, or# ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/bin/raw /dev/raw/raw2 %M %m"# to bind /dev/raw/raw2 to the device with major 8, minor 1.ACTION=="add", KERNEL=="sdb1", RUN+="/bin/raw /dev/raw/raw1 %N"ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="17", RUN+="/bin/raw /dev/raw/raw1 %M %m"KERNEL =="raw1", OWNER ="oracle", GROUP ="oinstall", MODE="640"[root@xuexi1 dev]# [root@xuexi1 dev]# /sbin/start_udev startStarting udev: [ OK ][root@xuexi1 dev]# [root@xuexi1 dev]# ll /dev/raw/*crw-r----- 1 oracle oinstall 162, 1 Jun 12 16:14 /dev/raw/raw1[root@xuexi1 dev]# [root@xuexi1 dev]# [root@xuexi1 dev]#看raw1文件类型果然是c字符设备类型啊。
二 99-oracle-asmdevices.rules这类型的
创建过程可以看我的帖子 http://blog.csdn.net/suyishuai/article/details/26344107,我这边就直接放结果了
[root@xuexi1 dev]# /sbin/partprobe /dev/sdb1[root@xuexi1 dev]# [root@xuexi1 dev]# /sbin/partprobe /dev/sdc1[root@xuexi1 dev]# [root@xuexi1 dev]# start_udevStarting udev: [ OK ][root@xuexi1 dev]# [root@xuexi1 dev]# [root@xuexi1 dev]# cd /dev[root@xuexi1 dev]# [root@xuexi1 dev]# ls -al asm-disk*brw-rw---- 1 oracle dba 8, 17 May 20 10:08 asm-disk1brw-rw---- 1 oracle dba 8, 33 May 20 10:08 asm-disk2大家看 asm-disk*这2个设备,都是块类型的。
这样我就明白以后安装什么版本用什么绑定方式了。
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!
0 0
- oracle 60-raw.rules和99-oracle-asmdevices.rules区别
- oracle 60-raw.rules和99-oracle-asmdevices.rules区别
- Oracle Rules Manager 和 Oracle Expression Filter 组件 说明
- cssRuels和rules的区别
- Rules
- Rules
- Rules
- Rules
- Oracle Linux 配置 UDEV SCSI Rules 说明
- Oracle Linux 配置 UDEV SCSI Rules 说明
- 在Oracle Linux 5 和6上使用UDEV SCSI Rules配置ASM
- UDEV SCSI Rules Configuration for ASM in Oracle Linux 5 and 6
- UDEV SCSI Rules Configuration for ASM in Oracle Linux 5 and 6
- UDEV SCSI Rules Configuration for ASM in Oracle Linux 5 and 6
- UDEV SCSI Rules Configuration for ASM in Oracle Linux 5 and 6
- UDEV SCSI Rules Configuration for ASM in Oracle Linux 5, 6 and 7
- UDEV SCSI Rules Configuration for ASM in Oracle Linux 5, 6 and 7
- UDEV SCSI Rules Configuration for ASM in Oracle Linux 5, 6 and 7
- 【oracle】用物化视图实现分组合计以提高查询效率
- 动态链接库注意事项
- CentOS 6.4下编译安装MySQL 5.6.14
- 时间控件
- Eclipse创建一个注释模板
- oracle 60-raw.rules和99-oracle-asmdevices.rules区别
- JQValidate校验参数使用说明
- TFS的常用命令
- android4.0 USB Camera实例(三)UVC
- BeagleBone Black 之 TFTP 的搭建配置
- centos下安装中文输入法
- MyHtmlPageExt分页扩展方法
- Android开发之Animation 4种动画效果
- sql的while