{"id":9117,"date":"2022-04-14T09:21:28","date_gmt":"2022-04-14T01:21:28","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=9117"},"modified":"2022-04-18T10:41:49","modified_gmt":"2022-04-18T02:41:49","slug":"gbase-%e6%89%a9%e5%ae%b9%e6%93%8d%e4%bd%9c%e9%87%8d%e5%88%86%e5%b8%83%e5%ae%8c%e6%88%90%e5%90%8e%e6%b8%85%e7%90%86%e6%97%a7%e7%9a%84distribution%e6%97%b6%e6%8a%a5%e9%94%99fcan-not-drop-nodedatamap-eve","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/9117","title":{"rendered":"\u5357\u5927\u901a\u7528GBase \u6269\u5bb9\u64cd\u4f5c\u91cd\u5206\u5e03\u5b8c\u6210\u540e\u6e05\u7406\u65e7\u7684distribution\u65f6\u62a5\u9519FCan not drop nodedatamap EventLog is using distribution"},"content":{"rendered":"<p>GBase 8a\u5728\u6269\u5bb9\u64cd\u4f5c\u4e2d\uff0c\u5f53\u6240\u6709\u8868\u5df2\u7ecf\u5168\u90e8\u91cd\u5206\u5e03\u5230\u65b0\u7684\u5206\u5e03\u7b56\u7565distribution\u4ee5\u540e\uff0c\u8001\u7684distribution\u5c31\u53ef\u4ee5\u7528refreshnodedatamap drop\u5220\u9664\u4e86\u3002 \u4f46\u5982\u679c\u6b64\u65f6\u6709\u4e9b\u8868\u5b58\u5728event,\u4e14\u4f7f\u7528\u7684\u8001\u7684\u7b56\u7565\uff0c\u5219\u4f1a\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\uff1aCan not drop nodedatamap EventLog is using distribution\u3002\u6b64\u65f6\u9700\u8981\u5c06\u539f\u6709\u7684event\u5904\u7406\u5b8c\u6210\u624d\u53ef\u4ee5\u7ee7\u7eed\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p>\u6362\u4e2a\u89d2\u5ea6\uff0c\u5982\u679c\u662f\u6269\u5bb9\uff0c\u5728\u64cd\u4f5c\u524d\u5c06\u96c6\u7fa4\u72b6\u6001\u5168\u90e8\u6062\u590d\u6b63\u5e38\uff0c\u6ca1\u6709event\u4f1a\u66f4\u5408\u9002\u4e00\u4e9b\uff0c\u53ef\u4ee5\u51cf\u5c11\u8fd0\u7ef4\u7684\u8017\u65f6\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-6a2acedb48dd2\" 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-6a2acedb48dd2\"  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\/9117\/#%E6%8A%A5%E9%94%99%E6%A0%B7%E4%BE%8B\" >\u62a5\u9519\u6837\u4f8b<\/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\/9117\/#%E5%8E%9F%E5%9B%A0\" >\u539f\u56e0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/9117\/#%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88\" >\u5904\u7406\u65b9\u6848<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.gbase8.cn\/en\/9117\/#%E6%80%BB%E7%BB%93\" >Summary<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.gbase8.cn\/en\/9117\/#%E5%8F%82%E8%80%83\" >\u53c2\u8003<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%8A%A5%E9%94%99%E6%A0%B7%E4%BE%8B\"><\/span>\u62a5\u9519\u6837\u4f8b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase> refreshnodedatamap drop 1;\r\nERROR 1707 (HY000): gcluster command error: Can not drop nodedatamap 1. FEventLog is using distribution.\r\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8E%9F%E5%9B%A0\"><\/span>\u539f\u56e0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u67e5\u770bgcadmin\uff0c\u786e\u5b9e\u6709event<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@rh6-1 gcinstall_43R33]$ gcadmin\r\nCLUSTER STATE:  ACTIVE\r\nCLUSTER MODE:   NORMAL\r\n\r\n=================================================================\r\n|             GBASE COORDINATOR CLUSTER INFORMATION             |\r\n=================================================================\r\n|   NodeName   |     IpAddress     |gcware |gcluster |DataState |\r\n-----------------------------------------------------------------\r\n| coordinator1 |    10.0.2.201     | OPEN  |  OPEN   |    1     |\r\n-----------------------------------------------------------------\r\n=============================================================\r\n|              GBASE DATA CLUSTER INFORMATION               |\r\n=============================================================\r\n|NodeName |     IpAddress     |gnode |syncserver |DataState |\r\n-------------------------------------------------------------\r\n|  node1  |    10.0.2.201     | OPEN |   OPEN    |    0     |\r\n-------------------------------------------------------------\r\n|  node2  |    10.0.2.202     | OPEN |   OPEN    |    0     |\r\n-------------------------------------------------------------\r\n<\/code><\/pre>\n\n\n\n<p>\u67e5\u770b\u5177\u4f53event,\u53d1\u73b0\u672c\u6b21\u6bd4\u8f83\u7279\u6b8a\uff0c\u662fgssys\u8868\u7684\u5ba1\u8ba1\u65e5\u5fd7audit_log\u51fa\u4e86\u95ee\u9898\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@rh6-1 gcinstall_43R33]$ gcadmin showdmlevent\r\nEvent count:0\r\n&#91;gbase@rh6-1 gcinstall_43R33]$ gcadmin showddlevent\r\nEvent count:0\r\n&#91;gbase@rh6-1 gcinstall_43R33]$ gcadmin showdmlstorageevent\r\nEvent count:1\r\nEvent ID:    2\r\nObjectName: gbase.audit_log\r\nTableID: 0\r\n\r\nFail Data Copy:\r\n------------------------------------------------------\r\nNodeIP: 10.0.2.201      FAILURE\r\n\r\n\r\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88\"><\/span>\u5904\u7406\u65b9\u6848<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4fee\u590d\u8be5event\u3002\u5982\u679c\u7cfb\u7edf\u65e0\u6cd5\u81ea\u52a8\u540c\u6b65\u5b8c\u6210\uff0c\u6392\u67e5\u539f\u56e0\u3002<\/p>\n\n\n\n<p>\u67e5\u770bgcluster\u65e5\u5fd7\u4e0b\u7684gc_recovery.log\uff0c\u53d1\u73b0\u8be5event\u65e0\u6cd5\u81ea\u52a8\u6062\u590d\uff0c\u56e0\u4e3agssys\u8868\u662f\u672c\u5730\u8868\uff0c\u6ca1\u6709\u526f\u672c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2022-04-14 08:57:40.898 &#91;ERROR] &lt;STORAGE-Recover-0>: GetSyncDmlStorgeInfo error, eventid=2, tablename=gbase.audit_log, content=gbase.audit_log,,true\r\n2022-04-14 08:57:40.898 &#91;INFO ] &lt;RECOVER-INFO-0>: Finishing Recovering gbase.audit_log,tid 0\r\n2022-04-14 08:57:41.119 &#91;INFO ] &lt;RECOVER-INFO>: MasterAssignTask dmlstoragetid num 1.\r\n2022-04-14 08:57:41.119 &#91;INFO ] &lt;RECOVER-INFO-0>: Start Recovering gbase.audit_log tid 0\r\n2022-04-14 08:57:41.119 &#91;INFO ] &lt;STORAGE-Recover-0>: Start DMLStorge recover gbase.audit_log,tid 0 eventnum 1\r\n2022-04-14 08:57:41.119 &#91;INFO ] &lt;STORAGE-Recover-0>: Start to DMLStorge recover of eventid(2)\r\n2022-04-14 08:57:41.119 &#91;ERROR] &lt;GCWare>: sys gbase.audit_log nodeid: 3372351498, have dmlstorageevent,eventid: 2\r\n2022-04-14 08:57:41.119 &#91;ERROR] &lt;STORAGE-Recover>: GetDataCopyMap error, can't get a source node, because of no normal\r\n2022-04-14 08:57:41.119 &#91;ERROR] &lt;STORAGE-Recover-0>: GetSyncDmlStorgeInfo error, eventid=2, tablename=gbase.audit_log, content=gbase.audit_log,,true\r\n<\/code><\/pre>\n\n\n\n<p>\u767b\u5f55\u8282\u70b9\uff0c\u4fee\u590d\u8be5\u8868\uff0c\u53d1\u73b0\u62a5\u9519<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase> repair table gbase.audit_log;\r\n+-----------------+--------+----------+-----------------------------------+\r\n| Table           | Op     | Msg_type | Msg_text                          |\r\n+-----------------+--------+----------+-----------------------------------+\r\n| gbase.audit_log | repair | Error    | Incorrect file format 'audit_log' |\r\n| gbase.audit_log | repair | error    | Corrupt                           |\r\n+-----------------+--------+----------+-----------------------------------+\r\n2 rows in set (Elapsed: 00:00:00.01)\r\n<\/code><\/pre>\n\n\n\n<p>\u786e\u8ba4\u662f\u8868\u6570\u636e\u6587\u4ef6\u5f7b\u5e95\u635f\u574f\uff0c\u53ea\u80fd\u6e05\u7a7a\u6570\u636e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase> repair table gbase.audit_log use_frm;\r\n+-----------------+--------+----------+-----------------------------------+\r\n| Table           | Op     | Msg_type | Msg_text                          |\r\n+-----------------+--------+----------+-----------------------------------+\r\n| gbase.audit_log | repair | Error    | Incorrect file format 'audit_log' |\r\n| gbase.audit_log | repair | status   | OK                                |\r\n+-----------------+--------+----------+-----------------------------------+\r\n2 rows in set (Elapsed: 00:00:00.00)<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u6e05\u7406event<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;gbase@rh6-1 gcinstall_43R33]$ gcadmin rmdmlstorageevent 0 2\r\n&#91;gbase@rh6-1 gcinstall_43R33]$ gcadmin\r\nCLUSTER STATE:  ACTIVE\r\nCLUSTER MODE:   NORMAL\r\n\r\n=================================================================\r\n|             GBASE COORDINATOR CLUSTER INFORMATION             |\r\n=================================================================\r\n|   NodeName   |     IpAddress     |gcware |gcluster |DataState |\r\n-----------------------------------------------------------------\r\n| coordinator1 |    10.0.2.201     | OPEN  |  OPEN   |    0     |\r\n-----------------------------------------------------------------\r\n=============================================================\r\n|              GBASE DATA CLUSTER INFORMATION               |\r\n=============================================================\r\n|NodeName |     IpAddress     |gnode |syncserver |DataState |\r\n-------------------------------------------------------------\r\n|  node1  |    10.0.2.201     | OPEN |   OPEN    |    0     |\r\n-------------------------------------------------------------\r\n|  node2  |    10.0.2.202     | OPEN |   OPEN    |    0     |\r\n-------------------------------------------------------------\r\n<\/code><\/pre>\n\n\n\n<p>\u91cd\u65b0\u5220\u9664\u65e7\u7684\u5206\u5e03\u7b56\u7565\u6210\u529f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase> refreshnodedatamap drop 1;\r\nQuery OK, 0 rows affected (Elapsed: 00:00:04.64)\r\n\r\ngbase> ^CAborted\r\n&#91;gbase@rh6-1 gcluster]$ gcadmin rmdistribution 1\r\ncluster distribution ID &#91;1]\r\nit will be removed now\r\nplease ensure this is ok, input y or n: y\r\ngcadmin remove distribution &#91;1] success\r\n&#91;gbase@rh6-1 gcluster]$\r\n<\/code><\/pre>\n\n\n\n<h2 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><\/h2>\n\n\n\n<p>\u5f53\u6570\u636e\u5e93\u5b58\u5728event\u65f6\u8981\u53ca\u65f6\u5173\u6ce8\uff0c\u5982\u679c\u6570\u636e\u5e93\u81ea\u8eab\u65e0\u6cd5\u81ea\u52a8\u6062\u590d\uff0c\u8981\u6392\u67e5\u539f\u56e0\uff0c\u5728\u6392\u9664\u73af\u5883\u81ea\u8eab\u95ee\u9898\uff0c\u6bd4\u5982\u78c1\u76d8\u635f\u574f\uff0c\u7a7a\u95f4\u6ee1\uff0c\u7f51\u7edc\u4e0d\u7a33\u5b9a\u7b49\u3002 \u7b49event\u5b8c\u6210\u6062\u590d\u540e\u518d\u8fdb\u884c\u6269\u5bb9\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u5b58\u5728\u903b\u8f91\u4e0a\u7684\u4e0d\u80fd\u81ea\u52a8\u6062\u590d\uff0c\u6bd4\u5982\u4e3b\u526f\u672c\u90fd\u88ab\u8bbe\u7f6e\u4e86\u4e0d\u4e00\u81f4\u6807\u8bb0\uff0c\u6216\u8005\u5982\u672c\u4f8b\u7684\u8fd9\u79cd\u672c\u5730gssys\u7c7b\u578b\u7684\u8868\uff0c\u8981\u6839\u636e\u5b9e\u9645\u6e05\u7a7a\u624b\u5de5\u5904\u7406\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8F%82%E8%80%83\"><\/span>\u53c2\u8003 <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/www.gbase8.cn\/en\/4822\/?hilite=%E4%B8%BB%E5%89%AF%E6%9C%AC\">GBase 8a\u53d1\u751f<mark>\u4e3b\u526f\u672c<\/mark>\u90fd\u635f\u574f\u72b6\u6001\u4e3a1\u7684\u51e0\u79cd\u539f\u56e0<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u5728\u6269\u5bb9\u64cd\u4f5c\u4e2d\uff0c\u5f53\u6240\u6709\u8868\u5df2\u7ecf\u5168\u90e8\u91cd\u5206\u5e03\u5230\u65b0\u7684\u5206\u5e03\u7b56\u7565distribution\u4ee5\u540e\uff0c\u8001\u7684distribution\u5c31\u53ef\u4ee5\u7528refreshnodedatamap drop\u5220\u9664\u4e86\u3002 \u4f46\u5982\u679c\u6b64\u65f6\u6709\u4e9b\u8868\u5b58\u5728event,\u4e14\u4f7f\u7528\u7684\u8001\u7684\u7b56\u7565\uff0c\u5219\u4f1a\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\uff1aCan not drop nodedatamap EventLog is using distribution\u3002\u6b64\u65f6\u9700\u8981\u5c06\u539f\u6709\u7684event\u5904\u7406\u5b8c\u6210\u624d\u53ef\u4ee5\u7ee7\u7eed\u64cd\u4f5c\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[88],"class_list":["post-9117","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-88"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/9117","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=9117"}],"version-history":[{"count":2,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/9117\/revisions"}],"predecessor-version":[{"id":9119,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/9117\/revisions\/9119"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=9117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=9117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=9117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}