检查节点状态,集群状态应为normal,Coordinator 节点状态正常,被替换节点的
DATA NODE INFORMATION 状态为unavailable 状态。
操作步骤
步骤1:检查节点状态,集群状态应为normal,Coordinator 节点状态正常,被替换
的节点为DATA NODE,且状态为unavailable。
$ gcadmin showcluster vc vc2
CLUSTER STATE:
ACTIVE
VIRTUAL CLUSTER MODE:
NORMAL
===============================================
|
GBASE VIRTUAL CLUSTER INFORMATION
|
===============================================
|
VcName
| DistributionId |
comment
|
-----------------------------------------------
|
vc2
|
2
| vc2comments |
-----------------------------------------------
================================================================
========
|
VIRTUAL CLUSTER DATA NODE INFORMATION
|
================================================================
GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
340
========
|NodeName|
IpAddress
|DistributionId|
gnode
|syncserver|DataState|
------------------------------------------------------------------------
| node1
|172.168.83.13|
2
|UNAVAILABLE|
|
|
------------------------------------------------------------------------
| node2
|172.168.83.14|
2
|
OPEN
|
OPEN
|
0
|
------------------------------------------------------------------------
2 data node
步骤3:删除被替换节点的feventlog。
$ gcadmin rmfeventlog 172.168.83.13
after rmfeventlog 172.168.83.13, fevent log will be removed, must run gcadmin
replacenodes to replace this node.
you realy want to remove node 172.168.83.13 fevent log(yes or no)?
yes
delete ddl event log on node 172.168.83.13 start
delete ddl event log on node 172.168.83.13 end
delete dml event log on node 172.168.83.13 start
delete dml event log on node 172.168.83.13 end
delete dml storage event log on node 172.168.83.13 start
delete dml storage event log on node 172.168.83.13 end