生产环境安装12.2.0.1单实例的时候,在GI执行root.sh失败。
ALERT LOG
--------------
Filename=roothas_2018-03-14_08-44-04AM.log
2018-03-14 08:44:14: Command output:
> ● oracle-ohasd.service - Oracle High Availability Services
> Loaded: loaded (/etc/systemd/system/oracle-ohasd.service; enabled; vendor preset: disabled)
> Active: active (running) since Wed 2018-03-14 08:26:05 CST; 18min ago
> Main PID: 13751 (init.ohasd)
> CGroup: /system.slice/oracle-ohasd.service
> └─13751 /bin/sh /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
>
> Mar 14 08:26:05 lxtrac03.iris.cl.sh.cos systemd[1]: Started Oracle High Availability Services.
> Mar 14 08:26:05 lxtrac03.iris.cl.sh.cos systemd[1]: Starting Oracle High Availability Services...
> Mar 14 08:26:05 lxtrac03.iris.cl.sh.cos su[13788]: (to grid) root on none
>End Command output
........
2018-03-14 08:44:19: Executing cmd: /usr/bin/systemctl start oracle-ohasd.service
2018-03-14 08:44:19: Executing cmd: /u01/app/12.2.0.1/grid/bin/crsctl start has
2018-03-14 08:46:20: Command output:
> CRS-4124: Oracle High Availability Services startup failed.
> CRS-4000: Command Start failed, or completed with errors.
>End Command output
2018-03-14 08:46:20: Executing /etc/init.d/ohasd install
2018-03-14 08:46:20: Executing cmd: /etc/init.d/ohasd install
2018-03-14 08:46:20: Executing cmd: /u01/app/12.2.0.1/grid/bin/clsecho -p has -f clsrsc -m 214 "ohasd"
2018-03-14 08:46:20: Command output:
> CLSRSC-214: Failed to start the resource 'ohasd'
>End Command output
2018-03-14 08:46:20: CLSRSC-214: Failed to start the resource 'ohasd'
2018-03-14 08:46:20: ohasd failed to start
2018-03-14 08:46:20: Alert log is /u01/app/12.2.0.1/grid/log/lxtrac03/alertlxtrac03.log
2018-03-14 08:46:20: Failed to start service 'ohasd'
2018-03-14 08:46:20: Executing cmd: /u01/app/12.2.0.1/grid/bin/clsecho -p has -f clsrsc -m 318
2018-03-14 08:46:20: Command output:
> CLSRSC-318: Failed to start Oracle OHASD service
>End Command output
2018-03-14 08:46:20: CLSRSC-318: Failed to start Oracle OHASD service
2018-03-14 08:46:20: ###### Begin DIE Stack Trace ######
2018-03-14 08:46:20: Package File Line Calling
2018-03-14 08:46:20: --------------- -------------------- ---- ----------
2018-03-14 08:46:20: 1: main roothas.pl 151 crsutils::dietrap
2018-03-14 08:46:20: 2: crsinstall crsinstall.pm 2775 main::__ANON__
2018-03-14 08:46:20: 3: crsinstall crsinstall.pm 1164 crsinstall::start_siha_ohasd
2018-03-14 08:46:20: 4: crsinstall crsinstall.pm 936 crsinstall::config_ohasd_siha
2018-03-14 08:46:20: 5: crsinstall crsinstall.pm 362 crsinstall::HAInstall
2018-03-14 08:46:20: 6: main roothas.pl 260 crsinstall::new
2018-03-14 08:46:20: ####### End DIE Stack Trace #######
2018-03-14 08:46:20: ROOTCRS_STACK checkpoint has failed
参考文档:Oracle Restart: 12.1 grid installation root.sh fails while starting ohasd ( Doc ID 1997268.1 )
解决方法:
================================================================
Workaround:
Rename the directory to root.bak under .../scls_scr/{nodenanme} and re-run root.sh
or
- clean up all directories under .../scls_scr
- clean all directories under /var/tmp/.oracle
- deconfig ohasd as in below example and re-run root.sh
/<GI Home>/crs/install/roothas.pl -deconfig -force
./root.sh
================================================================