操作场景
使用多VC 模式。
前提条件
集群运行正常;
root cluster 中存在freenode;
gcadmin 可用。
操作步骤
步骤1
GBase 8a MPP Cluster 产品手册
3 集群安装升级与卸载
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
82
切换到dbaUser 用户(即demo.options 中的dbaUser 用户),进入安装包解压后的
gcinstall 目录下,生成创建VC2 的配置示范文件示例。
示例:
# su - gbase
$ cd /opt/gcinstall
$ gcadmin createvc e create_vc2.xml
$ cat create_vc2.xml
(:wq 保存退出)
说明
vc_name 不能超过64 个字节,comment 信息不能超过60 个字节;
创建VC 的配置文件中的node ip 为Free node 的IP,
多个VC 间不能共享;
步骤2
执行创建vc2 命令。
$ gcadmin createvc create_vc2.xml
执行结果如下:
$ gcadmin createvc create_vc2.xml
parse config file create_vc2.xml
generate vc id: vc00002
add vc information to cluster
GBase 8a MPP Cluster 产品手册
3 集群安装升级与卸载
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
83
add nodes to vc
gcadmin create vc [vc2] successful
步骤3
编辑在vc2 上创建distribution 的配置文件gcChangeInfo_vc2.xml 内容。
示例:
$cd gcinstall
$cp gcChangeInfo.xml gcChangeInfo_vc2.xml
$vi /opt/gcinstall/gcChangeInfo_vc2.xml
步骤4
在安装目录下,执行创建distribution 命令。
执行结果如下:
$ gcadmin distribution gcChangeInfo_vc2.xml p 1 d 1 db_user user_name
db_pwd password vc vc2
gcadmin generate distribution ...
NOTE: node [192.168.146.22] is coordinator node, it shall be data node too
gcadmin generate distribution successful