{"id":1170,"date":"2020-09-10T07:13:21","date_gmt":"2020-09-09T23:13:21","guid":{"rendered":"http:\/\/www.gbase8.cn\/?p=1170"},"modified":"2021-05-06T13:03:28","modified_gmt":"2021-05-06T05:03:28","slug":"gbase-8a-%e9%9b%86%e7%be%a4%e6%9c%8d%e5%8a%a1corosync%e3%80%81gcware%e7%94%b1%e4%ba%8e%e5%85%b6%e5%ae%83ip%e5%b9%b2%e6%89%b0%e5%af%bc%e8%87%b4%e5%bc%82%e5%b8%b8","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/1170","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a \u96c6\u7fa4\u670d\u52a1corosync\u3001gcware\u7531\u4e8e\u5176\u5b83IP\u5e72\u6270\u5bfc\u81f4\u5f02\u5e38"},"content":{"rendered":"<p>GBase 8a \u6570\u636e\u5e93\u96c6\u7fa4\uff0c\u901a\u8fc7corosync\/gcware\u670d\u52a1\u7ef4\u6301\u96c6\u7fa4\u4e00\u81f4\u6027\u670d\u52a1\u3002\u5f53\u6709\u5176\u5b83\u975e\u96c6\u7fa4IP,\u5411\u96c6\u7fa4\u53d1\u9001\u4e86\u6570\u636e\u5305\uff0c\u901a\u8fc7tcpdump\u80fd\u622a\u83b7\uff0c\u4f1a\u5e72\u6270\u96c6\u7fa4\u6570\u636e\u901a\u8baf\u7684\u6b63\u5e38\u8fd0\u884c\u3002\u4e00\u822c\u51fa\u73b0\u5728\u8001\u73af\u5883\u9500\u6bc1\u540e\uff0c\u6ca1\u6709\u6e05\u6389\u670d\u52a1\u5bfc\u81f4\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2b29fd7d8ee\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2b29fd7d8ee\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/1170\/#%E5%9C%BA%E6%99%AF\" >\u573a\u666f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/1170\/#%E6%8E%92%E6%9F%A5\" >Troubleshoot<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/1170\/#%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\" >Solution<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.gbase8.cn\/en\/1170\/#%E6%80%BB%E7%BB%93\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%9C%BA%E6%99%AF\"><\/span>\u573a\u666f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u67d0\u73b0\u573a\u73af\u5883\u5df2\u7ecf\u6b63\u5e38\u4f7f\u7528\u8d85\u8fc73\u4e2a\u6708\uff0c\u67d0\u5929\u7a81\u7136\u53d1\u751f\u96c6\u7fa4gcadmin\u5361\u4f4f\u548c\u62a5\u9519\u73b0\u8c61\uff0c\u65e0\u6cd5\u6b63\u5e38\u4f7f\u7528\u3002<\/p>\n\n\n\n<p>\u96c6\u7fa4IP\u662f 107\uff0c108\uff0c151\uff0c152\u51714\u4e2aIP\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase2 ~]# gcadmin\n\n  CLUSTER STATE:  LOCKED\n  CLUSTER MODE:   NORMAL\n\n +==========================================================================================================================+\n |                                                   GCLUSTER INFORMATION                                                   |\n +==========================================================================================================================+\n +-------+----------+-----------------+--------+--------+---------+---------+----------+------------+-----------+-----------+\n | rowid | nodename |    IpAddress    | sgname | dpname | gcware  |  gnode  | gcluster | syncserver | datastate | nodestate |\n +-------+----------+-----------------+--------+--------+---------+---------+----------+------------+-----------+-----------+\n |   1   |   sg1_1  | 192.168.129.107 |  sg01  |   n1   | Offline |         |          |            |  &#91;1]      |  &#91;0]      |\n +-------+----------+-----------------+--------+--------+---------+---------+----------+------------+-----------+-----------+\n |   2   |   sg1_2  | 192.168.129.108 |  sg01  |   n2   | Online  |  OPEN   |   OPEN   |    OPEN    |  &#91;0]      |  &#91;0]      |\n +-------+----------+-----------------+--------+--------+---------+---------+----------+------------+-----------+-----------+\n |   3   |   sg2_1  | 192.168.129.151 |  sg02  |   n3   | Offline |         |          |            |  &#91;0]      |  &#91;0]      |\n +-------+----------+-----------------+--------+--------+---------+---------+----------+------------+-----------+-----------+\n |   4   |   sg2_2  | 192.168.129.152 |  sg02  |   n4   | Offline |         |          |            |  &#91;0]      |  &#91;0]      |\n +-------+----------+-----------------+--------+--------+---------+---------+----------+------------+-----------+-----------+\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%8E%92%E6%9F%A5\"><\/span>Troubleshoot<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u7531\u4e8e\u96c6\u7fa4\u672c\u8eab\u6b63\u5e38\u8fd0\u884c\uff0c\u786c\u4ef6\u4e5f\u672a\u53d1\u73b0\u95ee\u9898\uff0c\u7f51\u5361\u90fd\u6b63\u5e38\uff0c\u4e8e\u662f\u68c0\u67e5\u4e86\u6570\u636e\u5305\u60c5\u51b5\u3002<\/p>\n\n\n\n<p>tcpdump -n -i bond0 port 5493<br>\u5176\u4e2dbond0\u662f\u96c6\u7fa4IP\u6240\u5728\u7684\u7f51\u5361\u540d\u5b57\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@gbase2 ~]# tcpdump -n  -i bond0 port 5493\ntcpdump: verbose output suppressed, use -v or -vv for full protocol decode\nlistening on bond0, link-type EN10MB (Ethernet), capture size 65535 bytes\n16:54:59.657760 IP 192.168.129.108.19822 > 192.168.129.151.5493: UDP, length 244\n16:54:59.657777 IP 192.168.129.108.28083 > 192.168.129.152.5493: UDP, length 244\n16:54:59.675538 IP 192.168.129.151.17949 > 192.168.129.108.5493: UDP, length 244\n16:55:00.001626 IP 192.168.129.113.37835 > 192.168.129.108.5493: UDP, length 112\n16:55:00.206573 IP 192.168.129.151.17949 > 192.168.129.108.5493: UDP, length 244\n16:55:00.253182 IP 192.168.129.108.19822 > 192.168.129.151.5493: UDP, length 244\n16:55:00.253201 IP 192.168.129.108.28083 > 192.168.129.152.5493: UDP, length 244\n16:55:00.600413 IP 192.168.129.113.37835 > 192.168.129.108.5493: UDP, length 112\n16:55:00.775431 IP 192.168.129.108.19822 > 192.168.129.151.5493: UDP, length 244\n16:55:00.775446 IP 192.168.129.108.28083 > 192.168.129.152.5493: UDP, length 244\n16:55:00.798784 IP 192.168.129.151.17949 > 192.168.129.108.5493: UDP, length 244\n\n^C\n28 packets captured\n209 packets received by filter\n123 packets dropped by kernel<\/code><\/pre>\n\n\n\n<p>\u4ece\u6570\u636e\u4e2d\uff0c\u53d1\u73b0\u4ece113\u8282\u70b9\u53d1\u6765\u7684UDP\u5305\uff0c\u4f46\u8fd9\u4e2aIP\u4e0d\u662f\u96c6\u7fa4\u7684IP\u3002<\/p>\n\n\n\n<p>\u767b\u9646113\u8282\u70b9\uff0c\u53d1\u73b0\u786e\u5b9e\u8fd0\u884c\u4e86corosync\u670d\u52a1\uff0c\u5176\u914d\u7f6e\u6587\u4ef6\u91cc\u662f107\u548c108\u7684IP\u3002<\/p>\n\n\n\n<p>\u6700\u7ec8\u786e\u8ba4\uff0c\u8be5\u670d\u52a1\u5668\u4e3a\u5229\u65e7\u670d\u52a1\u5668\uff0c\u6628\u5929\u624d\u5f00\u673a\u51c6\u5907\u4f7f\u7528\u3002\u4ee5\u524d\u5b89\u88c5\u8fc7\u6570\u636e\u5e93\u96c6\u7fa4\uff0c\u540e\u6765\u6709\u65b0\u7684\u786c\u4ef6\u4e86\uff0c\u5c31\u5168\u65b0\u5b89\u88c5\u4e86\u4e00\u5957\uff0c\u8001\u673a\u5668\u5c31\u505c\u673a\u4e86\u3002\u4f46\u6ca1\u6709\u5378\u8f7d\u4e0a\u9762\u7684\u670d\u52a1\u3002 3\u4e2a\u6708\u540e\uff0c\u673a\u5668\u542f\u52a8\u540e\uff0c\u5176\u4e0a\u9762\u7684corosync\u670d\u52a1\u5411107\uff0c108\u8282\u70b9\u53d1\u9001\u4e86\u6570\u636e\u5305\uff0c\u800c\u73b0\u6709\u96c6\u7fa4\u5e76\u6ca1\u6709\u53d1\u73b0113\u8282\u70b9\u662f\u96c6\u7fa4\u7684IP, \u4e00\u76f4\u5728\u5904\u7406\u8fd9\u4e2a\u95ee\u9898\u7684\u5f02\u5e38\uff0c\u5bfc\u81f4\u96c6\u7fa4LOCK\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\"><\/span> Solution<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p> \u505c\u6389113\u4e0a\u7684corosync\u670d\u52a1\uff0c\u5e76\u5c06\u76f8\u5173\u914d\u7f6e\u6587\u4ef6\u5220\u9664\u3002\u91cd\u542f\u73b0\u6709\u96c6\u7fa4\u7684\u670d\u52a1\u540e\uff0c\u89e3\u51b3\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%80%BB%E7%BB%93\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p> \u96c6\u7fa4\u8282\u70b9\u4e0b\u7ebf\u65f6\uff0c\u8981\u6e05\u7406\u6389\u6570\u636e\u5e93\u670d\u52a1\uff0c\u907f\u514d\u67d0\u4e00\u5929\u4e0a\u7ebf\u65f6\uff0c\u5bf9\u65b0\u96c6\u7fa4\u4ea7\u751f\u5e72\u6270\u3002<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a \u6570\u636e\u5e93\u96c6\u7fa4\uff0c\u901a\u8fc7corosync\/gcware\u670d\u52a1\u7ef4\u6301\u96c6\u7fa4\u4e00\u81f4\u6027\u670d\u52a1\u3002\u5f53\u6709\u5176\u5b83\u975e\u96c6\u7fa4IP,\u5411\u96c6\u7fa4\u53d1\u9001\u4e86\u6570\u636e\u5305\uff0c\u901a\u8fc7tcpdump\u80fd\u622a\u83b7\uff0c\u4f1a\u5e72\u6270\u96c6\u7fa4\u6570\u636e\u901a\u8baf\u7684\u6b63\u5e38\u8fd0\u884c\u3002\u4e00\u822c\u51fa\u73b0\u5728\u8001\u73af\u5883\u9500\u6bc1\u540e\uff0c\u6ca1\u6709\u6e05\u6389\u670d\u52a1\u5bfc\u81f4\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[99],"class_list":["post-1170","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-gcware"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=1170"}],"version-history":[{"count":1,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1170\/revisions"}],"predecessor-version":[{"id":1171,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/1170\/revisions\/1171"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=1170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=1170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=1170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}