11g rac 重建ocr和votedisk
1.所有节点停止集群
crsctl stop crs
如果停止不了可以使用
crsctl stop crs -f
2.每个节点执行/crs/install/rootcrs.pl,来撤销集群配置
[root@rac1 oracle]# /u01/app/grid/11.2.0/crs/install/rootcrs.pl -deconfig -verbose -force
[root@rac2 oracle]# /u01/app/grid/11.2.0/crs/install/rootcrs.pl -deconfig -verbose -force
3.每个节点的root用户执行grid安装目录下的root.sh脚本(一次执行)
[root@rac1 oracle]# /u01/app/grid/11.2.0/root.sh
[root@rac2 ~]# /u01/app/grid/11.2.0/root.sh
4.查看资源的状态
[root@rac2 ~]# crs_stat.sh
Name Target State Host
------------------------------ ---------- --------- -------
oggvip ONLINE ONLINE rac1
ora.CRS.dg ONLINE ONLINE rac1
ora.DATA.dg ONLINE ONLINE rac1
ora.FRA.dg ONLINE ONLINE rac1
ora.LISTENER.lsnr ONLINE ONLINE rac1
ora.LISTENER_SCAN1.lsnr ONLINE ONLINE rac1
ora.OGG.dg ONLINE ONLINE rac1
ora.asm ONLINE ONLINE rac1
ora.cvu ONLINE ONLINE rac1
ora.gsd OFFLINE OFFLINE
ora.net1.network ONLINE ONLINE rac1
ora.oc4j ONLINE ONLINE rac1
ora.ons ONLINE ONLINE rac1
ora.rac.db ONLINE ONLINE rac1
ora.rac1.ASM1.asm ONLINE ONLINE rac1
ora.rac1.LISTENER_RAC1.lsnr ONLINE ONLINE rac1
ora.rac1.gsd OFFLINE OFFLINE
ora.rac1.ons ONLINE ONLINE rac1
ora.rac1.vip ONLINE ONLINE rac1
ora.rac2.ASM2.asm ONLINE ONLINE rac2
ora.rac2.LISTENER_RAC2.lsnr ONLINE ONLINE rac2
ora.rac2.gsd OFFLINE OFFLINE
ora.rac2.ons ONLINE ONLINE rac2
ora.rac2.vip ONLINE ONLINE rac2
ora.registry.acfs ONLINE ONLINE rac1
ora.scan1.vip ONLINE ONLINE rac1
这里如果磁盘没有挂载
需要手动挂载
1.以sysasm身份登陆asm实例,查看磁盘组
SYS@+ASM1> select name,state from v$asm_diskgroup;
2.如果没有挂载
alter diskgroup ***** mout;
验证OCR
[root@rac1 oracle]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3396
Available space (kbytes) : 258724
ID : 2129345179
Device/File Name : +CRS
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
验证votedisk
[root@rac1 oracle]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 1924260bffe94f8cbfbd33550290ee38 (/dev/asmdiskOCR) [CRS]
当前标题:11grac重建ocr和votedisk
浏览路径:
http://cdweb.net/article/pooeej.html