模拟 OLR被删除GRID无法启动故障

[复制链接]
查看11 | 回复0 | 2013-2-25 14:51:24 | 显示全部楼层 |阅读模式
--备份OLR
[root@rac1 grid]# /u01/app/11.2.0/grid/bin/ocrconfig -local -manualbackup
--关闭 GRID
[root@rac1 grid]# /u01/app/11.2.0/grid/bin/crsctl stop has
--移除OLR
[root@rac1 grid]# mv /u01/app/11.2.0/grid/cdata/rac1.olr /home/grid/

--启动GRID出错
[root@rac1 grid]# /u01/app/11.2.0/grid/bin/crsctl start has
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.

--查看 GRID 日志,提示OLR文件不存在
[oracle@rac1 rac1]$ vi /u01/app/11.2.0/grid/log/rac1/alertrac1.log
2016-08-14 16:44:39.385:
[ohasd(48700)]CRS-0704:Oracle High Availability Service aborted due to Oracle Local Registry error [PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]]. Details at (:OHAS00106

in /u01/app/11.2.0/grid/log/rac1/ohasd/ohasd.log.
2016-08-14 16:44:39.564:
[ohasd(48711)]CRS-0704:Oracle High Availability Service aborted due to Oracle Local Registry error [PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]]. Details at (:OHAS00106

in /u01/app/11.2.0/grid/log/rac1/ohasd/ohasd.log.
2016-08-14 16:44:39.743:
[ohasd(48722)]CRS-0704:Oracle High Availability Service aborted due to Oracle Local Registry error [PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]]. Details at (:OHAS00106

in /u01/app/11.2.0/grid/log/rac1/ohasd/ohasd.log.
2016-08-14 16:44:44.932:
[ohasd(48742)]CRS-0704:Oracle High Availability Service aborted due to Oracle Local Registry error [PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]]. Details at (:OHAS00106

in /u01/app/11.2.0/grid/log/rac1/ohasd/ohasd.log.
[client(48757)]CRS-10001:CRS-10132: No msg for has:crs-10132 [10][60]
--查看 OHASD日志,提示 OLR文件不存在
[grid@rac1 ohasd]$ vi /u01/app/11.2.0/grid/log/rac1/ohasd/ohasd.log
2016-08-14 16:44:38.811: [ default][1786005280] OHASD Daemon Starting. Command string :restart
2016-08-14 16:44:38.811: [ default][1786005280] Initializing OLR
2016-08-14 16:44:38.813: [OCROSD][1786005280]utopen:6m': failed in stat OCR file/disk /u01/app/11.2.0/grid/cdata/rac1.olr, errno=2, os err string=No such file or directory
2016-08-14 16:44:38.813: [OCROSD][1786005280]utopen:7: failed to open any OCR file/disk, errno=2, os err string=No such file or directory
2016-08-14 16:44:38.813: [OCRRAW][1786005280]proprinit: Could not open raw device
2016-08-14 16:44:38.813: [OCRAPI][1786005280]a_init:16!: Backend init unsuccessful : [26]
2016-08-14 16:44:38.814: [CRSOCR][1786005280] OCR context init failure.Error: PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]
2016-08-14 16:44:38.816: [ default][1786005280] Created alert : (:OHAS00106

:OLR initialization failed, error: PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]
2016-08-14 16:44:38.816: [ default][1786005280][PANIC] OHASD exiting; Could not init OLR
2016-08-14 16:44:38.816: [ default][1786005280] Done.

--确认OLR文件已经丢失
[root@rac1 grid]# ls /u01/app/11.2.0/grid/cdata/rac1.olr
ls: cannot access /u01/app/11.2.0/grid/cdata/rac1.olr: No such file or directory

--确认备份存在
[root@rac1 grid]# ls -l /u01/app/11.2.0/grid/cdata/rac1
total 13476
-rw------- 1 root root 6803456 Aug9 10:10 backup_20160809_101046.olr
-rw------- 1 root root 6995968 Aug 14 16:34 backup_20160814_163404.olr
--还原 OLR出错
[root@rac1 grid]# /u01/app/11.2.0/grid/bin/ocrconfig -local -restore /u01/app/11.2.0/grid/cdata/rac1/backup_20160814_163404.olr
PROTL-35: The configured OLR location is not accessible.
--在 /u01/app/11.2.0/grid/cdata目录中创建 rac1.olr,并赋予600权限后还原成功
[root@rac1 cdata]# touch rac1.olr
[root@rac1 cdata]# chmod 600 rac1.olr
[root@rac1 cdata]# pwd
/u01/app/11.2.0/grid/cdata
[root@rac1 cdata]# /u01/app/11.2.0/grid/bin/ocrconfig -local -restore /u01/app/11.2.0/grid/cdata/rac1/backup_20160814_163404.olr

