systemctl配置ohasd后集群启动失败问题分析

篇接我之前的博客:https://blog.csdn.net/qq_40687433/article/details/88426683?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522159290198419195162528956%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=159290198419195162528956&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_v1~rank_blog_v1-1-88426683.pc_v1_rank_blog_v1&utm_term=ohas

 

因为在linux7上安装11g会有ohas启动失败的问题,需要手动配置ohasd服务

但是我在安装的时候配置了ohasd服务,结果ohas启动仍然失败,后来分析发现

如果在安装集群之前配置了ohasd服务,那ohasd处于启动失败的状态ohasd.service failed.

所以需要在安装完集群之后再次start一下ohasd,ohasd service这个时候才可用

 

我在集群安装完成前systemctl start ohasd后状态如下:

[root@hisdg01 ~]# systemctl status ohasd
● ohasd.service - OracleHigh Availability Services
   Loaded: loaded (/etc/systemd/system/ohasd.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Tue 2020-06-23 13:12:07 CST; 3h 17min ago
 Main PID: 82529 (code=exited, status=203/EXEC)

Jun 23 13:12:07 hisdg01 systemd[1]: Unit ohasd.service entered failed state.
Jun 23 13:12:07 hisdg01 systemd[1]: ohasd.service failed.
Jun 23 13:12:07 hisdg01 systemd[1]: ohasd.service holdoff time over, scheduling restart.
Jun 23 13:12:07 hisdg01 systemd[1]: Stopped OracleHigh Availability Services.
Jun 23 13:12:07 hisdg01 systemd[1]: start request repeated too quickly for ohasd.service
Jun 23 13:12:07 hisdg01 systemd[1]: Failed to start OracleHigh Availability Services.
Jun 23 13:12:07 hisdg01 systemd[1]: Unit ohasd.service entered failed state.
Jun 23 13:12:07 hisdg01 systemd[1]: ohasd.service failed.

 

在集群安装完成后start ohasd状态如下

[root@hisdg01 ~]# systemctl start ohasd.service
[root@hisdg01 ~]#  systemctl status ohasd      
● ohasd.service - OracleHigh Availability Services
   Loaded: loaded (/etc/systemd/system/ohasd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-06-23 16:30:14 CST; 7s ago
 Main PID: 53890 (init.ohasd)
   CGroup: /system.slice/ohasd.service
           └─53890 /bin/sh /etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple

Jun 23 16:30:14 hisdg01 systemd[1]: Started OracleHigh Availability Services.

 

这时ohas就可以正常重启了

 

你可能感兴趣的:(ORACLE,RAC,ORACLE,INSTALLATION,ohas,linux7,rac)