{"id":13348,"date":"2026-03-24T17:26:16","date_gmt":"2026-03-24T09:26:16","guid":{"rendered":"https:\/\/www.gbase8.cn\/?p=13348"},"modified":"2026-03-24T17:52:28","modified_gmt":"2026-03-24T09:52:28","slug":"gbase-8a-%e9%9b%86%e7%be%a4%e6%8e%92%e6%9f%a5%e7%9b%b8%e5%85%b3%e7%9a%84%e5%87%a0%e4%b8%aa%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/13348","title":{"rendered":"GBase 8a cluster troubleshooting related commands"},"content":{"rendered":"<p>When GBase 8a experiences occasional issues during stable operation, most are caused by [reason]. This article introduces the most common troubleshooting commands to pinpoint the fault location.<\/p>\n\n\n\n<p>The OS commands mentioned below refer to execution in the Linux command line; SQL refers to execution in the gbase client, gccli.<\/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-6a2aa7d54bc8b\" 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-6a2aa7d54bc8b\"  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\/13348\/#%E9%9B%86%E7%BE%A4%E7%8A%B6%E6%80%81\" >Cluster status<\/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\/13348\/#%E9%9B%86%E7%BE%A4%E5%B1%82%E8%BF%90%E8%A1%8C%E4%B9%8B%E9%97%B4%E6%9C%80%E9%95%BF%E7%9A%84SQL\" >Longest SQL running between cluster layers<\/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\/13348\/#%E6%9F%A5%E7%9C%8B%E5%93%AA%E4%B8%AA%E8%8A%82%E7%82%B9%E6%89%A7%E8%A1%8C%E8%80%97%E6%97%B6%E6%9C%80%E9%95%BF%E7%9A%84SQL\" >View which node executes the longest SQL statement<\/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\/13348\/#%E6%9F%A5%E7%9C%8B%E8%AF%A5%E8%8A%82%E7%82%B9%E7%9A%84%E6%83%85%E5%86%B5\" >Check the status of this node<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.gbase8.cn\/en\/13348\/#%E6%98%AF%E5%90%A6%E6%9C%89OS%E7%8E%AF%E5%A2%83%E6%8A%A5%E9%94%99\" >Are there any OS environment errors?<\/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\/13348\/#%E6%9F%A5%E7%9C%8B%E6%98%AF%E5%90%A6OS%E8%B5%84%E6%BA%90%E7%B9%81%E5%BF%99\" >Check if OS resources are busy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.gbase8.cn\/en\/13348\/#%E6%9F%A5%E7%9C%8B%E6%98%AF%E5%90%A6%E4%BD%BF%E7%94%A8%E4%BA%86SWAP\" >Check if SWAP is being used<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.gbase8.cn\/en\/13348\/#%E5%85%B6%E5%AE%83%E6%8E%92%E6%9F%A5\" >Other troubleshooting<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.gbase8.cn\/en\/13348\/#%E5%8A%A0%E8%BD%BD%E9%80%9F%E5%BA%A6\" >Loading speed<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%9B%86%E7%BE%A4%E7%8A%B6%E6%80%81\"><\/span>Cluster status<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Execute the `gcadmin` command in the OS to view cluster node and service status. Emphasis on CLOSE, OFFLINE, etc.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"307\" src=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-5.png\" alt=\"\" class=\"wp-image-13355\" srcset=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-5.png 552w, https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-5-300x167.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%9B%86%E7%BE%A4%E5%B1%82%E8%BF%90%E8%A1%8C%E4%B9%8B%E9%97%B4%E6%9C%80%E9%95%BF%E7%9A%84SQL\"><\/span>Longest SQL running between cluster layers<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Pay special attention to the runtime (time column). If it significantly exceeds the normal time, for example, if it's usually 1 minute but now takes 1 hour, then you can proceed to the next steps.<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>SELECT COORDINATOR_NAME, ID, user, host, command, start_time, time, state, SUBSTRING(info, 0, 100) AS info FROM information_schema.COORDINATORS_TASK_INFORMATION WHERE command = 'query' AND time &gt;= 0 ORDER BY time DESC LIMIT 10;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E7%9C%8B%E5%93%AA%E4%B8%AA%E8%8A%82%E7%82%B9%E6%89%A7%E8%A1%8C%E8%80%97%E6%97%B6%E6%9C%80%E9%95%BF%E7%9A%84SQL\"><\/span>View which node executes the longest SQL statement<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Similarly, check for excessively long execution times based on the \"time\" column. This usually matches the execution time of the previous step. For example, if the cluster layer took 3600 seconds and this step took 2900 seconds, they can generally be matched.<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>SELECT NODE_NAME, ID, user, host, command, start_time, time, state, SUBSTRING(info, 0, 100) AS info FROM information_schema.GNODES_TASK_INFORMATION where command=&#x27;query&#x27; and info is not null and info is not like &#x27;%information_schema.processlist%&#x27; order by time desc limit 10;<\/code><\/pre>\n\n\n\n<p>The first column of the execution output, node_name, corresponds to the node number, for example, node2. This number corresponds to the Nodename in the output of `gcadmin showcluster`. For example<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"342\" height=\"133\" src=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-2.png\" alt=\"\" class=\"wp-image-13352\" srcset=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-2.png 342w, https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-2-300x117.png 300w\" sizes=\"auto, (max-width: 342px) 100vw, 342px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E7%9C%8B%E8%AF%A5%E8%8A%82%E7%82%B9%E7%9A%84%E6%83%85%E5%86%B5\"><\/span>Check the status of this node<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Log in to the node via SSH and check the following aspects:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%98%AF%E5%90%A6%E6%9C%89OS%E7%8E%AF%E5%A2%83%E6%8A%A5%E9%94%99\"><\/span>Are there any OS environment errors?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Execute the following OS commands<\/p>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>dmesg -T | grep -i error<\/code><\/pre>\n\n\n\n<p>Based on the output, determine if there are hardware, file system, or other types of failures.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E7%9C%8B%E6%98%AF%E5%90%A6OS%E8%B5%84%E6%BA%90%E7%B9%81%E5%BF%99\"><\/span>Check if OS resources are busy<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Execute the following OS command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iostat -xdc 1<\/code><\/pre>\n\n\n\n<p>Pay close attention to whether the %util column at the end shows a persistent value of 100%. Also, check whether the await column further down exceeds 200.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"994\" height=\"333\" src=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-3.png\" alt=\"\" class=\"wp-image-13353\" srcset=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-3.png 994w, https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-3-600x201.png 600w, https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-3-300x101.png 300w, https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-3-768x257.png 768w\" sizes=\"auto, (max-width: 994px) 100vw, 994px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%9F%A5%E7%9C%8B%E6%98%AF%E5%90%A6%E4%BD%BF%E7%94%A8%E4%BA%86SWAP\"><\/span>Check if SWAP is being used<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>I recommend using the `top` command in `os`. It can also show you process CPU and memory usage.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"156\" src=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-4.png\" alt=\"\" class=\"wp-image-13354\" srcset=\"https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-4.png 678w, https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-4-600x138.png 600w, https:\/\/www.gbase8.cn\/wp-content\/uploads\/2026\/03\/image-4-300x69.png 300w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/figure>\n\n\n\n<p>High swap usage and insufficient memory will lead to performance degradation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%85%B6%E5%AE%83%E6%8E%92%E6%9F%A5\"><\/span>Other troubleshooting<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%8A%A0%E8%BD%BD%E9%80%9F%E5%BA%A6\"><\/span>Loading speed<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code has-small-font-size\"><code>SELECT tb_name, IP, state, ELAPSED_TIME, avg_speed, progress, total_size, loaded_size FROM information_schema.load_status ORDER BY avg_speed;<\/code><\/pre>\n\n\n\n<p>Generally, SFTP's average speed should be &gt;= 8MB\/s, while FTP is typically between 40-100MB\/s.  <\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>When GBase 8a experiences occasional issues during stable operation, most are caused by [reason]. This article introduces the most common troubleshooting commands to pinpoint the fault location.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[72],"class_list":["post-13348","post","type-post","status-publish","format-standard","hentry","category-gbase8a","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/13348","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=13348"}],"version-history":[{"count":5,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/13348\/revisions"}],"predecessor-version":[{"id":13357,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/13348\/revisions\/13357"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=13348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=13348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=13348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}