the work directory /tmp/ oracle,Oracle 11.2.0.3 RAC ON Linux 6.4 无法启动 CRS-4124: Oracle High Availabi...

背景:半夜临时需求,虚拟平台升级,涉及该数据库集群,主机重启后,集群无法启动。

报错信息:CRS-4124: Oracle High Availability Services startup failed。

集群日志无任何信息

2021-03-26 01:51:36.668:

[ohasd(3279)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.

OHAS几乎也没有信息

Changing directory to /oracle/11g/grid/11.2.0.3/log/soadbjx2/ohasd

OHASD starting

OHASD stderr redirected to ohasdOUT.log

正常信息应该是这样的:

2020-06-05 22:25:31

Changing directory to /oracle/11g/grid/11.2.0.3/log/soadbjx2/ohasd

OHASD starting

Handshake with the watchdog’s been completed <<<<<< 会出现如下信息

OHASD stderr redirected to ohasdOUT.log

尝试过的操作:

1、关闭防火墙

2、删除socket文件

cd /var/tmp/

rm -rf .oracle

3、重置权限

./rootcrs.pl -unlock

./rootcrs.pl -patch

以上做法均无效,差点想要重建集群,索性跟踪看看

跟踪启动日志

strace -f -t -o /tmp/crschk.trc crsctl start crs

日志中循环打印

52f96f3fbd1328167039e020644032dd.png

open("/var/tmp/.oracle/npohasd", O_WRONLY|O_NONBLOCK) = -1 ENXIO (No such device or address)

读不到socket的文件

命中

Bug 18330979 - Improved diagnostics for when ohasd / init.ohasd handshake failures (Doc ID 18330979.8)

Description

This is a diagnostic enhancement intended to aid in diagnosing a particular class of problem that is sometimes (rarely)

encountered in the Oracle Clusterware start up sequence. Specifically, the required synch up/handshake that

must successfully complete between the ohasd daemon and the init.ohasd watchdog script.

This bug fix adds code to collect diagnostics that are useful towards diagnosing these problems.

Rediscovery Notes

Oracle Clusterware stack stalls at ohasd start up. An strace of ohasd finds that it is stalled waiting on

open("/var/tmp/.oracle/npohasd", O_WRONLY),

ie it is waiting for init.ohasd to complete a read on the same named pipe.

Workaround

Manually read from pipe /var/tmp/.oracle/npohasd

通过cat该文件,恢复正常

cat /var/tmp/.oracle/npohasd

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值