測试oracle 11g cluster 中OLR的重要性

called an Oracle Local Registry (OLR): each node in a cluster has a local registry for node-specific resources

測试一:模拟olr异常丢失的情况:

这里首先将olr renam

[root@vmrac2 cdata]# mv vmrac2.olr vmrac2.olr.bak

然后尝试去启动crs

[root@vmrac2 cdata]# crsctl start crs

 CRS-4124: Oracle High Availability Services startup failed.

CRS-4000: Command Start failed, or completed with errors.

然后我们观察下 集群alert log的日志输出情况:

[grid@vmrac2 vmrac2]$ tailf alertvmrac2.log

[ohasd(2495)]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

/u02/app/11.2.0.3/grid/log/vmrac2/ohasd/ohasd.log.

2014-06-16 16:51:59.491

[ohasd(2506)]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

/u02/app/11.2.0.3/grid/log/vmrac2/ohasd/ohasd.log.

2014-06-16 16:51:59.698

[ohasd(2517)]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

/u02/app/11.2.0.3/grid/log/vmrac2/ohasd/ohasd.log.

2014-06-16 16:51:59.901

[ohasd(2528)]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

/u02/app/11.2.0.3/grid/log/vmrac2/ohasd/ohasd.log.

2014-06-16 16:52:00.113

[ohasd(2539)]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

/u02/app/11.2.0.3/grid/log/vmrac2/ohasd/ohasd.log.

[client(2554)]CRS-10001:CRS-10132: No msg for has:crs-10132 [10][60]

2014-06-16 16:56:00.720

[ohasd(2717)]CRS-2112:The OLR service started on node vmrac2.

2014-06-16 16:56:00.788

[ohasd(2717)]CRS-1301:Oracle High Availability Service started on node vmrac2.

2014-06-16 16:56:00.855

[ohasd(2717)]CRS-8017:location: /etc/oracle/lastgasp has 2 reboot advisory log files, 0 were announced and 0 errors

occurred

2014-06-16 16:56:01.836

[/u02/app/11.2.0.3/grid/bin/orarootagent.bin(2768)]CRS-5016:Process "/u02/app/11.2.0.3/grid/bin/acfsload" spawned by agent

"/u02/app/11.2.0.3/grid/bin/orarootagent.bin" for action "check" failed: details at "(:CLSN00010:)" in

"/u02/app/11.2.0.3/grid/log/vmrac2/agent/ohasd/orarootagent_root/orarootagent_root.log"

2014-06-16 16:56:19.876

[ohasd(2717)]CRS-2302:Cannot get GPnP profile.Error CLSGPNP_NO_DAEMON (GPNPD daemon is not running).


2014-06-16 16:56:19.909

[gpnpd(2873)]CRS-2328:GPNPD started on node vmrac2.

2014-06-16 16:56:22.751

[cssd(2947)]CRS-1713:CSSD daemon is started in clustered mode

2014-06-16 16:56:24.073

[ohasd(2717)]CRS-2767:Resource state recovery not attempted for 'ora.diskmon' as its target state is OFFLINE

2014-06-16 16:56:32.512

[cssd(2947)]CRS-1707:Lease acquisition for node vmrac2 number 2 completed

2014-06-16 16:56:33.798

[cssd(2947)]CRS-1605:CSSD voting file is online: ORCL:CRSVOL1; details in /u02/app/11.2.0.3/grid/log/vmrac2/cssd/ocssd.log.

2014-06-16 16:56:40.342

[cssd(2947)]CRS-1601:CSSD Reconfiguration complete. Active nodes are vmrac1 vmrac2 .

2014-06-16 16:56:42.635

[ctssd(3009)]CRS-2401:The Cluster Time Synchronization Service started on host vmrac2.

2014-06-16 16:56:42.635

[ctssd(3009)]CRS-2407:The new Cluster Time Synchronization Service reference node is host vmrac1.

2014-06-16 16:56:46.726

[ctssd(3009)]CRS-2408:The clock on host vmrac2 has been updated by the Cluster Time Synchronization Service to be

synchronous with the mean cluster time.

[client(3047)]CRS-10001:16-Jun-14 16:56 ACFS-9391: Checking for existing ADVM/ACFS installation.

[client(3060)]CRS-10001:16-Jun-14 16:56 ACFS-9392: Validating ADVM/ACFS installation files for operating system.

