#license版本下集群 --- 导入vc
一、规模限制为1个gnode节点,测试importvc
1.导入集群情况
#单节点单vc集群 10.10.***.***
[gbase@nhy-node-0 opt]$ gcadmin
CLUSTER STATE: ACTIVE
====================================
| GBASE GCWARE CLUSTER INFORMATION |
====================================
| NodeName | IpAddress | gcware |
------------------------------------
| gcware1 | 10.10.***.*** | OPEN |
------------------------------------
=====================================================
| GBASE COORDINATOR CLUSTER INFORMATION |
=====================================================
| NodeName | IpAddress | gcluster | DataState |
-----------------------------------------------------
| coordinator1 | 10.10.***.*** | OPEN | 0 |
-----------------------------------------------------
=============================================
| GBASE VIRTUAL CLUSTER INFORMATION |
=============================================
| VcName | DistributionId | comment |
---------------------------------------------
| vc1 | 1 | 13.23 |
---------------------------------------------
1 virtual cluster: vc1
1 coordinator node
0 free data node
#license情况
#规模限制为1个gnode节点,导入失败,报错gcadmin addnodes to cluster error: [57]->[GC_AIS_ERR_MAXNUM_ERR]
gbase> show license\G
*************************** 1. row ***************************
License type: Trial
Product name: GBase 8a
ESN: 01-V5VA43NH-CPXB6AR7-GF87B2UF-6HU46VAN-C
Vender: General Data Technology Co. Ltd.
Issue time: 2023-04-13 15:32:26
Expiration date: 2023-12-31
Auth days: 31
Number of nodes: 1
Storage capacity: 10GB
Used: 199GB
1 row in set (Elapsed: 00:00:04.55)
#被导入集群
#2节点集群的单个vc ***.***.***.*** ,***.***.***.***
[gbase@nhy-node-1 gcinstall]$ gcadmin
CLUSTER STATE: ACTIVE
====================================
| GBASE GCWARE CLUSTER INFORMATION |
====================================
| NodeName | IpAddress | gcware |
------------------------------------
| gcware1 | ***.***.***.*** | OPEN |
------------------------------------
| gcware2 | ***.***.***.*** | OPEN |
------------------------------------
======================================================
| GBASE COORDINATOR CLUSTER INFORMATION |
======================================================
| NodeName | IpAddress | gcluster | DataState |
------------------------------------------------------
| coordinator1 | ***.***.***.*** | OPEN | 0 |
------------------------------------------------------
| coordinator2 | ***.***.***.*** | OPEN | 0 |
------------------------------------------------------
=============================================
| GBASE VIRTUAL CLUSTER INFORMATION |
=============================================
| VcName | DistributionId | comment |
---------------------------------------------
| vc1 | 1 | comments |
---------------------------------------------
1 virtual cluster: vc1
2 coordinator node
0 free data node
#gccli
gbase> show license\G
*************************** 1. row ***************************
License type: Trial
Product name: GBase 8a
ESN: 02-7S24R8RE-NW7SJSYC-J6R@G9YS-GU4N9YR4-M
Vender: General Data Technology Co. Ltd.
Issue time: 2023-04-13 15:54:28
Expiration date: 2023-12-31
Auth days: 31
Number of nodes: 2
Storage capacity: 10GB
Used: 236GB
1 row in set (Elapsed: 00:00:00.59)
#修改importvc配置文件,执行导入
[gbase@nhy-node-0 gcinstall]$ gcadmin importvc 3.xml
gcadmin importvc vc ...
gcadmin importvc vc parse config file ...
gcadmin importvc vc parse config file success
gcadmin importvc vc [vc1] check parameters ...
gcadmin importvc get target root cluster Info ...
gcadmin importvc get target root cluster Info end
gcadmin importvc get source cluster VC Info ...
gcadmin importvc get source cluster VC Info end
gcadmin importvc check source VC Info ...
gcadmin importvc check source VC Info end
gcadmin importvc check conflict between source VC and target cluster ...
gcadmin importvc check conflict between source VC and target cluster end
gcadmin importvc save source VC into para ...
gcadmin importvc save source VC into para end
gcadmin importvc check target gcluster IP port dbuser password ...
gcadmin importvc check target gcluster IP port dbuser password end
gcadmin importvc check target os user password ...
gcadmin importvc check target os user password end
gcadmin importvc vc [vc1] check parameters success
gcadmin importvc create importvc directory at all coordinator nodes
gcadmin importvc generate and copy cluster_common to imported nodes begin
gcadmin importvc generate and copy cluster_common to imported nodes success
gcadmin importvc vc [vc1] wait write process complete
gcadmin importvc create temp table and get system info in source vc [vc1] ...
gcadmin importvc create temp table and get system info in source vc [vc1] success
gcadmin importvc create target vc [vc2] in target root cluster
gcadmin importvc generate vc id begin
gcadmin importvc generate vc id success
gcadmin importvc add vc information to cluster begin
gcadmin importvc add vc information to cluster success
gcadmin importvc add node information to vc begin
gcadmin addnodes to cluster error: [57]->[GC_AIS_ERR_MAXNUM_ERR]
gcadmin importvc add node information to vc failed
gcadmin importvc rollback begin
gcadmin importvc rollback target cluster begin
gcadmin importvc rollback target cluster success
gcadmin importvc rollback source cluster begin
gcadmin importvc rollback source cluster success
gcadmin importvc rollback source cluster cluster_common.cnf begin
gcadmin importvc rollback source cluster cluster_common.cnf success
gcadmin importvc rollback success
gcadmin import vc [vc1] failed
gcadmin import virtual cluster failed
二、规模限制为3,执行以上情况一中importvc 导入成功,licens容量计算正确
#10.10.***.***
gbase> show license\G
*************************** 1. row ***************************
License type: Trial
Product name: GBase 8a
ESN: 01-V5VA43NH-CPXB6AR7-GF87B2UF-6HU46VAN-C
Vender: General Data Technology Co. Ltd.
Issue time: 2023-04-13 15:32:26
Expiration date: 2023-12-31
Auth days: 31
Number of nodes: 3
Storage capacity: 10GB
Used: 199GB
1 row in set (Elapsed: 00:00:00.49)
#执行导入vc
[gbase@nhy-node-0 gcinstall]$ gcadmin importvc 3.xml
gcadmin importvc vc ...
gcadmin importvc vc parse config file ...
gcadmin importvc vc parse config file success
gcadmin importvc vc [vc1] check parameters ...
gcadmin importvc get target root cluster Info ...
gcadmin importvc get target root cluster Info end
gcadmin importvc get source cluster VC Info ...
gcadmin importvc get source cluster VC Info end
gcadmin importvc check source VC Info ...
gcadmin importvc check source VC Info end
gcadmin importvc check conflict between source VC and target cluster ...
gcadmin importvc check conflict between source VC and target cluster end
gcadmin importvc save source VC into para ...
gcadmin importvc save source VC into para end
gcadmin importvc check target gcluster IP port dbuser password ...
gcadmin importvc check target gcluster IP port dbuser password end
gcadmin importvc check target os user password ...
gcadmin importvc check target os user password end
gcadmin importvc vc [vc1] check parameters success
gcadmin importvc create importvc directory at all coordinator nodes
gcadmin importvc generate and copy cluster_common to imported nodes begin
gcadmin importvc generate and copy cluster_common to imported nodes success
gcadmin importvc vc [vc1] wait write process complete
gcadmin importvc create temp table and get system info in source vc [vc1] ...
gcadmin importvc create temp table and get system info in source vc [vc1] success
gcadmin importvc create target vc [vc2] in target root cluster
gcadmin importvc generate vc id begin
gcadmin importvc generate vc id success
gcadmin importvc add vc information to cluster begin
gcadmin importvc add vc information to cluster success
gcadmin importvc add node information to vc begin
gcadmin importvc add node information to vc success
gcadmin importvc add segments information to vc begin
gcadmin importvc add segments information to vc success
gcadmin importvc add distribution information to vc begin
gcadmin importvc add distribution information to vc success
gcadmin importvc add distribution pair information to vc begin
gcadmin importvc add distribution pair information to vc success
gcadmin importvc create target vc [vc2] successful
gcadmin importvc create target vc [vc2] in target root cluster success
gcadmin importvc sync metadata modify tid begin
gcadmin importvc sync metadata begin
gcadmin importvc build data packet begin
gcadmin importvc build data packet success
gcadmin importvc generate nodedatamap insert sql begin
gcadmin importvc generate nodedatamap insert sql success
gcadmin importvc copy data packet begin
gcadmin importvc copy data packet success
gcadmin importvc extract data packet begin
gcadmin importvc extract data packet success
gcadmin importvc modify table id begin
gcadmin importvc generate table id begin
gcadmin importvc generate table id success
gcadmin importvc modify table id vcid begin
gcadmin importvc modify table id vcid success
gcadmin importvc move meta packet and restart gcluster begin
gcadmin importvc move meta packet and restart gcluster success
gcadmin importvc modify table id success
gcadmin importvc sync metadata end
gcadmin importvc sync metadata modify tid success
gcadmin importvc update insert system info begin
gcadmin importvc get current taskId begin
gcadmin importvc get current taskId success
gcadmin importvc update temporary system information begin
gcadmin importvc update temporary system information success
gcadmin importvc reset current taskId begin
gcadmin importvc reset current taskId success
gcadmin importvc insert temporary system information into gbase begin
gcadmin importvc insert temporary system information into gbase success
gcadmin importvc update insert system info success
gcadmin importvc copy cluster_common and restart to imported nodes begin
gcadmin importvc copy cluster_common and restart to imported nodes success
gcadmin importvc finish clear begin
gcadmin importvc finish clear target cluster begin
gcadmin importvc finish clear target cluster success
gcadmin importvc finish clear source cluster begin
gcadmin importvc finish clear source cluster success
gcadmin importvc finish clear source cluster cluster_common.cnf backup file begin
gcadmin importvc finish clear source cluster cluster_common.cnf backup file success
gcadmin importvc finish clear success
gcadmin import vc [vc1] successful
#预期成功 容量增加 符合预期
gbase> show license\G
*************************** 1. row ***************************
License type: Trial
Product name: GBase 8a
ESN: 01-V5VA43NH-CPXB6AR7-GF87B2UF-6HU46VAN-C
Vender: General Data Technology Co. Ltd.
Issue time: 2023-04-13 16:54:02
Expiration date: 2023-12-31
Auth days: 31
Number of nodes: 3
Storage capacity: 10GB
Used: 436GB
1 row in set (Elapsed: 00:00:00.57)