{"id":860,"date":"2018-08-12T17:09:12","date_gmt":"2018-08-12T09:09:12","guid":{"rendered":"http:\/\/www.821121.com\/?p=860"},"modified":"2020-12-07T17:40:54","modified_gmt":"2020-12-07T09:40:54","slug":"rhel7-11g-ohasd-failed-to-start","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=860","title":{"rendered":"RHEL7 11G ohasd failed to start"},"content":{"rendered":"<p>RHEL7 \u5b89\u88c5oracle rac 11.2.0.4\u6267\u884croot.sh\u62a5\u9519ohasd failed to start<\/p>\n<p>\u62a5\u9519\u4fe1\u606f\uff1a<\/p>\n<p>[root@whs1 ~]# \/u01\/app\/oraInventory\/orainstRoot.sh\u00a0<br \/>\n...<br \/>\n...<br \/>\nAdding Clusterware entries to inittab<br \/>\nohasd failed to start<br \/>\nFailed to start the Clusterware. Last 20 lines of the alert log follow:\u00a0<br \/>\n2018-02-12 13:23:41:\u00a0<br \/>\n[client(13782)]CRS-2101:The OLR was formatted using version 3.<\/p>\n<p>\u62a5\u9519\u539f\u56e0\uff1a<\/p>\n<p>\u56e0\u4e3aRHEL 7\u4f7f\u7528systemd\u800c\u4e0d\u662finitd\u8fd0\u884c\u8fdb\u7a0b\u548c\u91cd\u542f\u8fdb\u7a0b\uff0c\u800croot.sh\u901a\u8fc7\u4f20\u7edf\u7684initd\u8fd0\u884cohasd\u8fdb\u7a0b\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<p>\u5728RHEL 7\u4e2dohasd\u9700\u8981\u88ab\u8bbe\u7f6e\u4e3a\u4e00\u4e2a\u670d\u52a1\uff0c\u5728\u8fd0\u884c\u811a\u672croot.sh\u4e4b\u524d\u3002<\/p>\n<p>\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u4ee5root\u7528\u6237\u521b\u5efa\u670d\u52a1\u6587\u4ef6<\/li>\n<\/ol>\n<p>touch\u00a0\/usr\/lib\/systemd\/system\/ohas.service<\/p>\n<p>chmod 777\u00a0\/usr\/lib\/systemd\/system\/ohas.service<\/p>\n<ol start=\"2\">\n<li>\u5c06\u4ee5\u4e0b\u5185\u5bb9\u6dfb\u52a0\u5230\u65b0\u521b\u5efa\u7684ohas.service\u6587\u4ef6\u4e2d<\/li>\n<\/ol>\n<p>[root@whs1 init.d]# cat \/usr\/lib\/systemd\/system\/ohas.service<br \/>\n[Unit]<br \/>\nDescription=Oracle High Availability Services<br \/>\nAfter=syslog.target<br \/>\n[Service]<br \/>\nExecStart=\/etc\/init.d\/init.ohasd run &gt;\/dev\/null 2&gt;&amp;1 Type=simple<br \/>\nRestart=always<br \/>\n[Install]<br \/>\nWantedBy=multi-user.target<\/p>\n<ol start=\"3\">\n<li>\u4ee5root\u7528\u6237\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4<\/li>\n<\/ol>\n<p>systemctl daemon-reload<br \/>\nsystemctl enable ohas.service<br \/>\nsystemctl start ohas.service<\/p>\n<p>\u8fd0\u884c\u811a\u672croot.sh \u4e0d\u4f1a\u518d\u62a5ohasd failed to start\u9519\u8bef\u4e86\u3002<\/p>\n<p>\u5982\u679c\u8fd8\u662f\u62a5ohasd failed to start\u9519\u8bef\uff0c\u53ef\u80fd\u662froot.sh\u811a\u672c\u521b\u5efa\u4e86init.ohasd\u4e4b\u540e\uff0cohas.service\u6ca1\u6709\u9a6c\u4e0a\u542f\u52a8\uff0c\u89e3\u51b3\u65b9\u6cd5\u662f\uff1a\u5f53\u8fd0\u884croot.sh\u65f6\uff0c\u4e00\u76f4\u5237\u65b0\/etc\/init.d \uff0c\u76f4\u5230\u51fa\u73b0 init.ohasd \u6587\u4ef6\uff0c\u9a6c\u4e0a\u624b\u52a8\u542f\u52a8ohas.service\u670d\u52a1 \u547d\u4ee4\uff1asystemctl start ohas.service<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RHEL7 \u5b89\u88c5oracle rac 11.2.0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,37],"tags":[],"class_list":["post-860","post","type-post","status-publish","format-standard","hentry","category-oracle-11g","category--oracle-11g"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=860"}],"version-history":[{"count":3,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/860\/revisions"}],"predecessor-version":[{"id":863,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/860\/revisions\/863"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}