ocr votedisk

ocr的备份
应用手动备份 导出
ocrconfig -export  ***
还原  导入
ocrconfig -import  ***
注:备份前要关闭所有节点的crs
应用自动备份
OCR会自动隔4个小时备份一次 保留当天的最后3个、前天和上周的最后一个备份
还原:
ocrconfig -restore  备份文件
votedisk的备份
可添加n多个votedik ,根据半数以上正常原则判断集群是否正常。
备份:
dd if=/dev/**[带备份的votedisk]  f=/dev/**[备份的目的地]
还原:
#dd if=/home/oracle/voting_disk.bak f=/dev/raw/raw2

添加votedisk时经常有报错:
crsctl add css votedisk /ocfs1/**
Cluster is not in a ready state for online disk addition
找到的解释及解决是:
When the CRS stack is running and the add votedisk command or the crsctl remove votedisk command is executed, It will fail with a "Cluster is not in a ready state for online disk addition" message. This is because of internal bug 3972986. Dynamic addition and deletion of voting disk when the Clusterware is running is not possible without the fix for this bug.
Some customers may mis-interpret the "Cluster is not in a ready state for online disk addition" message and try to run the command with the -force attribute when the stack is running to force the change. This is known to corrupt the OCR. It is not recommended to use the -force attribute to add or delete the voting disk when the Clusterware is running.
Without the fix for bug 3972986, voting disks **CANNOT** be added or deleted when the clusterware is running on any node.

Workaround or Resolution
Workaround to the problem other than applying the patch for bug 3972986 after it becomes available is to ensure that the add or remove the voting disk commands are executed only after bringing down the clusterware on all nodes. As mentioned in the Oracle documentation, this requires the use of -force option. The -force attribute can be safely used ONLY if the Clusterware is stopped on all the nodes of the cluster.
If the voting disk has already been added using the -force option when the Oracle clusterware stack is running then it is recommended to stop the Clusterware on all the nodes and restore the OCR from the time before the votedisk was added or removed.
简单的理解就是这个问题是BUG引起的。。
怎么解决了  加-force
但是前提是关闭所有节点的crs 否则可能破坏OCR
如果已经添加了怎么办  oracle建议我们restore一下OCR
再不行。。就打补丁吧。。
请使用浏览器的分享功能分享到微信等