rhel 5.x 使用 /bin/raw 配置裸设备
在 rhel 5.x 上安装Oracle 10g RAC时需要将 ocr,voting_disk 选择到裸设备上,其余的建议使用oracle asmlib标记成asm disk。
配置如下 :
[root@aabb ~]# fdisk -l
/dev/sdb1
/dev/sdb2
/dev/sdc1
/dev/sdc2
/dev/sdd1
/dev/sdd2
/dev/sde1
修改udev 的 相应文件
vi /etc/udev/rules.d/60-raw.rules
ACTION=="add", KERNEL=="sdb1",RUN+="/bin/raw /dev/raw/raw1 %N"
ACTION=="add", KERNEL=="sdb2",RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add", KERNEL=="sdc1",RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add", KERNEL=="sdc2",RUN+="/bin/raw /dev/raw/raw4 %N"
ACTION=="add", KERNEL=="sdd1",RUN+="/bin/raw /dev/raw/raw5 %N"
ACTION=="add", KERNEL=="sdd2",RUN+="/bin/raw /dev/raw/raw6 %N"
ACTION=="add", KERNEL=="sde1",RUN+="/bin/raw /dev/raw/raw7 %N"
ACTION=="add",KERNEL=="raw[1-7]", OWNER="oracle", GROUP="oinstall", MODE="660"
[root@dbasm ~]# start_udev
[root@dbasm ~]# ls -lrt /dev/raw
在安装clusterware时可以选择相应的裸设备存储 ocr和voting_disk
剩余的盘可以用asmlib 标记成asm disk
开始创建 asm盘
/etc/init.d/oracleasm createdisk VOL2 /dev/sdb2
/etc/init.d/oracleasm createdisk VOL4 /dev/sdc2
/etc/init.d/oracleasm createdisk VOL6 /dev/sdd2
扫描
/etc/init.d/oracleasm scandisks
查看
/etc/init.d/oracleasm listdisks