[client(3062)]CRS-10001:16-Jun-14 16:56 ACFS-9393: Verifying ASM Administrator setup.

[client(3065)]CRS-10001:16-Jun-14 16:56 ACFS-9308: Loading installed ADVM/ACFS drivers.

[client(3069)]CRS-10001:16-Jun-14 16:56 ACFS-9154: Loading 'oracleoks.ko' driver.

[client(3080)]CRS-10001:16-Jun-14 16:56 ACFS-9154: Loading 'oracleadvm.ko' driver.

[client(3096)]CRS-10001:16-Jun-14 16:56 ACFS-9154: Loading 'oracleacfs.ko' driver.

[client(3180)]CRS-10001:16-Jun-14 16:56 ACFS-9327: Verifying ADVM/ACFS devices.

[client(3183)]CRS-10001:16-Jun-14 16:56 ACFS-9156: Detecting control device '/dev/asm/.asm_ctl_spec'.

[client(3187)]CRS-10001:16-Jun-14 16:56 ACFS-9156: Detecting control device '/dev/ofsctl'.

[client(3193)]CRS-10001:16-Jun-14 16:56 ACFS-9322: completed

測试二:清空olr的内容,使用一个空文件来取代:

观察alert.log内容例如以下:

[ohasd(5451)]CRS-0704:Oracle High Availability Service aborted due to Oracle Local Registry error [PROCL-26: Error while

accessing the physical storage]. Details at (:OHAS00106:) in /u02/app/11.2.0.3/grid/log/vmrac2/ohasd/ohasd.log.

2014-06-16 17:19:02.723

[ohasd(5462)]CRS-0704:Oracle High Availability Service aborted due to Oracle Local Registry error [PROCL-26: Error while

accessing the physical storage]. Details at (:OHAS00106:) in /u02/app/11.2.0.3/grid/log/vmrac2/ohasd/ohasd.log.

[client(5477)]CRS-10001:CRS-10132: No msg for has:crs-10132 [10][60]

观察对应的ohasd.log 日志的内容:

[grid@vmrac2 vmrac2]$ tail -300 /u02/app/11.2.0.3/grid/log/vmrac2/ohasd/ohasd.log

2014-06-16 17:19:02.722: [  OCROSD][1923920288]utread:3: Problem reading buffer 150c4000 buflen 4096 retval 0 phy_offset

102400 retry 5

2014-06-16 17:19:02.722: [  OCRRAW][1923920288]propriogid:1_1: Failed to read the whole bootblock. Assumes invalid format.

2014-06-16 17:19:02.722: [  OCRRAW][1923920288]proprioini: all disks are not OCR/OLR formatted

2014-06-16 17:19:02.722: [  OCRRAW][1923920288]proprinit: Could not open raw device


2014-06-16 17:19:02.722: [  OCRAPI][1923920288]a_init:16!: Backend init unsuccessful : [26]

2014-06-16 17:19:02.723: [  CRSOCR][1923920288] OCR context init failure.  Error: PROCL-26: Error while accessing the

physical storage

2014-06-16 17:19:02.723: [ default][1923920288] Created alert : (:OHAS00106:) :  OLR initialization failed, error: PROCL-

26: Error while accessing the physical storage

2014-06-16 17:19:02.723: [ default][1923920288][PANIC] OHASD exiting; Could not init OLR

2014-06-16 17:19:02.723: [ default][1923920288] Done

总结:

依据上面的測试 能够发现ohasd (Oracle High Availability Service) 依赖于 olr (Oracle Local Registry)中的配置信息 假设olr 异

常,或者丢失都会导致ohasd 进程启动失败。

