因为在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就可以正常重启了