Chinaunix首页 | 论坛 | 博客
  • 博客访问: 347062
  • 博文数量: 50
  • 博客积分: 309
  • 博客等级: 二等列兵
  • 技术积分: 503
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-09 20:16
文章分类

全部博文(50)

文章存档

2018年(2)

2015年(1)

2014年(21)

2013年(24)

2012年(1)

2010年(1)

分类: Oracle

2014-09-11 11:33:05

1、集群没有启动起来,首先查看了一下grid的日志,日志保存在$GRID_HOME/log/<节点名称> 目录下,文件的名字是alert<节点名称>.log
     例如我的日志文件就是/g01/11ggrid/app/11.2.0/grid/log/orcl1/alertorcl1.log
2、查看日志文件,在日志文件里我们发现了发下错误

  1. 2014-09-10 15:24:09.169
  2. [ohasd(2450)]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 /g01/11ggrid/app/11.2.0/grid/log/orcl1/ohasd/ohasd.log.
  3. [client(2465)]CRS-10001:CRS-10132: No msg for has:crs-10132 [10][60]

3、于是查看ohasd.log文件,有如下错误提示

  1. 2014-09-10 15:23:40.326: [ default][758777632] OHASD Daemon Starting. Command string :restart
  2. 2014-09-10 15:23:40.328: [ default][758777632] Initializing OLR
  3. 2014-09-10 15:23:40.329: [ OCROSD][758777632]utopen:6m': failed in stat OCR file/disk /g01/11ggrid/app/11.2.0/grid/cdata/orcl1.olr, errno=2, os err string=No such file or directory
  4. 2014-09-10 15:23:40.329: [ OCROSD][758777632]utopen:7: failed to open any OCR file/disk, errno=2, os err string=No such file or directory
  5. 2014-09-10 15:23:40.330: [ OCRRAW][758777632]proprinit: Could not open raw device
  6. 2014-09-10 15:23:40.330: [ OCRAPI][758777632]a_init:16!: Backend init unsuccessful : [26]
  7. 2014-09-10 15:23:40.330: [ CRSOCR][758777632] OCR context init failure. Error: PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]
  8. 2014-09-10 15:23:40.331: [ default][758777632] Created alert : (:OHAS00106:) : OLR initialization failed, error: PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]
  9. 2014-09-10 15:23:40.331: [ default][758777632][PANIC] OHASD exiting; Could not init OLR
  10. 2014-09-10 15:23:40.331: [ default][758777632] Done.

4、问题比较明显是orcl1.lor文件找不到,到目录下面查看果然没有这个文件,于是开始查找资料恢复。
     首先确定原来orcl1.lor文件的配置信息

  1. [root@orcl1 orcl1]# ocrcheck -config -local
  2. Oracle Local Registry configuration is :
  3. Device/File Name : /g01/11ggrid/app/11.2.0/grid/cdata/orcl1.olr

5、使用touch命令创建文件

  1. [root@orcl1 orcl1]# touch /g01/11ggrid/app/11.2.0/grid/cdata/orcl1.olr
  2. [root@orcl1 orcl1]# cd ..
  3. [root@orcl1 cdata]# ll
  4. total 12
  5. drwxr-xr-x 2 grid oinstall 4096 Sep 4 12:11 localhost
  6. drwxr-xr-x 2 grid oinstall 4096 Sep 4 12:49 orcl1
  7. -rw-r--r-- 1 root root 0 Sep 10 22:33 orcl1.olr
  8. drwxrwxr-x 2 grid oinstall 4096 Sep 4 12:11 orcl-cluster

6、恢复olr文件内容。默认olr文件会在目录下的<节点名>文件夹中,保存一下备份

  1. [root@orcl1 cdata]# ocrconfig -local -restore ./orcl1/backup_20140904_124926.olr
  2. [root@orcl1 cdata]# ll
  3. total 6636
  4. drwxr-xr-x 2 grid oinstall 4096 Sep 4 12:11 localhost
  5. drwxr-xr-x 2 grid oinstall 4096 Sep 4 12:49 orcl1
  6. -rw-r--r-- 1 root root 272756736 Sep 10 22:34 orcl1.olr
  7. drwxrwxr-x 2 grid oinstall 4096 Sep 4 12:11 orcl-cluster

7、启动集群

  1. [root@orcl1 cdata]# crsctl start crs
  2. [root@orcl1 cdata]# crsctl stat res -t
  3. --------------------------------------------------------------------------------
  4. NAME TARGET STATE SERVER STATE_DETAILS
  5. --------------------------------------------------------------------------------
  6. Local Resources
  7. --------------------------------------------------------------------------------
  8. ora.LISTENER.lsnr
  9. ONLINE ONLINE orcl1
  10. ONLINE ONLINE orcl2
  11. ora.SYSTEMDG.dg
  12. ONLINE ONLINE orcl1
  13. ONLINE ONLINE orcl2
  14. ora.asm
  15. ONLINE ONLINE orcl1 Started
  16. ONLINE ONLINE orcl2 Started
  17. ora.gsd
  18. OFFLINE OFFLINE orcl1
  19. OFFLINE OFFLINE orcl2
  20. ora.net1.network
  21. ONLINE ONLINE orcl1
  22. ONLINE ONLINE orcl2
  23. ora.ons
  24. ONLINE ONLINE orcl1
  25. ONLINE ONLINE orcl2
  26. --------------------------------------------------------------------------------
  27. Cluster Resources
  28. --------------------------------------------------------------------------------
  29. ora.LISTENER_SCAN1.lsnr
  30. 1 ONLINE ONLINE orcl2
  31. ora.cvu
  32. 1 ONLINE ONLINE orcl2
  33. ora.oc4j
  34. 1 ONLINE ONLINE orcl2
  35. ora.orcl1.vip
  36. 1 ONLINE ONLINE orcl1
  37. ora.orcl2.vip
  38. 1 ONLINE ONLINE orcl2
  39. ora.scan1.vip
  40. 1 ONLINE ONLINE orcl2
  41. [root@orcl1 cdata]#

本次操作感谢提供的资料



阅读(3004) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~