概述
GBase 8a MPP Cluster 支持集群扩容、集群缩容、集群节点替换等功能,满足在集群运行过程中需要存储的数据增加导致数据存储空间不足,长时间运行导致单节点硬件故障,整体集群需要进行硬件升级等场景。
V9.5.3 当前不支持 gcware 节点的扩容和缩容,支持 gcware 节点替换。
集群扩容操作流程-兼容模式
扩容纯 data 节点
集群环境描述:
Coordinator 节点: 172.168.83.11, 172.168.83.12, 172.168.83.13, 172.168.83.14
Data 节点:
vc1: 172.168.83.11, 172.168.83.12, 172.168.83.13
待扩容到 vc1 的 data 节点 IP:172.168.83.15
安装节点
步骤 1:修改 demo.options 文件:
1) 设置 dataHost 参数为要安装的节点的 IP;
2) 修改 existCoordinateHost 参数为已存在的 Coordinator 节点的 IP;
3) 修改 existDataHost 参数为已存在的所有 data 节点的 IP。
修改后的 demo.options 参考如下:
$ cat demo.options
installPrefix= /opt
#coordinateHost =172.168.83.14
#coordinateHostNodeID = 14
dataHost =172.168.83.15
existCoordinateHost
=172.168.83.11,172.168.83.12,172.168.83.13,172.168.83.14
existDataHost =172.168.83.11,172.168.83.12,172.168.83.13
existGcwareHost=172.168.83.11,172.168.83.12,172.168.83.13
#gcwareHost =
#gcwareHostNodeID =
dbaUser = gbase
dbaGroup = gbase
dbaPwd = 'gbasedba'
rootPwd = '111111'
#rootPwdFile = rootPwd.json
步骤 2:执行安装
$ ./gcinstall.py --silent=demo.options ****************************************************************** *************** Thank you for choosing GBase product! ……………… ****************************************************************** Do you accept the above licence agreement ([Y,y]/[N,n])? y ****************************************************************** Welcome to install GBase products ****************************************************************** Environmental Checking on gcluster nodes. CoordinateHost: DataHost: 172.168.83.15 Are you sure to install GCluster on these nodes ([Y,y]/[N,n])? y
……………… 172.168.83.15 install cluster on host 172.168.83.15 successfully. update and sync configuration file... Starting all gcluster nodes... adding new datanodes to gcware... $ ##出现上面信息表示安装成功 安装后状态信息如下: $ gcadmin CLUSTER STATE: ACTIVE VIRTUAL CLUSTER MODE: NORMAL ================================================================ | GBASE COORDINATOR CLUSTER INFORMATION | ================================================================ | NodeName | IpAddress | gcware | gcluster | DataState | ---------------------------------------------------------------- | coordinator1 | 172.168.83.11 | OPEN | OPEN | 0 | ---------------------------------------------------------------- | coordinator2 | 172.168.83.12 | OPEN | OPEN | 0 | ---------------------------------------------------------------- | coordinator3 | 172.168.83.13 | OPEN | OPEN | 0 | ---------------------------------------------------------------- | coordinator4 | 172.168.83.14 | OPEN | OPEN | 0 | ---------------------------------------------------------------- ======================================================&