{"id":46,"date":"2020-06-09T09:03:02","date_gmt":"2020-06-09T01:03:02","guid":{"rendered":"http:\/\/www.gbase8.cn\/?p=46"},"modified":"2022-08-22T09:54:04","modified_gmt":"2022-08-22T01:54:04","slug":"gbase8a-mpp-cluster%e5%bc%ba%e5%88%b6%e8%8a%82%e7%82%b9%e7%a6%bb%e7%ba%bf%e5%92%8c%e8%8a%82%e7%82%b9%e6%9b%bf%e6%8d%a2setnodestate","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/46","title":{"rendered":"Nanda General GBase 8a Forced Node Offline and Node Replacement"},"content":{"rendered":"<p>GBase 8a \u6570\u636e\u5e93\u96c6\u7fa4\u662f\u901a\u8fc7\u4e3b\u526f\u672c\u673a\u5236\u5b9e\u73b0\u7684\u9ad8\u53ef\u7528\u3002\u5f53 \u4e00\u4e2a\u8282\u70b9\u5b8c\u5168\u635f\u574f\u662f\uff0c\u9700\u8981\u5728\u4e00\u53f0\u65b0\u670d\u52a1\u5668\u4e0a\u505a\u8282\u70b9\u66ff\u6362\u3002\u672c\u6587\u4ecb\u7ecdGBase 8a \u5f3a\u5236\u8282\u70b9\u79bb\u7ebf\u548c\u8282\u70b9\u66ff\u6362replace\u3002<\/p>\n\n\n\n<p>\u66ff\u6362\u524d\u7684\u4e00\u4e9b\u68c0\u67e5\u4e8b\u9879\uff0c\u8bf7\u53c2\u8003 <a href=\"https:\/\/www.gbase8.cn\/en\/73\/\">GBase8a V862\u7248\u672c\u8282\u70b9\u66ff\u6362\u524d\u7684\u51c6\u5907\u5de5\u4f5c\u548c\u6ce8\u610f\u4e8b\u9879<\/a><\/p>\n\n\n\n<p>\u5176\u4e2d\u5728\u786e\u8ba4\u8282\u70b9\u5f7b\u5e95\u6545\u969c\u65f6\u8981\u8bbe\u7f6e\u8282\u70b9\u4e0d\u53ef\u7528\u72b6\u6001\uff0c\u7136\u540e\u901a\u8fc7\u66ff\u6362\u547d\u4ee4\u5b89\u88c5\u7a0b\u5e8f\uff0c\u6062\u590d\u8868\u7ed3\u6784\u548c\u6062\u590d\u6570\u636e\u7b49\u3002<\/p>\n\n\n\n<p>\u5982\u4e3a85\u7248\u672c\uff0c\u8bf7\u76f4\u63a5\u901a\u8fc7\u4e3b\u5907\u8282\u70b9\u590d\u5236\u76ee\u5f55\u6765\u6062\u590d\u3002<\/p>\n\n\n\n<p>\u8b66\u544a!!!\uff1a\u8282\u70b9\u4e00\u65e6\u624b\u5de5\u8bbe\u7f6e\u79bb\u7ebf\uff0c\u5c06\u4e0d\u518d\u8bb0\u5f55\u4e0e\u8be5\u8282\u70b9\u6709\u5173\u7684\u96c6\u7fa4\u4e8b\u4ef6(\u8868\u7ed3\u6784\uff0c\u6570\u636e\u7b49\u4e0d\u4e00\u81f4)\uff0c\u4e5f\u5c31\u4e0d\u80fd\u901a\u8fc7\u96c6\u7fa4\u5185\u90e8\u540c\u6b65\u673a\u5236\u8fdb\u884c\u6062\u590d\uff0c\u5fc5\u987b\u624b\u5de5\u8fdb\u884c\u8282\u70b9\u66ff\u6362\u3002<\/p>\n\n\n\n<p>V95\u7248\u672c\u7684\u8282\u70b9\u66ff\u6362\uff0c\u8bf7\u53c2\u8003 <a href=\"https:\/\/www.gbase8.cn\/en\/2118\/\">GBase 8a V95\u7248\u672c\u8282\u70b9\u66ff\u6362\u64cd\u4f5c\u624b\u987a<\/a><\/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-6a2a9d4b96ea8\" 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-6a2a9d4b96ea8\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/46\/#%E7%94%A8%E9%80%94\" >\u7528\u9014<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/46\/#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95\" >\u4f7f\u7528\u65b9\u6cd5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/46\/#85%E7%89%88%E6%9C%AC%E9%9B%86%E7%BE%A4%E7%A6%BB%E7%BA%BF\" >85\u7248\u672c\u96c6\u7fa4\u79bb\u7ebf<\/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\/46\/#86%E7%89%88%E6%9C%AC%E9%9B%86%E7%BE%A4%E7%A6%BB%E7%BA%BF\" >86\u7248\u672c\u96c6\u7fa4\u79bb\u7ebf<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.gbase8.cn\/en\/46\/#85%E6%81%A2%E5%A4%8D\" >85\u6062\u590d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.gbase8.cn\/en\/46\/#86%E8%8A%82%E7%82%B9%E6%9B%BF%E6%8D%A2\" >86\u8282\u70b9\u66ff\u6362<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.gbase8.cn\/en\/46\/#%E4%BD%BF%E7%94%A8%E6%A0%B7%E4%BE%8B\" >\u4f7f\u7528\u6837\u4f8b<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%94%A8%E9%80%94\"><\/span>\u7528\u9014<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u67d0\u4e2a\u8282\u70b9\u5224\u65ad\u6545\u969c\u4e14\u4e0d\u53ef\u6062\u590d(\u591a\u4e3a\u786c\u4ef6\u4e0d\u53ef\u6062\u590d\u6545\u969c)\uff0c\u5df2\u7ecf\u5f71\u54cd\u4e86\u96c6\u7fa4\u8fd0\u884c\uff0c\u9700\u8981\u4eba\u5de5\u5f3a\u5236\u4ece\u96c6\u7fa4\u79bb\u7ebf\u3002<\/p>\n\n\n\n<p>\u5f53\u540e\u7eed\u5bf9\u786c\u4ef6\u4fee\u590d\u540e\uff0c\u8fdb\u884c\u8282\u70b9\u66ff\u6362\u5de5\u4f5c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95\"><\/span>\u4f7f\u7528\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"85%E7%89%88%E6%9C%AC%E9%9B%86%E7%BE%A4%E7%A6%BB%E7%BA%BF\"><\/span> 85\u7248\u672c\u96c6\u7fa4\u79bb\u7ebf<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>gcadmin setnodestate 192.168.174.62 failure<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"86%E7%89%88%E6%9C%AC%E9%9B%86%E7%BE%A4%E7%A6%BB%E7%BA%BF\"><\/span>86\u7248\u672c\u96c6\u7fa4\u79bb\u7ebf<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code> gcadmin setnodestate 192.168.174.62 &#91;failure| unavailable |normal]<\/code><\/pre>\n\n\n\n<p>\u5176\u4e2d\u53c2\u6570\u67093\u4e2a\u503c<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>normal\u662f\u6b63\u5e38\uff0c<\/li><li>failure\uff0c\u6545\u969c\uff0c\u8bb0\u5f55\u540e\u7eedevent\u3002\u5982\u679c\u670d\u52a1\u5668\u80fd\u6062\u590d\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u56denormal\uff0c\u96c6\u7fa4\u4f1a\u81ea\u52a8\u540c\u6b65\uff1b\u5982\u786e\u8ba4\u8282\u70b9\u6570\u636e\u4e22\u5931\uff0c\u53ef\u4ee5\u518d\u8bbe\u7f6e\u4e3a\u4e0d\u53ef\u7528\u72b6\u6001\u3002<\/li><li>unavaliable, \u4e0d\u53ef\u7528\u72b6\u6001\uff0c\u8282\u70b9\u5df2\u7ecf\u660e\u786e\u5224\u65ad\u4e0d\u53ef\u6062\u590d\uff0c\u6570\u636e\u80af\u5b9a\u4e22\u5931\uff0c\u6b64\u65f6\u96c6\u7fa4\u4e0d\u518d\u8bb0\u5f55event\uff0c\u540e\u7eed\u8bf7\u901a\u8fc7\u3010\u8282\u70b9\u66ff\u6362\u3011\u529f\u80fd\u4fee\u590d\u3002 \u5982\u786e\u8ba4\u80af\u5b9a\u6ca1\u6709ddl\uff0cdml\u7b49\u4f1a\u5bfc\u81f4event\u7684\u64cd\u4f5c\u53d1\u751f\uff0c\u4e5f\u53ef\u5f3a\u5236\u6539\u6210normal\u3002<\/li><\/ul>\n\n\n\n<p>\u5404\u72b6\u6001\u95f4\u5747\u652f\u6301\u8f6c\u6362\u3002<\/p>\n\n\n\n<p>Normal -&gt;failure -&gt;unavaliable<br>Normal -&gt;unavaliable<\/p>\n\n\n\n<p>\u533a\u522b\u662f\uff0c\u7531\u4e8e<strong>unavaliables<\/strong><strong>\u72b6\u6001\u662f\u4e0d\u8bb0\u5f55EVENT<\/strong><strong>\u7684<\/strong>\uff0c\u5982\u679c\u4f60\u5f3a\u884c\u6062\u590d\u5230normal\uff0c\u671f\u95f4\u53d8\u52a8\u4f1a\u5bfc\u81f4\u6570\u636e\u4e0d\u4e00\u81f4\u95ee\u9898\u3002failure\u662f\u8bb0\u5f55event\u7684\uff0c\u6062\u590d\u5230normal\u4f1a\u81ea\u52a8\u6267\u884c\u540c\u6b65\u3002<\/p>\n\n\n\n<p><strong>\u6b64\u64cd\u4f5c\u5bf9\u7ba1\u7406\u8282\u70b9\u548c\u6570\u636e\u8282\u70b9\u5747\u751f\u6548(<\/strong><strong>\u53ea\u770bIP)<\/strong><strong>\uff0c\u4f46\u4e0d\u80fd\u5bfc\u81f4\u96c6\u7fa4\u51fa\u73b0LOCK<\/strong><strong>\u72b6\u6001,<\/strong><strong>\u6bd4\u5982\u8bbe\u7f6e\u4e00\u534a\u6216\u8d85\u8fc7\u4e00\u534a\u7684\u7ba1\u7406\u8282\u70b9\u4e3a\u6545\u969c\uff0c\u5c06\u62a5\u9519\u3002<\/strong><\/p>\n\n\n\n<p>\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\uff0c\u5c06\u8282\u70b9\u8bbe\u7f6e\u4e3a\u6545\u969c\u72b6\u6001\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase86_1 ~]$ gcadmin setnodestate 192.168.174.62 failure<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\uff0c\u5c06\u8282\u70b9\u8bbe\u7f6e\u4e3a\u4e0d\u53ef\u7528\u72b6\u6001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase86_1 ~]$ gcadmin setnodestate 192.168.174.62 unavailable<\/code><\/pre>\n\n\n\n<p>\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\uff0c\u5c06\u8282\u70b9\u8bbe\u7f6e\u4e3a\u6b63\u5e38\u72b6\u6001,\u5f3a\u70c8\u5efa\u8bae\u53ea\u4ecefailure\u72b6\u6001\u6062\u590d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase86_1 ~]$ gcadmin setnodestate 192.168.174.62 normal<\/code><\/pre>\n\n\n\n<p>IPV6\u7248\u672c\u7528\u6cd5\u4e00\u6837\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase86_1 ~]$ gcadmin setnodestate 2001::61 failure\n&#91;gbase@gbase86_1 ~]$ gcadmin setnodestate 2001::62 normal<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"85%E6%81%A2%E5%A4%8D\"><\/span>85\u6062\u590d<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u63d0\u9192\uff1a\u7531\u4e8e85\u7248\u672c\u96c6\u7fa4\u5df2\u7ecf\u4e0d\u518d\u5bf9\u5916\u53d1\u8d27\uff0c\u5f3a\u70c8\u5efa\u8bae\u73b0\u573a\u5148\u5347\u7ea7\u523086\u7248\u672c\uff0c\u518d\u901a\u8fc7\u96c6\u7fa4\u81ea\u5e26\u7684\u8282\u70b9\u66ff\u6362\u5de5\u5177\u8fdb\u884c\u81ea\u52a8\u6062\u590d\u3002<\/p>\n\n\n\n<p>\u5982\u4e0b\u4ec5\u7528\u4e8e\u65e0\u6cd5\u5b89\u6392\u96c6\u7fa4\u5347\u7ea7\uff0c\u6216\u8005\u96c6\u7fa4\u6570\u636e\u91cf\u5c11\uff0c\u5728\u5ba2\u6237\u80fd\u63a5\u53d7\u7684\u505c\u670d\u52a1\u7684\u65f6\u95f4\u5185\u53ef\u4ee5\u5b8c\u6210\u3002<\/p>\n\n\n\n<p>1\u3001\u5b89\u88c5\u597d\u64cd\u4f5c\u7cfb\u7edf\uff0c\u914d\u7f6e\u597dIP\u7b49\u73af\u5883\u3002<\/p>\n\n\n\n<p>2\u3001\u5b89\u88c5\u5355\u8282\u70b9\u96c6\u7fa4<\/p>\n\n\n\n<p>3\u3001\u7136\u540e\u505c\u4e0b\u6765\u6240\u6709\u670d\u52a1 service gcware stop<\/p>\n\n\n\n<p>4\u3001\u4ece\u5907\u7528\u8282\u70b9\u8fdb\u884c\u7269\u7406\u6587\u4ef6\u6062\u590d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/opt\/gbase\/gcluster\n\/opt\/gbase\/gnode\n\/var\/lib\/gware\n\/etc\/corosync\/corosync.conf<\/code><\/pre>\n\n\n\n<p>5\u3001\u542f\u52a8\u670d\u52a1<\/p>\n\n\n\n<p><strong>\u6ce8\u610f\uff0c\u590d\u5236\u671f\u95f4\u5982\u679c\u96c6\u7fa4\u8fd8\u5728\u8fdb\u884c\u8bfb\u5199\uff0c\u5219\u5efa\u8bae\u4f7f\u7528lftp<\/strong><strong>\u8fdb\u884cmirror<\/strong><strong>\u589e\u91cf\u540c\u6b65\uff0c\u5e76\u5728\u6700\u540e\u4e00\u6b21\u540c\u6b65\u65f6\uff0c\u5c06\u96c6\u7fa4\u8bbe\u7f6e\u4e3a\u53ea\u8bfb\u72b6\u6001\uff08\u505c\u6b62\u5916\u90e8\u52a0\u8f7d\u548c\u540e\u53f0\u4efb\u52a1\u7b49\u6570\u636e\u53d8\u52a8\u4e1a\u52a1DML,DDL<\/strong><strong>\uff09\uff0c\u53ef\u4ee5\u67e5\u8be2\uff0c\u786e\u4fdd\u4e3b\u5907\u673a\u5668\u78c1\u76d8\u6587\u4ef6\u5b8c\u5168\u4e00\u6837\u3002<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"86%E8%8A%82%E7%82%B9%E6%9B%BF%E6%8D%A2\"><\/span>86\u8282\u70b9\u66ff\u6362<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>\u901a\u8fc7\u8282\u70b9\u66ff\u6362\u547d\u4ee4\u5b9e\u73b0\u3002\u8be5\u529f\u80fd\u8981\u5728\u4efb\u610f\u4e00\u4e2a\u53ef\u7528\u7ba1\u7406\u8282\u70b9\uff0c\u91c7\u7528\u76f8\u540c\u7248\u672c\u7684gcinstall\u76ee\u5f55\u4e0b\u8fd0\u884c\uff0c\u8be5\u529f\u80fd\u4f1a\u81ea\u52a8\u5b89\u88c5\u9700\u8981\u7684\u7ec4\u4ef6\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u5982\u679c\u64cd\u4f5c\u7cfb\u7edfgbase\u5bc6\u7801\u4fee\u6539\u8fc7\uff0c\u8bf7\u53c2\u8003&lt;8.38.3\u4fee\u6539\u73af\u5883\u53d8\u91cf\u91cc\u7684\u64cd\u4f5c\u7cfb\u7edfGBASE\u5bc6\u7801&gt;\u7ae0\u8282\uff0c\u5148\u5c06\u5404\u4e2a\u8282\u70b9\u73af\u5883\u66f4\u65b0\u3002<\/li><li>\u65b0\u8282\u70b9\u5efa\u8bae\u5148\u624b\u5de5\u521b\u5efagbase\u64cd\u4f5c\u7cfb\u7edf\u7528\u6237\uff0c\u5e76\u8bbe\u7f6e\u548c\u5176\u5b83\u8282\u70b9\u4e00\u81f4\u7684\u5bc6\u7801\u3002<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/replace.py --host=192.168.174.62 --rootPwd=111111 \u2013dbaRootPwd=XXXXXXX --overwrite<\/code><\/pre>\n\n\n\n<p>\u5177\u4f53\u547d\u4ee4\uff0c\u8bf7\u53c2\u8003\u2014help\u8bf4\u660e\u6216\u7ba1\u7406\u5458\u624b\u518c\u3002<\/p>\n\n\n\n<p>\u5176\u4e2d\u53c2\u6570\u540d\u5b57\u5728\u4e0d\u540c\u7684\u7248\u672c\u53ef\u80fd\u6709\u4e0d\u540c\uff0c\u6bd4\u5982dbRootPwd\uff0c\u5c11\u4e86\u4e2a\u5b57\u6bcda\u3002<\/p>\n\n\n\n<p><strong>\u6ce8\u610f\uff1a<\/strong><\/p>\n\n\n\n<p><strong>1<\/strong><strong>\u3001\u66ff\u6362\u671f\u95f4\uff0c\u8282\u70b9\u4f1a\u6709\u4e00\u6bb5\u65f6\u95f4\u5904\u4e8ereadonly<\/strong><strong>\u72b6\u6001\uff0c\u7cfb\u7edf\u4e0d\u53ef\u5199\u3002\u6b64\u65f6\u5728\u540c\u6b65\u5143\u6570\u636e(<\/strong><strong>\u5e93\uff0c\u8868\u7ed3\u6784\u7b49),<\/strong><strong>\u5177\u4f53\u65f6\u95f4\u8981\u6839\u636e\u8868\u7684\u591a\u5c11\u5224\u65ad<\/strong>\u3002<\/p>\n\n\n\n<p><strong>2<\/strong><strong>\u3001\u6545\u969c\u8282\u70b9\u7684event,<\/strong><strong>\u5efa\u8bae\u5728\u8bbe\u7f6e\u72b6\u6001\u4e3aunabaliable<\/strong><strong>\u540e\u8fdb\u884c\u6e05\u7406\uff0c\u907f\u514d\u5927\u91cfevent<\/strong><strong>\u9020\u6210\u96c6\u7fa4\u5185\u90e8\u901a\u8baf\u8d8a\u6765\u8d8a\u6162\u3002\u6709\u9879\u76ee\u53cd\u998830<\/strong><strong>\u4e2a\u7ba1\u7406\u8282\u70b9,<\/strong><strong>\u5728event<\/strong><strong>\u603b\u6570\u91cf\u8d85\u8fc712<\/strong><strong>\u4e07\u4e2a\u65f6\uff0c\u7b80\u5355\u5168\u8868count<\/strong><strong>\uff08*<\/strong><strong>\uff09\u90fd\u898110-30<\/strong><strong>\u79d2\u3002\u800c\u5e73\u65f6\u53ea\u9700\u89811<\/strong><strong>\u79d2\u4ee5\u5185\u3002 <\/strong><strong>\u6e05\u7406\u65b9\u6848\u770b\u540e\u9762\u3010<\/strong><a href=\"#_\u624b\u5de5\u6e05\u7406event\"><strong>\u6e05\u7406event<\/strong><\/a><strong>\u3011\u90e8\u5206\u3002<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BD%BF%E7%94%A8%E6%A0%B7%E4%BE%8B\"><\/span>\u4f7f\u7528\u6837\u4f8b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>1\u3001\u68c0\u67e5\u8282\u70b9\u72b6\u6001\uff0c\u8981\u8bbe\u7f6e62\u8282\u70b9\u4e0d\u53ef\u7528<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"335\" height=\"146\" src=\"http:\/\/www.gbase8.cn\/wp-content\/uploads\/2020\/06\/image-17.png\" alt=\"\" class=\"wp-image-47\"\/><\/figure>\n\n\n\n<p>2\u3001\u8282\u70b9\u72b6\u6001\u53d8\u6210UNAVAILAVLE\u72b6\u6001<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"339\" height=\"212\" src=\"http:\/\/www.gbase8.cn\/wp-content\/uploads\/2020\/06\/image-18.png\" alt=\"\" class=\"wp-image-48\"\/><\/figure>\n\n\n\n<p>\u6ce8\u610f\uff1a\u6b64\u65f6\u5efa\u8bae\u6e05\u7406\u6545\u969c\u8282\u70b9\u7684event<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gcadmin rmdmlstorageevent 2 192.168.174.62\ngcadmin rmddlevent 2 192.168.174.62\ngcadmin rmdmlevent 2 192.168.174.62<\/code><\/pre>\n\n\n\n<p>3\u3001\u5f53\u8282\u70b9\u6b63\u5e38\u540e\uff0c\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u81ea\u52a8\u5b89\u88c5\u8282\u70b9\u670d\u52a1\uff0c\u5e76\u6062\u590d\u6570\u636e<\/p>\n\n\n\n<p>\u6ce8\u610f\uff1a\u64cd\u4f5c\u5c06\u68c0\u67e5\u96c6\u7fa4ddl\u9501\uff0c\u5982\u679c\u6709ddl\u8bed\u53e5\u5728\u8fd0\u884c\uff0c\u5c06\u7b49\u5f85\u5176\u5b8c\u6210\u3002\u8bf7\u786e\u8ba4ddl\u8bed\u53e5\u53ef\u4ee5\u5f88\u5feb\u5b8c\u6210\uff0c\u6216\u8005\u8054\u7cfb\u4e1a\u52a1\uff0c\u6740\u6389\u6b63\u5728\u8fd0\u884c\u7684ddl\u8bed\u53e5\uff0c\u907f\u514d\u65e0\u6cd5\u8bc4\u4f30\u7b49\u5f85\u65f6\u95f4\u3002\u66fe\u6709\u73b0\u573a\u7b49\u5f85\u4e864\u4e2a\u5c0f\u65f6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@gbase86_1 gcinstall]$ .\/replace.py --host=192.168.174.62 --rootPwd=111111\n192.168.174.62\nAre you sure to replace install these nodes (&#91;Y,y]\/&#91;N,n])? y\nStarting all gcluster nodes...\ncopy system table from 192.168.174.61 to 192.168.174.62\nsource ip: 192.168.174.61\ntarget ip: 192.168.174.62\nset data restorage flag on node 192.168.174.62 have success stoped\nload gbase client dll start ......\nload gbase client dll end ......\ncheck node data map and cluster state start ......\ncheck node data map and cluster state end ......\nget distribution information start ......\nget distribution information end ......\ncheck ip start ......\ncheck ip end ......\nswitch cluster mode into READONLY start ......\nwait all ddl statement stop ......\nall ddl statement stoped\nswitch cluster mode into READONLY end ......\ncheck cluster data state start ......\ncheck coordinator node data state start ......\ncheck coordinator node data state end ......\ncheck data server node data state start ......\ncheck data server node data state by ddl fevent log start ......\ncheck data server node data state by ddl fevent log end ......\ncheck data server node data state by dml fevent log start ......\ncheck data server node data state by dml fevent log end ......\ncheck data server node data state by dml storage fevent log start ......\ncheck data server node data state by dml storage fevent log end ......\ncheck data server node data state end ......\ncheck cluster data state end ......\ndelete all fevent log on replace nodes start ......\ndelete ddl event log on node 192.168.174.62 start\ndelete ddl event log on node 192.168.174.62 end\ndelete dml event log on node 192.168.174.62 start\ndelete dml event log on node 192.168.174.62 end\ndelete dml storage event log on node 192.168.174.62 start\ndelete dml storage event log on node 192.168.174.62 end\ndelete all fevent log on replace nodes end ......\nsync metedata start ......\nsync coordinator metedata start ......\nsync coordinator metedata end,spend time 0 ms ......\nsync data server metedata start ......\nnode: 192.168.174.61 data server build data packet successed\ncopy data server table from 192.168.174.61 to 192.168.174.62 successed\nnode: 192.168.174.61 data server remove data packet successed\nsync dataserver metedata end,spend time 14490 ms ......\nsync metedata end ......\nset sync data flag start ......\nget database and tables information start ......\nget database information start ......\nget database information end\nget tables information start ......\nget tables information end.\nget database and tables information end,spend time 1934 ms ......\ncreate database and set table dml storage event start ......\ncreate database start ......\ncreate database end ......\nset data restorage flag start ......\nset data restorage flag end\nnode &#91;192.168.174.62] set table dml storage event count: 59\nset table dml storage event totally count: 59\ncreate database and set table dml storage event end,spend time 17 ms ......\nset sync data flag end ......\nrestore cluster mode start ......\nrestore cluster mode end ......\nrestore node state start ......\nrestore node state end ......\nall nodes replace success end\nreplace nodes spend time: 19362 ms\nReplace gcluster nodes successfully.\n<\/code><\/pre>\n\n\n\n<p>4\u8282\u70b9\u4f1a\u6709\u4e00\u6bb5\u65f6\u95f4\u5904\u4e8ereadonly\u72b6\u6001\uff0c\u6545\u969c\u8282\u70b9\u4e3aREPLACE\u72b6\u6001\u3002<\/p>\n\n\n\n<p>5\u3001\u96c6\u7fa4\u6062\u590d\uff0c\u6545\u969c\u8282\u70b9\u4e3aOFFLINE\u72b6\u6001<\/p>\n\n\n\n<p>6\u3001\u8282\u70b9\u4e0a\u7ebf\uff0c\u8bbe\u7f6e\u9700\u8981\u540c\u6b65\u72b6\u6001<\/p>\n\n\n\n<p>\u80fd\u770b\u5230\u90fd\u662fdmlstorageevent\u3002 \u4f1a\u4ece\u5907\u4efd\u8282\u70b9\u642c\u8fc1\u6570\u636e\u3002<\/p>\n\n\n\n<p><span class=\"has-inline-color has-luminous-vivid-orange-color\">\u6253\u8865\u4e01\uff01\uff01\uff01\u5982\u679c\u96c6\u7fa4\u6253\u8fc7\u8865\u4e01\uff0c\u5207\u83ab\u5fd8\u8bb0\u3002<\/span><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u6570\u636e\u5e93\u96c6\u7fa4\u662f\u901a\u8fc7\u4e3b\u526f\u672c\u673a\u5236\u5b9e\u73b0\u7684\u9ad8\u53ef\u7528\u3002\u5f53 \u4e00\u4e2a\u8282\u70b9\u5b8c\u5168\u635f\u574f\u662f\uff0c\u9700\u8981\u5728\u4e00\u53f0\u65b0\u670d\u52a1\u5668\u4e0a\u505a\u8282\u70b9\u66ff\u6362\u3002\u5176\u4e2d\u5728\u786e\u8ba4\u8282\u70b9\u5f7b\u5e95\u6545\u969c\u65f6\u8981\u8bbe\u7f6e\u8282\u70b9\u4e0d\u53ef\u7528\u72b6\u6001\uff0c\u7136\u540e\u901a\u8fc7\u66ff\u6362\u547d\u4ee4\u5b89\u88c5\u7a0b\u5e8f\uff0c\u6062\u590d\u8868\u7ed3\u6784\u548c\u6062\u590d\u6570\u636e\u7b49\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[89],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-89"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/46","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=46"}],"version-history":[{"count":18,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":10201,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/46\/revisions\/10201"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}