11g rac 重建ocr和votedisk
11g rac 重建ocr和votedisk
1.所有節(jié)點(diǎn)停止集群
crsctl stop crs
如果停止不了可以使用
crsctl stop crs -f
2.每個(gè)節(jié)點(diǎn)執(zhí)行/crs/install/rootcrs.pl,來(lái)撤銷(xiāo)集群配置
[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.每個(gè)節(jié)點(diǎn)的root用戶執(zhí)行g(shù)rid安裝目錄下的root.sh腳本(一次執(zhí)行)
[root@rac1 oracle]# /u01/app/grid/11.2.0/root.sh
[root@rac2 ~]# /u01/app/grid/11.2.0/root.sh
4.查看資源的狀態(tài)
[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
這里如果磁盤(pán)沒(méi)有掛載
需要手動(dòng)掛載
1.以sysasm身份登陸asm實(shí)例,查看磁盤(pán)組
SYS@+ASM1> select name,state from v$asm_diskgroup;
2.如果沒(méi)有掛載
alter diskgroup ***** mout;
驗(yàn)證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
驗(yàn)證votedisk
[root@rac1 oracle]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 1924260bffe94f8cbfbd33550290ee38 (/dev/asmdiskOCR) [CRS]