{"id":3602,"date":"2024-08-13T12:38:38","date_gmt":"2024-08-13T03:38:38","guid":{"rendered":"https:\/\/www.kinryo.net\/?p=3602"},"modified":"2024-12-09T10:42:52","modified_gmt":"2024-12-09T01:42:52","slug":"pcs-cluster-start-all-%e3%81%a7%e7%89%87%e6%96%b9%e3%81%ae%e3%83%9b%e3%82%b9%e3%83%88%e3%81%97%e3%81%8b%e8%b5%b7%e5%8b%95%e3%81%97%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=3602","title":{"rendered":"pcs cluster start &#8211;all \u3067\u7247\u65b9\u306e\u30db\u30b9\u30c8\u3057\u304b\u8d77\u52d5\u3057\u306a\u3044"},"content":{"rendered":"\r\n<p>drbd\u3092\u4f7f\u3063\u3066samba\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u53ef\u7528\u6027\u3092\u9ad8\u3081\u69d8\u3068\u3057\u305f\u6642\u30af\u30e9\u30b9\u30bf\u30fc\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u3066\u3044\u308b\u30db\u30b9\u30c8\u3092\u30b3\u30d4\u30fc\u3057\u8a2d\u5b9a\u3092\u9032\u3081\u308b\u3068\u3069\u3046\u3057\u3066\u3082<br \/><span style=\"color: #ff6600;\"># <\/span><span style=\"color: #008000;\">pcs cluster start &#8211;all<\/span><br \/><span style=\"color: #ff6600;\">smb4: Starting Cluster&#8230;<\/span><br \/><span><span style=\"color: #ff6600;\">smb3: Unable to connect to smb3, check if pcsd is running &#8230;&#8230;..<\/span><br \/><\/span>\u3067\u3082 pcsd \u306f\u8d77\u52d5\u3057\u3066\u3044\u308b\u3002<span style=\"color: #ff0000;\">\u3053\u306e\u539f\u56e0\u306f\u7d50\u5c40\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u3002<span style=\"color: #333333;\">\u306a\u306e\u3067\u518d\u5ea6\u30b5\u30d6\u30db\u30b9\u30c8\u306e\u30b3\u30d4\u30fc\u304b\u3089\u3084\u308a\u76f4\u3057\u3002<br \/><span style=\"color: #ff00ff;\">\u8ffd\u8a18\uff1a\u5f8c\u65e5\u30ed\u30b0\u3092\u898b\u3066\u3044\u305f\u3089\/var\/log\/pacemaker\/pacemaker.log\u306b<\/span><br \/><span style=\"color: #ff00ff;\">pacemaker-schedulerd[5382] (pcmk__log_transition_summary) notice: Configuration errors found during scheduler processing, please run &#8220;crm_verify -L&#8221; to identify issues<\/span><br \/><\/span><\/span>\u304c\u3042\u3063\u305f\u3002\u3053\u308c\u304c\u539f\u56e0\u3060\u3068\u601d\u308f\u308c\u308b\u304c\uff1f\u3055\u3089\u306b\/var\/log\/message\u306b<span style=\"color: #ff0000;\"><span style=\"color: #333333;\"><br \/><\/span><\/span><span style=\"color: #ff00ff;\">pacemaker-controld[5383]: notice: State transition S_IDLE -&gt; S_POLICY_ENGINE<\/span><br \/><span style=\"color: #ff00ff;\">pacemaker-schedulerd[5382]: error: Resource start-up disabled since no STONITH resources have been defined<\/span><br \/><span style=\"color: #ff00ff;\">pacemaker-schedulerd[5382]: error: Either configure some or disable STONITH with the stonith-enabled option<\/span><br \/><span style=\"color: #ff00ff;\">pacemaker-schedulerd[5382]: error: NOTE: Clusters with shared data need STONITH to ensure data integrity<\/span><br \/><span style=\"color: #ff00ff;\">pacemaker-schedulerd[5382]: notice: No fencing will be done until there are resources to manage<\/span><br \/><span style=\"color: #ff00ff;\">pacemaker-schedulerd[5382]: notice: Calculated transition 1, saving inputs in \/var\/lib\/pacemaker\/pengine\/pe-input-97.bz2<\/span><br \/><span style=\"color: #ff00ff;\">pacemaker-schedulerd[5382]: notice: Configuration errors found during scheduler processing, please run &#8220;crm_verify -L&#8221; to identify issues<\/span><br \/><span style=\"color: #ff00ff;\">pacemaker-controld[5383]: notice: Transition 1 (Complete=0, Pending=0, Fired=0, Skipped=0, Incomplete=0, Source=\/var\/lib\/pacemaker\/pengine\/pe-input-97.bz2): Complete<\/span><br \/><span style=\"color: #ff00ff;\">pacemaker-controld[5383]: notice: State transition S_TRANSITION_ENGINE -&gt; S_IDLE<\/span><br \/><span style=\"color: #ff00ff;\">pacemakerd[5377]: notice: Caught &#8216;Terminated&#8217; signal<br \/>\u304c\u3042\u3063\u305f\u3002\u6065\u305a\u304b\u3057\u306a\u304c\u3089pacemaker.log\u304c\u3042\u308b\u306e\u306b\u6c17\u304c\u3064\u304b\u306a\u3063\u304b\u3063\u305f\u3002<br \/><\/span><\/p>\r\n<p>\u4f46\u3057\u3001\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30db\u30b9\u30c8\u306epcs\u306e\u8a2d\u5b9a\u3092\u524a\u9664\u3057\u3066\u304a\u304f\u3002<br \/><span style=\"color: #ff6600;\"># <\/span><span style=\"color: #008000;\">pcs cluster &#8211;force stop<\/span><br \/><span style=\"color: #ff6600;\"># <\/span><span style=\"color: #008000;\">pcs cluster destroy<br \/><span style=\"color: #333333;\">\u8a70\u307e\u308a\u305b\u3063\u304b\u304f\u8a2d\u5b9a\u3057\u305f\u5206\u3092\u5168\u6d88\u53bb\u3057\u3066\u304a\u304f\u3002\u307e\u305fpcsd\u3068DRBD\u8d77\u52d5\u95a2\u4fc2\u3092\u6b62\u3081\u3066\u304a\u304f<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">systemctl stop pcsd<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">systemctl disable pcsd<\/span><br \/><span><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">systemctl stop pcsd<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">systemctl disable pcsd<\/span><br \/>\u305f\u3060\u3057\u3001\/etc\/host\u306e\u8a2d\u5b9a\u3084\u306f\u6b8b\u3063\u3066\u3044\u308b\u3001\u307e\u305fpcs\u3068pacemaker\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3088\u3002<br \/><\/span><br \/><\/span><\/span><span style=\"color: #008000;\"><span style=\"color: #333333;\"><\/span><\/span>\u305d\u3057\u3066\u3084\u3063\u3068\u3001<a href=\"https:\/\/www.kinryo.net\/?p=1257\" target=\"_blank\" rel=\"noreferrer noopener\">\u3053\u3053\u3092\u53c2\u8003<\/a>\u306b\u3057\u3066\u30b5\u30d6\u30db\u30b9\u30c8\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3002<br \/>\u305d\u306e\u969b\u3001vda1\u306eUUID, \u56fa\u5b9a\u306eIP\u30a2\u30c9\u30ec\u30b9\u3001hostname\u304c\u30c0\u30d6\u3063\u3066\u3044\u308b\u306e\u3067\u3001<a href=\"https:\/\/www.kinryo.net\/?p=2529\" target=\"_blank\" rel=\"noopener\">https:\/\/www.kinryo.net\/?p=2529<\/a>\u3092\u53c2\u8003\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305f\u3060\u3057UUID\u306e\u5909\u66f4\u306f\u51fa\u6765\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u5909\u66f4\u3057\u3066\u3044\u306a\u3044\u3002\u6b21\u306b\u5ff5\u306e\u70ba\u30b3\u30d4\u30fc\u3057\u305f\u30b5\u30d6\u30db\u30b9\u30c8\u5074\u3067\u3082\uff08\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30db\u30b9\u30c8\u3067\u6d88\u53bb\u3057\u3066\u3044\u308b\u306e\u3067\u3084\u3089\u306a\u304f\u3066\u3082\u3044\u3044\u3068\u601d\u3046\u304c\uff09\u3002\u305f\u3060\u3057\u3053\u306e\u65b9\u6cd5\u306f\/etc\/fstab\u306e\u8a2d\u5b9a\u304c\u4e21\u30db\u30b9\u30c8\u3067\u540c\u3058\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002\u9055\u3046\u6642\u306fvda\u306b\u306a\u308b\u7269\u610f\u5916\u5916\u3057\u3066\u7f6e\u304f\u4e8b\u3002<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">pcs cluster &#8211;force stop<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">pcs cluster destroy<\/span><br \/>\u3067\u30af\u30e9\u30b9\u30bf\u30fc\u3092\u524a\u9664\u3057\u3066\u304a\u304f\u3002<br \/>pcsd\u3092\u8d77\u52d5\u3057\u3066\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u8a2d\u5b9a\u3092\u3059\u308b<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">systemctl enable &#8211;now pcsd<\/span><br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">passwd hacluster<\/span><br \/>\u3053\u308c\u3092\u4e21\u65b9\u306e\u30b5\u30d6\u30db\u30b9\u30c8\u3067\u884c\u3046\u3002<\/p>\r\n<p>\u3053\u3053\u304b\u3089\u306f\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30b5\u30d6\u30db\u30b9\u30c8\u306esmb3\u3067\u306e\u4f5c\u696d<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">pcs host auth smb3 smb4<\/span><br \/>\u30e6\u30fc\u30b6\u30fc\u3092\u805e\u304b\u308c\u308b\u306e\u3067 hacluster \u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u8a2d\u5b9a\u3057\u305f\u7269\u3002<br \/><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">pcs cluster setup mycluster smb3 smb4<\/span><br \/><span style=\"color: #ff6600;\">No addresses specified for host &#8216;smb3&#8217;, using &#8216;smb3&#8217;<\/span><br \/><span style=\"color: #ff6600;\">No addresses specified for host &#8216;smb4&#8217;, using &#8216;smb4&#8217;<\/span><br \/><span style=\"color: #ff6600;\">Destroying cluster on hosts: &#8216;smb3&#8217;, &#8216;smb4&#8217;&#8230;<\/span><br \/><span style=\"color: #ff6600;\">smb3: Successfully destroyed cluster<\/span><br \/><span style=\"color: #ff6600;\">smb4: Successfully destroyed cluster<\/span><br \/><span style=\"color: #ff6600;\">Requesting remove &#8216;pcsd settings&#8217; from &#8216;smb3&#8217;, &#8216;smb4&#8217;<\/span><br \/><span style=\"color: #ff6600;\">smb3: successful removal of the file &#8216;pcsd settings&#8217;<\/span><br \/><span style=\"color: #ff6600;\">smb4: successful removal of the file &#8216;pcsd settings&#8217;<\/span><br \/><span style=\"color: #ff6600;\">Sending &#8216;corosync authkey&#8217;, &#8216;pacemaker authkey&#8217; to &#8216;smb3&#8217;, &#8216;smb4&#8217;<\/span><br \/><span style=\"color: #ff6600;\">smb3: successful distribution of the file &#8216;corosync authkey&#8217;<\/span><br \/><span style=\"color: #ff6600;\">smb3: successful distribution of the file &#8216;pacemaker authkey&#8217;<\/span><br \/><span style=\"color: #ff6600;\">smb4: successful distribution of the file &#8216;corosync authkey&#8217;<\/span><br \/><span style=\"color: #ff6600;\">smb4: successful distribution of the file &#8216;pacemaker authkey&#8217;<\/span><br \/><span style=\"color: #ff6600;\">Sending &#8216;corosync.conf&#8217; to &#8216;smb3&#8217;, &#8216;smb4&#8217;<\/span><br \/><span style=\"color: #ff6600;\">smb3: successful distribution of the file &#8216;corosync.conf&#8217;<\/span><br \/><span style=\"color: #ff6600;\">smb4: successful distribution of the file &#8216;corosync.conf&#8217;<\/span><br \/><span style=\"color: #ff6600;\">Cluster has been successfully set up.<br \/># <span style=\"color: #008000;\">pcs cluster start &#8211;all<\/span><br \/>smb3: Starting Cluster&#8230;<br \/>smb4: Starting Cluster&#8230;<br \/><span style=\"color: #333333;\">\u304a\u30fc\uff01\uff01\u3001\u4e21\u65b9\u306e\u30db\u30b9\u30c8\u3067\u30af\u30e9\u30b9\u30bf\u30fc\u304c\u30b9\u30bf\u30fc\u30c8\u3057\u305f\u3002<\/span><br \/><\/span><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">pcs cluster enable &#8211;all<\/span><br \/>smb3: Cluster Enabled<br \/>smb4: Cluster Enabled<br \/><\/span><span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">pcs status<\/span><br \/><span style=\"color: #ff6600;\">Cluster name: mycluster<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">WARNINGS:<\/span><br \/><span style=\"color: #ff6600;\">No stonith devices and stonith-enabled is not false<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">Status of pacemakerd: &#8216;Pacemaker is running&#8217; (last updated 2023-10-23 19:53:50 +09:00)<\/span><br \/><span style=\"color: #ff6600;\">Cluster Summary:<\/span><br \/><span style=\"color: #ff6600;\">\u3000* Stack: corosync<\/span><br \/><span style=\"color: #ff6600;\">\u3000* Current DC: smb4 (version 2.1.5-9.el9_2.3.alma.1-a3f44794f94) &#8211; partition with quorum<\/span><br \/><span style=\"color: #ff6600;\">\u3000* Last updated: Mon Oct 23 19:53:50 2023<\/span><br \/><span style=\"color: #ff6600;\">\u3000* Last change: Mon Oct 23 19:38:00 2023 by hacluster via crmd on smb4<\/span><br \/><span style=\"color: #ff6600;\">\u3000* 2 nodes configured<\/span><br \/><span style=\"color: #ff6600;\">\u3000* 0 resource instances configured<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">Node List:<\/span><br \/><span style=\"color: #ff6600;\">\u3000* Online: [ smb3 smb4 ]<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">Full List of Resources:<\/span><br \/><span style=\"color: #ff6600;\">\u3000* No resources<\/span><\/p>\r\n<p><span style=\"color: #ff6600;\">Daemon Status:<\/span><br \/><span style=\"color: #ff6600;\">\u3000corosync: active\/enabled<\/span><br \/><span style=\"color: #ff6600;\">\u3000pacemaker: active\/enabled<\/span><br \/><span style=\"color: #ff6600;\">\u3000pcsd: active\/enabled<br \/><span style=\"color: #333333;\">WARNING\u304c\u51fa\u3066\u3044\u308b\u306e\u3067\u3001<\/span><a href=\"https:\/\/www.kinryo.net\/?p=3610\">https:\/\/www.kinryo.net\/?p=3610<\/a><span style=\"color: #333333;\">\u3092\u53c2\u8003\u306b\u3057\u3066\u89e3\u9664<\/span><br \/><\/span><span style=\"color: #ff6600;\"><\/span><span style=\"color: #ff0000;\"><\/span><\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>drbd\u3092\u4f7f\u3063\u3066samba\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u53ef\u7528\u6027\u3092\u9ad8\u3081\u69d8\u3068\u3057\u305f\u6642\u30af\u30e9\u30b9\u30bf\u30fc\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u3066\u3044\u308b\u30db\u30b9\u30c8\u3092\u30b3\u30d4\u30fc\u3057\u8a2d\u5b9a\u3092\u9032\u3081\u308b\u3068\u3069\u3046\u3057\u3066\u3082# pcs cluster start &#8211;allsmb4: Start &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=3602\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"vkexunit_cta_each_option":"","footnotes":""},"categories":[29],"tags":[],"class_list":["post-3602","post","type-post","status-publish","format-standard","hentry","category-drbdalmalinux9"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/3602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3602"}],"version-history":[{"count":19,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/3602\/revisions"}],"predecessor-version":[{"id":4168,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/3602\/revisions\/4168"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}