暂无图片
分享
三石
2021-04-16
oracle rac重启服务器,集群自启动失败

/var/log/message
Apr 16 14:14:51 cwglrac12 logger: autorun file for ohasd is missing

/u01/app/11.2.0/grid/log/cwglrac12/ohasd
tail -30000f ohasd.log
2021-04-16 14:16:10.707: [ default][1283712800] Created alert : (:OHAS00117:) : TIMED OUT WAITING FOR OHASD MONITOR

/u01/app/11.2.0/grid/log/cwglrac12/cssd
tail -3000f ocssd.log
关键点Apr 16 14:14:51 以后没任何信息

/u01/app/11.2.0/grid/log/cwglrac12/crsd
tail -3000f ocssd.log
关键点Apr 16 14:14:51 以后没任何信息

/u01/app/11.2.0/grid/log/cwglrac12/
tail -3000f alertcwglrac12.log
2021-04-16 14:16:10.706:
[ohasd(14343)]CRS-0715:Oracle High Availability Service has timed out waiting for init.ohasd to be started.

检查进程
[root@cwglrac12 ~]# ps -ef|grep d.bin
root 14343 1 0 14:06 ? 00:00:00 /u01/app/11.2.0/grid/bin/ohasd.bin reboot
root 34104 33560 0 14:45 pts/0 00:00:00 grep d.bin
[root@cwglrac12 ~]# ps -ef|grep ohasd.bin
root 14343 1 0 14:06 ? 00:00:00 /u01/app/11.2.0/grid/bin/ohasd.bin reboot
root 34172 33560 0 14:45 pts/0 00:00:00 grep ohasd.bin

[root@cwglrac12 ~]# /u01/app/11.2.0/grid/bin/crsctl check crs
CRS-4639: Could not contact Oracle High Availability Services

[root@cwglrac12 ~]# /u01/app/11.2.0/grid/bin/crsctl status res -t
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.

解决办法
[root@cwglrac12 ~]# ps -ef| grep ohasd
root 6920 1 0 14:05 ? 00:00:00 /bin/sh /etc/init.d/init.ohasd run
root 14343 1 0 14:06 ? 00:00:00 /u01/app/11.2.0/grid/bin/ohasd.bin reboot
root 35353 33560 0 14:47 pts/0 00:00:00 grep ohasd

kill -9 6920
即可解决

请问,有什么办法可以彻底解决吗?

收藏
分享
4条回答
默认
最新
JiekeXu
暂无图片

参考如下 MOS 文档检查看看
autorun file for ohasd is missing (Doc ID 1427234.1)

A. Bug 15869775 - init.ohasd starts before hostname is set
The bug is fixed in 11.2.0.3 GI PSU9, 11.2.0.4 GI PSU4, 12.1.0.1 onwards

It's recommended to apply the patch.

Before the patch can be applied, the workaround is to modify init.ohasd script:

 

Add the following line before line "######### Shell functions #########" so it will look like the following:

sleep 30

######### Shell functions #########

image.png

暂无图片 评论
暂无图片 有用 1
暂无图片
茂材

可以尝试手工启动crs同时新开一个窗口执行:
/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
启动成功后,可以将npohasd 文件mv后重建。

暂无图片 评论
暂无图片 有用 0
三石

用 JiekeXu 大哥的第一个办法就能解决,我给后来人添加一点j具体路径的内容
vim /etc/init.d/init.ohasd
sleep 30
######### Shell functions #########

暂无图片 评论
暂无图片 有用 0
YJ
2021-10-25
请问下具体位置在哪加
三石
题主
2021-10-26
就是打开这个文件的最上边
三石
问题已关闭: 问题已经得到解决
暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