小编给大家分享一下Oracle10g RAC如何在线更换OCR votedisk,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
创新互联公司从2013年成立,是专业互联网技术服务公司,拥有项目网站建设、成都网站设计网站策划,项目实施与项目整合能力。我们以让每一个梦想脱颖而出为使命,1280元城口做网站,已为上家服务,为城口各地企业和个人服务,联系电话:18982081108
操作之前确认集群状态都正常
1、替换OCR
# ./ocrconfig -replace ocrmirror /dev/rhdisk11
# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 1048300
Used space (kbytes) : 4628
Available space (kbytes) : 1043672
ID : 2049932717
Device/File Name : /dev/rhdisk2
Device/File integrity check succeeded
Device/File Name : /dev/rhdisk11
Device/File integrity check succeeded
Cluster registry integrity check succeeded
# cd /etc/oracle
# ls
bin ocr.loc ocr.loc.bak oprocd scls_scr
# more ocr.loc
#Device/file getting replaced by device /dev/rhdisk11
ocrconfig_loc=/dev/rhdisk2
ocrmirrorconfig_loc=/dev/rhdisk11
local_only=false
# cd -
/oracle/product/10.2.0/crs/bin
# pwd
/oracle/product/10.2.0/crs/bin
#
# ./ocrconfig -replace ocr
# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 1048300
Used space (kbytes) : 4628
Available space (kbytes) : 1043672
ID : 2049932717
Device/File Name : /dev/rhdisk11
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
#
2、替换votedisk
# ./crsctl query css votedisk
0. 0 /dev/rhdisk3
located 1 votedisk(s).
# ./crsctl add css votedisk /dev/rhdisk12
Cluster is not in a ready state for online disk addition
# ./crs_stat -t
# ./crsctl add css votedisk /dev/rhdisk12 -force
Now formatting voting disk: /dev/rhdisk12
successful addition of votedisk /dev/rhdisk12.
# ./crsctl query css votedisk
0. 0 /dev/rhdisk3
1. 0 /dev/rhdisk12
located 2 votedisk(s).
# ./crsctl delete css votedisk /dev/rhdisk3
Cluster is not in a ready state for online disk removal
# ./crsctl delete css votedisk /dev/rhdisk3 -force
successful deletion of votedisk /dev/rhdisk3.
# ./crsctl query css votedisk
0. 0 /dev/rhdisk12
located 1 votedisk(s).
以上是“Oracle10g RAC如何在线更换OCR votedisk”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!
本文题目:Oracle10gRAC如何在线更换OCRvotedisk
路径分享:http://lswzjz.com/article/jihdjo.html