oracle 10g 中如何添加与删除votedisk镜像盘
oracle 10g 中如何添加与删除votedisk镜像盘
The Oracle Clusterware includes two important components: the voting disk and the
Oracle Cluster Registry (OCR). The voting disk is a file that manages information
about node membership and the OCR is a file that manages cluster and Oracle Real
Application Clusters (Oracle RAC) database configuration information
我们可以看出votedisk盘起的是管理节点成员作用,即仲裁盘,ocr盘记录的是每个节点成员上的信息,即资源
比如gsd,ons,vip,listener,asm,database等
以下实验为添加与删除votedisk镜像盘的步骤:
第一:添加votedisk镜像盘,建议至少三个
1.查votedisk盘
[root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl query css votedisk
0. 0 /dev/rvotelv
located 1 votedisk(s).
2.从共享vg上创建共享lv vote2_lv
chown oracle:dba /dev/rvote2_lv
chmod 660 /dev/rvote2_lv
3.停止crs(两边节点)
crsctl stop crs
4.crsctl add 命令增加vote盘
[root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl add css votedisk '/dev/rvote2_lv' -force
Now formatting voting disk: /dev/rvote2_lv
一定要加 -force选项,要不然添加不成功,报以下错误
[root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl add css votedisk '/dev/rvote2_lv'
Cluster is not in a ready state for online disk addition
5.检查添加是否成功
[root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl query css votedisk
0. 0 /dev/rvotelv
1. 0 /dev/rvote2_lv
located 2 votedisk(s).
第二:删除votedisk镜像盘
1.停止crs(两边节点)
crsctl stop crs
2.crsctl del 命令删除vote盘
[root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl delete css votedisk '/dev/rvote2_lv'
3.检查删除是否成功
[root@p650:/crs/app/oracle/product/crs_1/bin]#./crsctl query css votedisk
0. 0 /dev/rvotelv
located 1 votedisk(s).