Oracle10g RAC在线更换OCR votedisk

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle10g RAC在线更换OCR votedisk相关的知识,希望对你有一定的参考价值。

操作之前确认集群状态都正常

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的主要内容,如果未能解决你的问题,请参考以下文章

11g RAC OCR,VOTING DISK存储全部损坏,利用自动备份,恢复OCR,VOTING DISK到新存储。

Oracle RAC 更换存储实验

AIX 下 Oracle RAC 部署文档 | 周末送资料

Oracle voting文件的管理

Linux7.2安装ORACLE12C_RAC

oracle vote disk和ocr disk备份与恢复