1.1检查OCR的状态
sql
[root@rac1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2884
Available space (kbytes) : 259236
ID : 278609533
Device/File Name : +OCRVOTE
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
1.2 备份OCR
手动备份
sql
[root@rac1 ~]# cd /oracle/grid/crs_1/bin/
[root@rac1 bin]# ./ocrconfig -manualbackup
rac1 2018/08/01 19:55:47 /oracle/grid/crs_1/cdata/rac-cluster/backup_20180801_195547.ocr
查看有效的备份
sql
[root@rac1 bin]# ./ocrconfig -showbackup
PROT-24: Auto backups for the Oracle Cluster Registry are not available
rac1 2018/08/01 19:55:47 /oracle/grid/crs_1/cdata/rac-cluster/backup_20180801_195547.ocr
19c ocr备份文件状态发生了变化,备份文件放置于ocr磁盘中
sql
[grid@rac19cn1 bin]$ ./ocrconfig -showbackup
rac19cn2 2021/06/01 16:42:24 +OCRVT:/rac19cn-cluster/OCRBACKUP/backup00.ocr.263.1074098507 724960844
rac19cn2 2021/06/01 12:41:44 +OCRVT:/rac19cn-cluster/OCRBACKUP/backup01.ocr.261.1074084067 724960844
rac19cn2 2021/06/01 08:41:03 +OCRVT:/rac19cn-cluster/OCRBACKUP/backup02.ocr.264.1074069653 724960844
rac19cn2 2021/05/30 20:39:01 +OCRVT:/rac19cn-cluster/OCRBACKUP/day.ocr.262.1073939943 724960844
rac19cn2 2021/05/19 12:00:02 +OCRVT:/rac19cn-cluster/OCRBACKUP/week.ocr.258.1072958407 724960844
1.3 VOTING Disk
从11g R2开始,Voting Disk的备份会包含在ocr的备份中。
查看voting 盘状态
sql
[root@rac1 bin]# ./crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 1771cce577594f20bf854bb1f1efd667 (/dev/asm-diskb) [OCRVOTE]
Located 1 voting disk(s).