跳转到主内容
趣航编程网 - 趣学编程,启航技术之路!

RAC中ocr和voting disk位置

Oracle RAC的OCR和VOTING DISK管理的小技巧,用的时候参考一下。Oracle Cluster Registry (OCR )文件,是CRS 关键的组成部分。用Oracle RAC的OCR和VOTING DISK管理的小技巧,用的时候参考一下。

Oracle Cluster Registry (OCR )文件,是CRS 关键的组成部分。用于维护在Cluster 中高可用性组件的信息。例如,Cluster 节点列表,Cluster 数据库Instance 到节点的映射和CRS 应用资源的列表(如Services 、虚拟内部链接协议地址等)。

Voting disk 通过健康检查和在网络失败的情况下在多个进程间确定集群的所有者来管理群集的成员,RAC 的投票权使用磁盘,以确定哪些进程是一个群集成员。

OCR 配置文件使用两种方式查询:使用ocrcheck 命令/u01/oracle/home@webdb1=>servdb1$ocrcheck Status of Oracle Cluster Registry is as follows :Version                   :           2 Total space (kbytes)      :     1003760 Used space (kbytes)       :        7016 Available space (kbytes) :      996744 ID                        : 1292524385 Device/File Name          : /dev/raw/raw1 Device/File integrity check succeeded Device/File not configured Cluster registry integrity check succeeded查询ocr.loc 文件内容/u01/oracle/home@webdb1=>servdb1$cat /etc/oracle/ocr.loc ocrconfig_loc=/dev/raw/raw1 local_only=FALSE OCR 配置文件,RAC 系统会自动备份,使用ocrconfig 可以查询自动备份情况,也可以使用它自己手工备份一下。

/u01/oracle/home@webdb1=>servdb1$ocrconfig -showbackup webdb1      2012/06/29 13:20:58      /u01/oracle/app/oracle/product/10.2.0/crs/cdata/crs webdb1      2012/06/29 09:20:58      /u01/oracle/app/oracle/product/10.2.0/crs/cdata/crs webdb1      2012/06/29 05:20:57      /u01/oracle/app/oracle/product/10.2.0/crs/cdata/crs webdb1      2012/06/28 01:21:01      /u01/oracle/app/oracle/product/10.2.0/crs/cdata/crs webdb1      2012/06/27 05:21:00      /u01/oracle/app/oracle/product/10.2.0/crs/cdata/crs/u01/oracle/home@webdb1=>servdb1$VOTING DISK 配置文件使用crsctl 查询:/u01/oracle/home@webdb1=>servdb1$crsctl query css votedisk 0.      0     /dev/raw/raw2 located 1 votedisk(s).

VOTING DISK 就是一个仲裁,保存临时信息,无须备份,即使格式化系统重启后也会重写。

,

相关文章