检查 OCR 完整性并备份 OCR(ocrcheck / ocrconfig)
OracleRAC 与 Grid命令
# OCR integrity and capacity check (run as root for the logical check):
ocrcheck
ocrcheck -config
# Automatic backups (every 4 hours, daily, weekly):
ocrconfig -showbackup
# Manual backup before a risky change (root):
ocrconfig -manualbackup
ocrconfig -showbackup manual
# Move the backup location to a disk group (root):
ocrconfig -backuploc +<diskgroup>作用
显示 Oracle Cluster Registry(集群配置库)的完整性、位置和备份;-manualbackup 会立即进行一次 OCR 物理备份。
适用场景
在集群配置变更之前执行,例如添加/删除节点、Grid 补丁/升级、表决磁盘或网络(oifcfg)变更。
注意
ocrconfig -restore 必须在所有节点 CRS 停止且处于独占模式下运行;恢复错误的备份可能导致集群无法启动,因此请在 Oracle Support 协助下进行。自动备份默认可能只保存在单个节点的本地磁盘上;请将位置改到共享磁盘组。