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/