測试oracle 11g cluster 中OLR的重要性的更多相关文章

  1. oracle 11g GRID 中 关于 OLR 须要知道的一些内容

     oracle 11g GRID 中 关于 OLR 须要知道的一些内容 1.检查olr 的状态: [root@vmrac1 ~]# ocrcheck -local Status of Oracle ...

  2. 在Oracle 11g r2中,EXP无法导出个别空的表

    在Oracle 11g r2中,发现传统的exp无法不能导出空的表,上网搜索了一下找到了原因. 主要是Oracle 11g 新增了一个参数:deferred_segment_creation,含义是段 ...

  3. Oracle 11g rac中关于crsctl stop cluster/crs/has的区别

    转载至http://www.oracleplus.net/arch/1203.html,整理后得. 1 通过命令查看cluster/has/crs管理的内容 [root@11rac1 ~]# crsc ...

  4. ORACLE 11g 生产中高水位线(HWM)处理

    数据库中表不断的insert,delete,update,导致表和索引出现碎片.这会导致HWM之前有很多的空闲空间,而oracle在做全表扫描的时候会读取HWM一下的所有块,这样会产生更多的IO,影响 ...

  5. CentOS6.5 静默安装Oracle 11g过程中提示:Exception in thread “main” java.lang.NoClassDefFoundError

    原来是系统中设置了DISPLAY环境变量,执行: [oracle@qa26 database]$ ./runInstaller  -silent -responseFile /usr/local/or ...

  6. 让你提前认识软件开发(19):C语言中的协议及单元測试演示样例

    第1部分 又一次认识C语言 C语言中的协议及单元測试演示样例 [文章摘要] 在实际的软件开发项目中.常常要实现多个模块之间的通信.这就须要大家约定好相互之间的通信协议,各自依照协议来收发和解析消息. ...

  7. 软件測试、ios中的測试概念以及步骤

    软件測试: 软件測试的目标是应该服务于软件项目的目标,能够通过建议反馈使用更加高效的方法和工具,提升软件开发效率以及软件开发质量.同一时候还能够通过过一些手段,更早.更快.很多其它地发现缺陷.从容减少 ...

  8. Oracle 11g RAC运维总结

    转至:https://blog.csdn.net/qq_41944882/article/details/103560879 1 术语解释1.1 高可用(HA)什么是高可用?顾名思义我们能轻松地理解是 ...

  9. Oracle 11g RAC oc4j/gsd Offline

    Oracle 11g RAC中,发现oc4j以及gsd服务都处于offline状态,这是Oracle 11g RAC默认情形.即便如此,并不影响数据库的使用,因为 oc4j 是用于WLM 的一个资源, ...

随机推荐

  1. Oracle中的dual

    简介,摘自百度百科: Oracle提供的最小的表,不论进行何种操作(不要删除记录),它都只有一条记录——'X'. 例如:执行select * from dual,里面只有一条记录:执行insert i ...

  2. 一键去除网页BOM属性【解决乱码,头部空白,&#65279问题】

    几个常出现的问题: 1.网站打开空白 2.页面头部出现多余的空白 3.网站出现乱码,如“锘�” 解决方法可以是: 1.选用专业的编辑器,例如notepad++,sublime,editplus这样不会 ...

  3. before_request after_request

    Flask我们已经学习很多基础知识了,现在有一个问题 我们现在有一个 Flask 程序其中有3个路由和视图函数,如下: from flask import Flask app = Flask(__na ...

  4. MVC基础知识 – 2.新语法

    1.自动属性 Auto-Implemented Properties 2.隐式类型 var 3.参数默认值 和 命名参数 4.对象初始化器 与 集合初始化器 { } 5.匿名类 & 匿名方法 ...

  5. iOS客户端学习之AES加密

    数据加密在解密在软件开发过程中举足轻重的作用,可能有的公司在加密的时候有自己公司内部一套设计的算法,而在这方面不想浪费太大精力就可以去考虑使用第三方提供的加密算法,如AES加密算法,本篇内容介绍开源中 ...

  6. Redis 启动与授权

    启动 Redis $redis-server 检查Redis是否在工作? $redis-cli 这将打开一个Redis提示,如下图所示: redis 127.0.0.1:6379> 上面的提示1 ...

  7. 找到最大或最小的N个元素---heapq模块

    堆排序heapq的用法 基本用法: 复杂数据结构: # coding=utf- # example.py # Example of using heapq to find the N smallest ...

  8. [实战]MVC5+EF6+MySql企业网盘实战(10)——新建文件夹

    写在前面 上篇文章更新了编辑了文件名的操作,本片文章将实现新建文件夹的功能. 系列文章 [EF]vs15+ef6+mysql code first方式 [实战]MVC5+EF6+MySql企业网盘实战 ...

  9. lr关联抓有相同左右边界的动态值

    怎样抓取有相同左右边界的动态value? 怎样抓取有相同左右边界的动态value?例如: stateID="d7lg0ehmjkkm6uin3s4boei7oq"> stat ...

  10. 用三个线程循环输出ABC

    前两天看Java吧有人求助这个问题.想了想并不是很难.今天就顺手实现了一下. 我自己想到的有两种方法,一个是使用synchronized,一个是使用lock. 一.synchronized packa ...