CRS and Voting模拟丢失后恢复

a) CRS loss

rm –f /oracle01/oracrs/ocr.dbf

 

[oracle@oracle crsd]$ rm -f /oracle01/oracrs/ocr.dbf

Impact: No impact on node apps

 

在尝试恢复OCR之前先确保OCR不可用.

Run the following command to check the status of the OCR:

ocrcheck

 

[oracle@oracle crsd]$ ocrcheck

PROT-602: Failed to retrieve data from the cluster registry

 

[oracle@oracle crsd]$ cluvfy comp ocr -n all

Verifying OCR integrity

Checking OCR integrity...

Checking the absence of a non-clustered configuration...

All nodes free of non-clustered, local-only configurations.

ERROR:

Unable to obtain OCR integrity details from any of the nodes.

OCR integrity check failed.

Verification of OCR integrity was unsuccessful on all the nodes.

 

开始恢复,在所有节点上停止CRS

[root@oracle ~]# /etc/init.d/init.crs stop

Shutting down Oracle Cluster Ready Services (CRS):

OCR initialization failed accessing OCR device: PROC-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]

Shutdown has begun. The daemons should exit soon.

[root@oracle ~]# /etc/init.d/init.crs stop

Shutting down Oracle Cluster Ready Services (CRS):

OCR initialization failed accessing OCR device: PROC-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]

Shutdown has begun. The daemons should exit soon.

[root@oracle ~]# dd if=/data01/home/oracle/voting_backup/ocrbp.dbf f=/oracle01/oracrs/ocr.dbf

20480+0 records in

20480+0 records out

 

属组和权限:

chown root:dba /oracle01/oracrs/ocr.dbf
chmod 660 /oracle01/oracrs/ocr.dbf

 

在所有节点上启动CRS

[root@oracle ~]# /etc/init.d/init.crs start

[oracle@oracle ~]$ ocrcheck

Status of Oracle Cluster Registry is as follows :

Version : 2

Total space (kbytes) : 262120

Used space (kbytes) : 3776

Available space (kbytes) : 258344

ID : 767132006

Device/File Name : /oracle01/oracrs/ocr.dbf

Device/File integrity check succeeded

Device/File not configured

Cluster registry integrity check succeeded

 

b) Voting file

The Voting Disk is used by the Oracle cluster manager in various layers. The Node Monitor (NM) uses the Voting Disk for the Disk Hearbeat, which is essential in the detection and resolution of cluster "split brain". NM monitors the Voting Disk for other competing sub-clusters and uses it for the eviction phase. Hence the availability from the Voting Disk is critical for the operation of the Oracle Cluster manager.

 

There are 2 methods to recover from the voting file failure

a) use dd to restore voting file from the backup – Recommended

b) Re-install CRS

Note: As per the testing, please make sure to change the owner ship and permission on the voting files.

 

chown oracle:dba

chmod 666

注意:排查故障时,设备的读写权限很容易被忽略,OCR设备属组和读写权限不当会导致CRS服务不正常。

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

转载于:http://blog.itpub.net/628922/viewspace-761036/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值