Upgrading GBase 8a from V86 to V953 via an Intermediate V952 Release
V86 of the China-domestically developed GBase 8a MPP database from GBASE is more than six years old, and as of 2024-01-24 it cannot be upgraded straight to V953. The supported path goes through V952 first. This post records a two-hop upgrade: V86 to V952, then V952 to V953.
Environment
A single-node 862Build43 cluster. gcadmin shows one coordinator and one data node, both at 10.0.2.181:
[root@anolios86-1 ~]# gcadmin CLUSTER STATE: ACTIVE CLUSTER MODE: NORMAL ================================================================= | GBASE COORDINATOR CLUSTER INFORMATION | ================================================================= | NodeName | IpAddress |gcware |gcluster |DataState | ----------------------------------------------------------------- | coordinator1 | 10.0.2.181 | OPEN | OPEN | 0 | ----------------------------------------------------------------- ============================================================= | GBASE DATA CLUSTER INFORMATION | ============================================================= |NodeName | IpAddress |gnode |syncserver |DataState | ------------------------------------------------------------- | node1 | 10.0.2.181 | OPEN | OPEN | 0 | ------------------------------------------------------------- [root@anolios86-1 ~]# Stage 1: V86 to V952
The intermediate build is 9.5.2.43.5.
Stop the V86 cluster
[root@anolios86-1 ~]# service gcware stop Stopping GCMonit success! Signaling GCRECOVER (gcrecover) to terminate: [ OK ] Waiting for gcrecover services to unload:... [ OK ] Signaling GCSYNC (gc_sync_server) to terminate: [ OK ] Waiting for gc_sync_server services to unload: [ OK ] Signaling GCLUSTERD to terminate: [ OK ] Waiting for gclusterd services to unload:.......... [ OK ] Signaling GBASED to terminate: [ OK ] Waiting for gbased services to unload:... [ OK ] Signaling GCWARE (gcware) to terminate: [ OK ] Waiting for gcware services to unload:. [ OK ] [root@anolios86-1 ~] Write the V952 upgrade configuration
demo.options for this hop keeps the original coordinate node IDs:
[root@anolios86-1 gcinstall_95243.5]# cat demo.options installPrefix= /opt coordinateHost = 10.0.2.181 coordinateHostNodeID = 234,235,237 dataHost = 10.0.2.181 #existCoordinateHost = #existDataHost = dbaUser = gbase dbaGroup = gbase dbaPwd = 'gbase1234' rootPwd = '864263' #dbRootPwd = '' #rootPwdFile = rootPwd.json [root@anolios86-1 gcinstall_95243.5]# Run the upgrade and verify
[gbase@anolios86-1 gcinstall_95243.5]$ ./gcinstall.py -U --silent=demo.options ********************************************************************************* Thank you for choosing GBase product! ... Do you accept the above licence agreement ([Y,y]/[N,n])? y ... 10.0.2.181 Upgrade gcluster. 10.0.2.181 install cluster on host 10.0.2.181 successfully. Starting all gcluster nodes... Init Cluster Status Monit Plugin... upgrade Successfully. [gbase@anolios86-1 gcinstall_95243.5]$ source /home/gbase/.gbase_profile gbase> select version(); +----------------------+ | version() | +----------------------+ | 9.5.2.43.5124aede18e | +----------------------+ 1 row in set (Elapsed: 00:00:00.00) gbase> select * from testdb.td; +---------------------+ | d | +---------------------+ | 2024-01-04 10:47:49 | +---------------------+ 1 row in set (Elapsed: 00:00:00.05) The existing user table is still readable after the hop.
Stage 2: V952 to V953
Stopping, configuring, upgrading and verifying are shown together here.
[gbase@anolios86-1 gcinstall_95243.5]$ gcluster_services all stop Stopping GCMonit success! Stopping gcrecover : [ OK ] Stopping gcluster : [ OK ] Stopping gcware : [ OK ] Stopping gbase : [ OK ] Stopping syncserver : [ OK ] The V953 demo.options adds gcwareHost / gcwareHostNodeID and moves the original IDs there, while coordinateHostNodeID becomes the new single ID:
[gbase@anolios86-1 gcinstall_95328.12]$ cat demo.options installPrefix= /opt coordinateHost = 10.0.2.181 coordinateHostNodeID = 181 dataHost = 10.0.2.181 #existCoordinateHost = #existDataHost = #existGcwareHost= gcwareHost = 10.0.2.181 gcwareHostNodeID = 234,235,237 dbaUser = gbase dbaGroup = gbase dbaPwd = 'gbase1234' rootPwd = '864263' #dbRootPwd = '' #rootPwdFile = rootPwd.json #characterSet = utf8 #sshPort = 22 [gbase@anolios86-1 gcinstall_95328.12]$ ./gcinstall.py --silent=demo.options -U --generalDBUser=root --generalDBPwd='' ... Refreshing snapshot,please wait... 240124 09:44:10 [GCWARE] connect to 10.0.2.181 error:connect 10.0.2.181:5919 error, Connection refused 240124 09:44:11 [GCWARE] connect to 10.0.2.181 error:connect 10.0.2.181:5919 error, Connection refused 240124 09:44:12 [GCWARE] gbccs_service_connect fail to get process id 240124 09:44:12 [GCWARE] connect to 10.0.2.181 error:connect 10.0.2.181:5919 error, Connection refused 240124 09:44:13 [GCWARE] gbccs_service_connect fail to get process id 240124 09:44:13 [GCWARE] connect to 10.0.2.181 error:connect 10.0.2.181:5919 error, Connection refused 240124 09:44:14 [GCWARE] gbccs_service_connect fail to get process id Connection gcware successfully,get all nodes status end. Refresh snapshot successfully. Environmental Checking on cluster nodes. checking rpms ... checking Cgconfig service parse extendCfg.xml CoordinateHost: 10.0.2.181 DataHost: 10.0.2.181 GcwareHost: 10.0.2.181 Are you sure to upgrade GCluster on these nodes ([Y,y]/[N,n])? 10.0.2.181 install gcware and cluster on host 10.0.2.181 successfully. Starting all gcluster nodes ... check database user and password ... check database user and password successful Init Cluster Status Monit Plugin... upgrade Successfully. The Connection refused lines are transient: the installer is waiting for gcware to come back up, and it retries until Connection gcware successfully appears. Final verification:
gbase> select version(); +-----------------------+ | version() | +-----------------------+ | 9.5.3.28.12509af275af | +-----------------------+ 1 row in set (Elapsed: 00:00:00.00) gbase> select * from testdb.td; +---------------------+ | d | +---------------------+ | 2024-01-04 10:47:49 | +---------------------+ 1 row in set (Elapsed: 00:00:00.02) Going forward, the intermediate V952 build should be 9.5.2.41 or newer, and a future release may allow a direct V86-to-V953 jump. Keep a rollback image of the V86 node before starting, and verify select version() plus a real table query after each hop — a gbase cluster that only reports ACTIVE in gcadmin has not proven that the database survived the metadata changes. When a gbase deployment spans several major versions, plan that extra hop into the maintenance window from the start.