--启动 GRID
[root@rac1 rac1]# /u01/app/11.2.0/grid/bin/crsctl start has
CRS-4123: Oracle High Availability Services has been started.


[root@rac1 rac1]# ps -ef|grep pmon
oracle5390110 17:26 ?00:00:00 ora_pmon_racdb11
root54199108840 17:27 pts/000:00:00 grep pmon
[root@rac1 rac1]# ps -ef|grep grid
root 151810 10:19 ?00:01:38 /u01/app/11.2.0/grid/jdk/jre/bin/java -Xms64m -Xmx256m -classpath /u01/app/11.2.0/grid/tfa/rac1/tfa_home/jar/RATFA.jar:/u01/app/11.2.0/grid/tfa/rac1/tfa_home/jar/je-4.0.103.jar:/u01/app/11.2.0/grid/tfa/rac1/tfa_home/jar/ojdbc6.jar oracle.rat.tfa.TFAMain /u01/app/11.2.0/grid/tfa/rac1/tfa_home
root5307311 17:25 ?00:00:02 /u01/app/11.2.0/grid/bin/ohasd.bin reboot
grid5319210 17:25 ?00:00:00 /u01/app/11.2.0/grid/bin/oraagent.bin
grid5320310 17:25 ?00:00:00 /u01/app/11.2.0/grid/bin/mdnsd.bin
grid5321410 17:25 ?00:00:00 /u01/app/11.2.0/grid/bin/gpnpd.bin
grid5322610 17:25 ?00:00:01 /u01/app/11.2.0/grid/bin/gipcd.bin
root5322710 17:25 ?00:00:00 /u01/app/11.2.0/grid/bin/orarootagent.bin
root5324111 17:25 ?00:00:02 /u01/app/11.2.0/grid/bin/osysmond.bin
root5325210 17:25 ?00:00:00 /u01/app/11.2.0/grid/bin/cssdmonitor
root5326810 17:25 ?00:00:00 /u01/app/11.2.0/grid/bin/cssdagent
grid5327910 17:25 ?00:00:00 /u01/app/11.2.0/grid/bin/ocssd.bin
root5331012 17:26 ?00:00:02 /u01/app/11.2.0/grid/bin/ologgerd -M -d /u01/app/11.2.0/grid/crf/db/rac1
root5339910 17:26 ?00:00:00 /u01/app/11.2.0/grid/bin/octssd.bin reboot
root5342212 17:26 ?00:00:02 /u01/app/11.2.0/grid/bin/crsd.bin reboot
grid5342610 17:26 ?00:00:00 /u01/app/11.2.0/grid/bin/evmd.bin
grid53490534260 17:26 ?00:00:00 /u01/app/11.2.0/grid/bin/evmlogger.bin -o /u01/app/11.2.0/grid/evm/log/evmlogger.info -l /u01/app/11.2.0/grid/evm/log/evmlogger.log
root5353411 17:26 ?00:00:01 /u01/app/11.2.0/grid/bin/orarootagent.bin
grid5364210 17:26 ?00:00:00 /u01/app/11.2.0/grid/bin/oraagent.bin
grid5364410 17:26 ?00:00:00 /u01/app/11.2.0/grid/bin/scriptagent.bin
grid5367710 17:26 ?00:00:00 /u01/app/11.2.0/grid/opmn/bin/ons -d
grid53678536770 17:26 ?00:00:00 /u01/app/11.2.0/grid/opmn/bin/ons -d
grid5370519 17:26 ?00:00:07 /u01/app/11.2.0/grid/jdk/bin/java -server -Xcheck:jni -Xms128M -Xmx384M -Djava.awt.headless=true -Ddisable.checkForUpdate=true -Dstdstream.filesize=100 -Dstdstream.filenumber=10 -DTRACING.ENABLED=false -Doracle.wlm.dbwlmlogger.logging.level=INFO -Dport.rmi=23792 -jar /u01/app/11.2.0/grid/oc4j/j2ee/home/oc4j.jar -config /u01/app/11.2.0/grid/oc4j/j2ee/home/OC4J_DBWLM_config/server.xml -out /u01/app/11.2.0/grid/oc4j/j2ee/home/log/oc4j.out -err /u01/app/11.2.0/grid/oc4j/j2ee/home/log/oc4j.err
grid5375810 17:26 ?00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN1 -inherit
grid5377910 17:26 ?00:00:00 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
oracle5381810 17:26 ?00:00:00 /u01/app/11.2.0/grid/bin/oraagent.bin
root54207108840 17:27 pts/000:00:00 grep grid
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行