1[kingbase@kesv9:/install]$ sh cluster_install.sh expand
2[CONFIG_CHECK] will deploy the cluster of
3[RUNNING] success connect to the target "192.168.6.98" ..... OK
4[RUNNING] success connect to "192.168.6.98" from current node by 'ssh' ..... OK
5[RUNNING] success connect to the target "192.168.6.87" ..... OK
6[RUNNING] success connect to "192.168.6.87" from current node by 'ssh' ..... OK
7[RUNNING] Primary node ip is 192.168.6.87 ...
8[RUNNING] Primary node ip is 192.168.6.87 ... OK
9[CONFIG_CHECK] set install_with_root=1
10[RUNNING] success connect to the target "192.168.6.98" ..... OK
11[RUNNING] success connect to "192.168.6.98" from current node by 'ssh' ..... OK
12[RUNNING] success connect to the target "192.168.6.87" ..... OK
13[RUNNING] success connect to "192.168.6.87" from current node by 'ssh' ..... OK
14[INSTALL] load config from cluster.....
15 [INFO] db_user=system
16 [INFO] db_port=54321
17 [INFO] use_scmd=1
18 [INFO] data_directory=/data
19 [INFO] scmd_port=8890
20 [INFO] recovery=standby
21 [INFO] use_check_disk=off
22 [INFO] trusted_servers=192.168.6.254
23 [INFO] reconnect_attempts=10
24 [INFO] reconnect_interval=6
25 [INFO] auto_cluster_recovery_level=1
26 [INFO] synchronous=quorum
27[INSTALL] load config from cluster.....OK
28[CONFIG_CHECK] file format is correct ... OK
29[CONFIG_CHECK] check database connection ...
30[CONFIG_CHECK] check database connection ... OK
31[CONFIG_CHECK] expand_ip[192.168.6.98] is not used in the cluster ...
32[CONFIG_CHECK] expand_ip[192.168.6.98] is not used in the cluster ...ok
33[CONFIG_CHECK] The localhost is expand_ip:[192.168.6.98] ...
34[CONFIG_CHECK] The localhost is expand_ip:[192.168.6.98] ...ok
35[CONFIG_CHECK] check node_id is in cluster ...
36[CONFIG_CHECK] check node_id is in cluster ...OK
37[RUNNING] check the db is running or not...
38[RUNNING] the db is not running on "192.168.6.98:54321" ..... OK
39[RUNNING] the install dir is not exist on "192.168.6.98" ..... OK
40[RUNNING] check the sys_securecmdd is running or not...
41[RUNNING] the sys_securecmdd is not running on "192.168.6.98:8890" ..... OK
42 [INFO] use_ssl=0
432025-02-26 17:27:36 [INFO] start to check system parameters on 192.168.6.98 ...
442025-02-26 17:27:36 [WARNING] [GSSAPIAuthentication] yes (should be: no) on 192.168.6.98
452025-02-26 17:27:36 [INFO] [UseDNS] is null on 192.168.6.98
462025-02-26 17:27:37 [INFO] [UsePAM] yes on 192.168.6.98
472025-02-26 17:27:37 [INFO] [ulimit.open files] 65536 on 192.168.6.98
482025-02-26 17:27:37 [INFO] [ulimit.open proc] 65536 on 192.168.6.98
492025-02-26 17:27:38 [INFO] [ulimit.core size] unlimited on 192.168.6.98
502025-02-26 17:27:38 [INFO] [ulimit.mem lock] 64 (less than 50000000) on 192.168.6.98
512025-02-26 17:27:38 [INFO] the value of [ulimit.mem lock] is wrong, now will change it on 192.168.6.98 ...
522025-02-26 17:27:38 [INFO] change ulimit.mem lock on 192.168.6.98 ...
532025-02-26 17:27:39 [INFO] change ulimit.mem lock on 192.168.6.98 ... Done
542025-02-26 17:27:39 [INFO] [ulimit.mem lock] 50000000 on 192.168.6.98
552025-02-26 17:27:40 [ERROR] [kernel.sem] 250 32000 100 128 (no less than: 5010 641280 5010 256) on 192.168.6.98
562025-02-26 17:27:40 [INFO] the value of [kernel.sem] is wrong, now will change it on 192.168.6.98 ...
572025-02-26 17:27:40 [INFO] change kernel.sem on 192.168.6.98 ...
582025-02-26 17:27:41 [INFO] change kernel.sem on 192.168.6.98 ... Done
592025-02-26 17:27:42 [INFO] [kernel.sem] 5010 641280 5010 256 on 192.168.6.98
602025-02-26 17:27:43 [INFO] [RemoveIPC] no on 192.168.6.98
612025-02-26 17:27:43 [INFO] [DefaultTasksAccounting] is null on 192.168.6.98
622025-02-26 17:27:43 [INFO] write file "/etc/udev/rules.d/kingbase.rules" on 192.168.6.98
632025-02-26 17:27:45 [INFO] [crontab] chmod /usr/bin/crontab ...
642025-02-26 17:27:45 [INFO] [crontab] chmod /usr/bin/crontab ... Done
652025-02-26 17:27:45 [INFO] [crontab access] OK
662025-02-26 17:27:46 [INFO] [cron.allow] add kingbase to cron.allow ...
672025-02-26 17:27:46 [INFO] [cron.allow] add kingbase to cron.allow ... Done
682025-02-26 17:27:47 [INFO] [crontab auth] crontab is accessible by kingbase now on 192.168.6.98
692025-02-26 17:27:47 [INFO] [SELINUX] disabled on 192.168.6.98
702025-02-26 17:27:48 [INFO] [firewall] down on 192.168.6.98
712025-02-26 17:27:48 [INFO] [The memory] OK on 192.168.6.98
722025-02-26 17:27:49 [INFO] [The hard disk] OK on 192.168.6.98
732025-02-26 17:27:49 [INFO] [ping] chmod /bin/ping ...
742025-02-26 17:27:49 [INFO] [ping] chmod /bin/ping ... Done
752025-02-26 17:27:50 [INFO] [ping access] OK
762025-02-26 17:27:50 [INFO] [/bin/cp --version] on 192.168.6.98 OK
772025-02-26 17:27:50 [INFO] [Virtual IP] Not configured on 192.168.6.98
78[INSTALL] create the install dir "/KingbaseES/V9/cluster/kingbase" on 192.168.6.98 ...
79[INSTALL] success to create the install dir "/KingbaseES/V9/cluster/kingbase" on "192.168.6.98" ..... OK
80[INSTALL] try to copy the zip package "/install/db.zip" to /KingbaseES/V9/cluster/kingbase of "192.168.6.98" .....
81[INSTALL] success to scp the zip package "/install/db.zip" /KingbaseES/V9/cluster/kingbase of to "192.168.6.98" ..... OK
82[INSTALL] decompress the "/KingbaseES/V9/cluster/kingbase" to "/KingbaseES/V9/cluster/kingbase" on 192.168.6.98
83[INSTALL] success to decompress the "/KingbaseES/V9/cluster/kingbase/db.zip" to "/KingbaseES/V9/cluster/kingbase" on "192.168.6.98"..... OK
84[INSTALL] check license_file "default"
85[INSTALL] success to access license_file on 192.168.6.98: /KingbaseES/V9/cluster/kingbase/bin/license.dat
86[RUNNING] config sys_securecmdd and start it ...
87[RUNNING] config the sys_securecmdd port to 8890 ...
88[RUNNING] success to config the sys_securecmdd port on 192.168.6.98 ... OK
89successfully initialized the sys_securecmdd, please use "/KingbaseES/V9/cluster/kingbase/bin/sys_HAscmdd.sh start" to start the sys_securecmdd
90[RUNNING] success to config sys_securecmdd on 192.168.6.98 ... OK
91Created symlink /etc/systemd/system/multi-user.target.wants/securecmdd.service → /etc/systemd/system/securecmdd.service.
92[RUNNING] success to start sys_securecmdd on 192.168.6.98 ... OK
93[INSTALL] success to access file: /KingbaseES/V9/cluster/kingbase/etc/all_nodes_tools.conf
94[INSTALL] success to scp the /KingbaseES/V9/cluster/kingbase/etc/repmgr.conf from 192.168.6.87 to "192.168.6.98"..... ok
95[INSTALL] success to scp the ~/.encpwd from 192.168.6.87 to "192.168.6.98"..... ok
96[INSTALL] success to scp /KingbaseES/V9/cluster/kingbase/etc/all_nodes_tools.conf from "192.168.6.87" to "192.168.6.98" ...ok
97[INSTALL] success to chmod 600 the ~/.encpwd on 192.168.6.98..... ok
98 [INFO] parameter_name=node_id
99 [INFO] parameter_values='3'
100 [INFO] [parameter_name] para_exist=1
101 [INFO] sed -i "/[#]*node_id[ ]*=/cnode_id='3'" /KingbaseES/V9/cluster/kingbase/etc/repmgr.conf
102 [INFO] parameter_name=node_name
103 [INFO] parameter_values='node3'
104 [INFO] [parameter_name] para_exist=1
105 [INFO] sed -i "/[#]*node_name[ ]*=/cnode_name='node3'" /KingbaseES/V9/cluster/kingbase/etc/repmgr.conf
106 [INFO] parameter_name=conninfo
107 [INFO] parameter_values='host
108 [INFO] [parameter_name] para_exist=1
109 [INFO] sed -i "/[#]*conninfo[ ]*=/cconninfo='host=192.168.6.98 user=esrep dbname=esrep port=54321 connect_timeout=10 keepalives=1 keepalives_idle=2 keepalives_interval=2 keepalives_count=3 tcp_user_timeout=9000'" /KingbaseES/V9/cluster/kingbase/etc/repmgr.conf
110 [INFO] parameter_name=ping_path
111 [INFO] parameter_values='/bin'
112 [INFO] [parameter_name] para_exist=1
113 [INFO] sed -i "/[#]*ping_path[ ]*=/cping_path='/bin'" /KingbaseES/V9/cluster/kingbase/etc/repmgr.conf
114[RUNNING] standby clone ...
115[WARNING] following problems with command line parameters detected:
116 -D/--sysdata will be ignored if a repmgr configuration file is provided
117[NOTICE] destination directory "/data" provided
118[INFO] connecting to source node
119[DETAIL] connection string is: host=192.168.6.87 user=esrep port=54321 dbname=esrep
120[DETAIL] current installation size is 102 MB
121[NOTICE] checking for available walsenders on the source node (2 required)
122[NOTICE] checking replication connections can be made to the source server (2 required)
123[INFO] checking and correcting permissions on existing directory "/data"
124[INFO] creating replication slot as user "esrep"
125[NOTICE] starting backup (using sys_basebackup)...
126[INFO] executing:
127 /KingbaseES/V9/cluster/kingbase/bin/sys_basebackup -l "repmgr base backup" -D /data -h 192.168.6.87 -p 54321 -U esrep -c fast -X stream -S repmgr_slot_3
128[NOTICE] standby clone (using sys_basebackup) complete
129[NOTICE] you can now start your Kingbase server
130[HINT] for example: sys_ctl -D /data start
131[HINT] after starting the server, you need to register this standby with "repmgr standby register"
132[RUNNING] standby clone ...OK
133[RUNNING] db start ...
134waiting for server to start.... done
135server started
136[RUNNING] db start ...OK
137[INFO] connecting to local node "node3" (ID: 3)
138[INFO] connecting to primary database
139[WARNING] --upstream-node-id not supplied, assuming upstream node is primary (node ID: 1)
140[INFO] standby registration complete
141[NOTICE] standby node "node3" (ID: 3) successfully registered
1422025-02-26 17:28:24 begin to start DB on "[localhost]".
1432025-02-26 17:28:25 DB on "[localhost]" already started, connect to check it.
1442025-02-26 17:28:26 DB on "[localhost]" start success.
1452025-02-26 17:28:26 Ready to start local kbha daemon and repmgrd daemon ...
1462025-02-26 17:28:26 begin to start repmgrd on "[localhost]".
147[2025-02-26 17:28:27] [NOTICE] using provided configuration file "/KingbaseES/V9/cluster/kingbase/bin/../etc/repmgr.conf"
148[2025-02-26 17:28:27] [INFO] creating directory "/KingbaseES/V9/cluster/kingbase/log"...
149[2025-02-26 17:28:27] [NOTICE] redirecting logging output to "/KingbaseES/V9/cluster/kingbase/log/hamgr.log"
150
1512025-02-26 17:28:29 repmgrd on "[localhost]" start success.
152[2025-02-26 17:28:32] [NOTICE] redirecting logging output to "/KingbaseES/V9/cluster/kingbase/log/kbha.log"
153
1542025-02-26 17:28:34 Done.
155 ID | Name | Role | Status | Upstream | Location | Priority | Timeline | LSN_Lag | Connection string
156----+-------+---------+-----------+----------+----------+----------+----------+---------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
157 1 | node1 | primary | * running | | default | 100 | 1 | | host=192.168.6.87 user=esrep dbname=esrep port=54321 connect_timeout=10 keepalives=1 keepalives_idle=2 keepalives_interval=2 keepalives_count=3 tcp_user_timeout=9000
158 2 | node2 | standby | running | node1 | default | 100 | 1 | 0 bytes | host=192.168.6.88 user=esrep dbname=esrep port=54321 connect_timeout=10 keepalives=1 keepalives_idle=2 keepalives_interval=2 keepalives_count=3 tcp_user_timeout=9000
159 3 | node3 | standby | running | node1 | default | 100 | 1 | 0 bytes | host=192.168.6.98 user=esrep dbname=esrep port=54321 connect_timeout=10 keepalives=1 keepalives_idle=2 keepalives_interval=2 keepalives_count=3 tcp_user_timeout=9000
160[RUNNING] query archive command at 192.168.6.87 ...
161[RUNNING] current cluster not config sys_rman,return.