{"id":3617,"date":"2024-08-06T07:13:43","date_gmt":"2024-08-05T22:13:43","guid":{"rendered":"https:\/\/www.kinryo.net\/?p=3617"},"modified":"2024-12-09T11:48:53","modified_gmt":"2024-12-09T02:48:53","slug":"%ef%bc%91%ef%bc%9apacemaker%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.kinryo.net\/?p=3617","title":{"rendered":"\uff11\uff1apacemaker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u7269\u7406\u7684\u306b\u9055\u3046kvm\u306e\u30b5\u30d6\u30db\u30b9\u30c8\u3092\u4f7f\u7528<br \/>\n\u30db\u30b9\u30c8\u540d\uff1asmb6, IP: 192.168.0.66<br \/>\n\u30db\u30b9\u30c8\u540d\uff1asmb7, IP: 192.168.0.67<br \/>\n\u4eee\u60f3IP: 192.168.0.65<br \/>\n\u307e\u305a\u306f <a href=\"https:\/\/www.server-world.info\/query?os=CentOS_Stream_9&amp;p=pacemaker&amp;f=1\">https:\/\/www.server-world.info\/query?os=CentOS_Stream_9&amp;p=pacemaker&amp;f=1<\/a>\u3092\u53c2\u8003\u306b\u9032\u3081\u3066\u3044\u304f\u3002<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">dnf &#8211;enablerepo=highavailability -y install pacemaker pcs<\/span><br \/>\n\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u3063\u305f\u6240\u3067\u3001\u4f55\u3082\u8a2d\u5b9a\u305b\u305a\u5bfe\u6297\u3059\u308b\u30b5\u30d6\u30db\u30b9\u30c8\u306b<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\u3055\u3082\u306a\u3044\u3068<a href=\"https:\/\/www.kinryo.net\/?p=3602\">https:\/\/www.kinryo.net\/?p=3602<\/a>\u306e\u3088\u3046\u306b\u30c8\u30e9\u30d6\u30eb\u3002<br \/>\n\u30db\u30b9\u30c8\u540d\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u304f\u306e\u3067<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">gedit \/etc\/hosts<\/span><br \/>\n\u306e\u6700\u5f8c\u306b<br \/>\n<span style=\"color: #0000ff;\">192.168.0.66\u00a0 smb6 smb6.inpac.jp<\/span><br \/>\n<span style=\"color: #0000ff;\">192.168.0.67\u00a0 smb7 smb7.inpac.jp<\/span><br \/>\n\u3092\u8ffd\u8a18\u3057\u4fdd\u5b58\u3002\u3053\u308c\u3092\u4e21\u30db\u30b9\u30c8\u306b\u8a2d\u5b9a<br \/>\n\u6b21\u306b\u8a2d\u5b9a\u304c\u30c0\u30d6\u3063\u3066\u3044\u308b\u306e\u3067\uff08IP\u3084hostname)\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<span>\/grub2\/grub.cfg<\/span>\u306b\u3042\u308bUUID\u3092\u5168\u90e8\u5909\u66f4\u3057\u3066\u3082\u30aa\u30ea\u30b8\u30ca\u30eb\u306eUUID\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u8a00\u308f\u308c\u30d6\u30fc\u30c8\u51fa\u6765\u306a\u304b\u3063\u305f\uff01\uff01\u305d\u3057\u3066\u518d\u8d77\u52d5\u3057\u3066\u304a\u304f<br \/>\npcsd\u3092\u8d77\u52d5\u3057\u3066\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u8a2d\u5b9a\u3092\u3059\u308b<br \/>\n<span style=\"color: #ff6600;\"># <\/span><span style=\"color: #008000;\">systemctl enable &#8211;now pcsd<\/span><br \/>\n<span style=\"color: #ff6600;\"># <\/span><span style=\"color: #008000;\">passwd hacluster<\/span><br \/>\n\u305d\u3057\u3066\u3001\u8a2d\u5b9a\u3057\u305f\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u30922\u56de\u5165\u529b\u3002\u3053\u308c\u3092\u4e21\u65b9\u306e\u30b5\u30d6\u30db\u30b9\u30c8\u3067\u884c\u3046\u3002<\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30b5\u30d6\u30db\u30b9\u30c8\u306esmb6\u3067\u306e\u4f5c\u696d<br \/>\n<span style=\"color: #ff6600;\"># <\/span><span style=\"color: #008000;\">pcs host auth smb6 smb7<br \/>\nUsername: hacluster<br \/>\nPassword:<br \/>\nsmb7: Authorized<br \/>\nsmb6: Authorized<\/span><br \/>\n\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 \/>\n<span style=\"color: #ff6600;\">#<\/span> <span><span style=\"color: #008000;\">pcs cluster setup mycluster &#8211;force smb6 smb7<\/span><br \/>\n\u7d50\u679c\u306e\u8868\u793a\u306f\u9577\u3044\u306e\u3067\u7701\u7565(\u6700\u5f8c\u306bCluster has been successfully set up.\u304c\u8868\u793a\u3055\u308c\u308b\u7b48)\u3002\u6b21\u306b\u30af\u30e9\u30b9\u30bf\u30fc\u3092\u30b9\u30bf\u30fc\u30c8\u3057<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">pcs cluster start &#8211;all <\/span><br \/>\n<span style=\"color: #ff6600;\">smb6: Starting Cluster&#8230;<\/span><br \/>\n<span style=\"color: #ff6600;\">smb7: Starting Cluster&#8230;<\/span><br \/>\n\u8d77\u52d5\u5f8c\u306b\u30b9\u30bf\u30fc\u30c8\u3055\u305b\u308b<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">pcs cluster enable &#8211;all<\/span><br \/>\n<span style=\"color: #ff6600;\">smb6: Cluster Enabled<\/span><br \/>\n<span style=\"color: #ff6600;\">smb7: Cluster Enabled<\/span><br \/>\n<span style=\"color: #ff6600;\">#<\/span><\/span> <span style=\"color: #008000;\">pcs status<\/span><br \/>\n<span style=\"color: #ff6600;\">Cluster name: mycluster<\/span><\/p>\n<p><span style=\"color: #ff6600;\">WARNINGS:<\/span><br \/>\n<span style=\"color: #ff6600;\">No stonith devices and stonith-enabled is not false<\/span><\/p>\n<p><span style=\"color: #ff6600;\">Status of pacemakerd: \u2018Pacemaker is running\u2019 (last updated 2023-10-23 19:53:50 +09:00)<\/span><br \/>\n<span style=\"color: #ff6600;\">Cluster Summary:<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000* Stack: corosync<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000* Current DC: smb6 (version 2.1.5-9.el9_2.3.alma.1-a3f44794f94) \u2013 partition with quorum<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000* Last updated: Mon Oct 23 19:53:50 2023<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000* Last change: Mon Oct 23 19:38:00 2023 by hacluster via crmd on smb6<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000* 2 nodes configured<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000* 0 resource instances configured<\/span><\/p>\n<p><span style=\"color: #ff6600;\">Node List:<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000* Online: [ smb6 smb7 ]<\/span><\/p>\n<p><span style=\"color: #ff6600;\">Full List of Resources:<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000* No resources<\/span><\/p>\n<p><span style=\"color: #ff6600;\">Daemon Status:<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000corosync: active\/enabled<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000pacemaker: active\/enabled<\/span><br \/>\n<span><span style=\"color: #ff6600;\">\u3000pcsd: active\/enabled<\/span><br \/>\ncorosync \u3082\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304a\u304f\u3002<br \/>\n<\/span><span style=\"color: #ff6600;\"># <\/span><span style=\"color: #008000;\">pcs status corosync<\/span><br \/>\n<span style=\"color: #ff6600;\">Membership information<\/span><br \/>\n<span style=\"color: #ff6600;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000\u3000Nodeid \u3000Votes Name<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000\u30001 \u3000\u3000\u3000\u30001 smb6 (local)<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000\u30002 \u3000\u3000\u3000\u30001 smb7<br \/>\n<span style=\"color: #000000;\">2\u30ce\u30fc\u30c9\u69cb\u6210\u306e\u305f\u3081quorum\u3092\u7121\u52b9\u5316<\/span><br \/>\n<\/span><span style=\"color: #ff6600;\"># <span style=\"color: #008000;\">pcs property set no-quorum-policy=ignore<br \/>\n<\/span><\/span><span style=\"color: #ff6600;\"><span style=\"color: #000000;\">No stonith devices\u3068\u30ef\u30fc\u30cb\u30f3\u30b0\u304c\u51fa\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u5bfe\u51e6\u3002stonith\u3092\u7121\u52b9\u5316(stonith\u3068\u306fShoot The Other Node In The Head\u306e\u7565\u79f0\u3067\u3001\u76e3\u8996\u5bfe\u8c61\u30ce\u30fc\u30c9\u306b\u7570\u5e38\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u5f37\u5236\u7684\u306b\u505c\u6b62\/\u518d\u8d77\u52d5\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002\u305f\u3060\u3057\u5c02\u7528\u306e\u30cf\u30fc\u30c9\u304c\u3044\u308b\uff09<\/span><br \/>\n# <span style=\"color: #008000;\">pcs property set stonith-enabled=false<\/span><\/span><\/p>\n<p><span style=\"color: #ff6600;\"><span style=\"color: #008000;\"><span style=\"color: #333333;\">\u6b21\u306b\u4eee\u60f3IP: 192.168.0.65\u306e\u30c1\u30a7\u30c3\u30af<br \/>\n<span style=\"color: #ff6600;\"># <\/span><\/span><\/span><\/span><span style=\"color: #008000;\">pcs resource create VIPcheck ocf:heartbeat:IPaddr2 ip=192.168.0.65 cidr_netmask=24 op monitor interval=10s<\/span><br \/>\n\u51fa\u6765\u305f\u304b\u30c1\u30a7\u30c3\u30af<br \/>\n<span style=\"color: #ff6600;\">#<\/span> <span style=\"color: #008000;\">pcs status<\/span><br \/>\n\u524d\u7565<br \/>\n<span style=\"color: #ff6600;\">Full List of Resources:<\/span><br \/>\n<span style=\"color: #ff6600;\">\u3000* VIPcheck (ocf:heartbeat:IPaddr2): Started smb6<\/span><br \/>\n\u5f8c\u7565<\/p>\n<p><span style=\"color: #ff6600;\"><span style=\"color: #008000;\"><span style=\"color: #333333;\"><a href=\"https:\/\/www.kinryo.net\/?p=4016\">\u305d\u3057\u3066DRBD\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3078<\/a><\/span><br \/>\n<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7269\u7406\u7684\u306b\u9055\u3046kvm\u306e\u30b5\u30d6\u30db\u30b9\u30c8\u3092\u4f7f\u7528 \u30db\u30b9\u30c8\u540d\uff1asmb6, IP: 192.168.0.66 \u30db\u30b9\u30c8\u540d\uff1asmb7, IP: 192.168.0.67 \u4eee\u60f3IP: 192.168.0.65 \u307e\u305a\u306f https:\/\/www. &hellip; <a href=\"https:\/\/www.kinryo.net\/?p=3617\">\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-3617","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\/3617","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=3617"}],"version-history":[{"count":15,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/3617\/revisions"}],"predecessor-version":[{"id":4169,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=\/wp\/v2\/posts\/3617\/revisions\/4169"}],"wp:attachment":[{"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kinryo.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}