[root@kesrwc01 ~]# cd /install/ [root@kesrwc01 install]# sh trust_cluster.sh [INFO] set password-free between root and kingbase Generating public/private rsa key pair. ... ... ...
## 过程中根据提示输入密码即可 root@192.168.6.88's password: id_rsa 100% 2602 167.8KB/s 00:00 id_rsa.pub 100% 567 70.4KB/s 00:00 authorized_keys 100% 567 74.1KB/s 00:00 known_hosts ... ... ... connect to "192.168.6.87" from current node by 'ssh' kingbase:0..... OK connect to "192.168.6.87" from current node by 'ssh' root:0..... OK connect to "192.168.6.88" from "192.168.6.87" by 'ssh' kingbase->kingbase:0 .... OK connect to "192.168.6.88" from "192.168.6.87" by 'ssh' root->root:0 root->kingbase:0 kingbase->root:0.... OK connect to "192.168.6.88" from current node by 'ssh' kingbase:0..... OK connect to "192.168.6.88" from current node by 'ssh' root:0..... OK connect to "192.168.6.87" from "192.168.6.88" by 'ssh' kingbase->kingbase:0 .... OK connect to "192.168.6.87" from "192.168.6.88" by 'ssh' root->root:0 root->kingbase:0 kingbase->root:0.... OK check ssh connection success!
[kingbase@kesrwc01 ~]$ cd /install/ [kingbase@kesrwc01 install]$ sh cluster_install.sh [CONFIG_CHECK] will deploy the cluster of DG [CONFIG_CHECK] file format is correct ... OK [CONFIG_CHECK] encoding: UTF8 OK [CONFIG_CHECK] locale: zh_CN.UTF-8 OK [CONFIG_CHECK] the number of license_num matches the length of all_ip or the number of license_num is 1 ... OK [RUNNING] check if the host can be reached from current node and between all nodes by ssh ... [RUNNING] success connect to "192.168.6.87" from current node by 'ssh' ... OK [RUNNING] success connect to "192.168.6.87" from "192.168.6.87" by 'ssh' ... OK [RUNNING] success connect to "192.168.6.88" from "192.168.6.87" by 'ssh' ... OK [RUNNING] success connect to "192.168.6.88" from current node by 'ssh' ... OK [RUNNING] success connect to "192.168.6.87" from "192.168.6.88" by 'ssh' ... OK [RUNNING] success connect to "192.168.6.88" from "192.168.6.88" by 'ssh' ... OK [RUNNING] chmod /bin/ping ... [RUNNING] chmod /bin/ping ... Done [RUNNING] ping access rights OK [RUNNING] check the db is running or not... [RUNNING] the db is not running on "192.168.6.87:54321" ..... OK [RUNNING] the db is not running on "192.168.6.88:54321" ..... OK [RUNNING] check the sys_securecmdd is running or not... [RUNNING] the sys_securecmdd is not running on "192.168.6.87:8890" ..... OK [RUNNING] the sys_securecmdd is not running on "192.168.6.88:8890" ..... OK [RUNNING] check if the install dir (create dir and check it's owner/permission) ... [RUNNING] check if the install dir (create dir and check it's owner/permission) on "192.168.6.87" ... OK [RUNNING] check if the install dir (create dir and check it's owner/permission) on "192.168.6.88" ... OK [RUNNING] check if the dir "/KingbaseES/V9/cluster/kingbase" is already exist ... [RUNNING] the dir "/KingbaseES/V9/cluster/kingbase" is not exist on "192.168.6.87" ..... OK [RUNNING] the dir "/KingbaseES/V9/cluster/kingbase" is not exist on "192.168.6.88" ..... OK [RUNNING] check the data directory (create it and check whether it is empty) ... [RUNNING] when use_exist_data=0, create the empty data directory on "192.168.6.87" ..... OK [RUNNING] when use_exist_data=0, create the empty data directory on "192.168.6.88" ..... OK 2025-02-08 06:58:14 [INFO] start to check system parameters on 192.168.6.87 ... 2025-02-08 06:58:14 [WARNING] [GSSAPIAuthentication] yes (should be: no) on 192.168.6.87 2025-02-08 06:58:15 [INFO] [UseDNS] is null on 192.168.6.87 2025-02-08 06:58:15 [INFO] [UsePAM] yes on 192.168.6.87 2025-02-08 06:58:15 [INFO] [ulimit.open files] 655360 on 192.168.6.87 2025-02-08 06:58:16 [INFO] [ulimit.open proc] 655360 on 192.168.6.87 2025-02-08 06:58:16 [INFO] [ulimit.core size] 655360 (no unlimited) on 192.168.6.87 2025-02-08 06:58:16 [INFO] the value of [ulimit.core size] is wrong, now will change it on 192.168.6.87 ... 2025-02-08 06:58:16 [INFO] change ulimit.core size on 192.168.6.87 ... 2025-02-08 06:58:17 [INFO] change ulimit.core size on 192.168.6.87 ... Done 2025-02-08 06:58:17 [INFO] [ulimit.core size] unlimited on 192.168.6.87 2025-02-08 06:58:17 [INFO] [ulimit.mem lock] 50000000 on 192.168.6.87 2025-02-08 06:58:19 [INFO] [kernel.sem] 5010 641280 5010 256 on 192.168.6.87 2025-02-08 06:58:19 [INFO] [RemoveIPC] no on 192.168.6.87 2025-02-08 06:58:19 [INFO] [DefaultTasksAccounting] no on 192.168.6.87 2025-02-08 06:58:20 [INFO] write file "/etc/udev/rules.d/kingbase.rules" on 192.168.6.87 2025-02-08 06:58:21 [INFO] [crontab] chmod /usr/bin/crontab ... 2025-02-08 06:58:22 [INFO] [crontab] chmod /usr/bin/crontab ... Done 2025-02-08 06:58:22 [INFO] [crontab access] OK 2025-02-08 06:58:23 [INFO] [cron.allow] add kingbase to cron.allow ... 2025-02-08 06:58:23 [INFO] [cron.allow] add kingbase to cron.allow ... Done 2025-02-08 06:58:24 [INFO] [crontab auth] crontab is accessible by kingbase now on 192.168.6.87 2025-02-08 06:58:24 [INFO] [SELINUX] disabled on 192.168.6.87 2025-02-08 06:58:25 [INFO] [firewall] down on 192.168.6.87 2025-02-08 06:58:26 [INFO] [The memory] OK on 192.168.6.87 2025-02-08 06:58:26 [INFO] [The hard disk] OK on 192.168.6.87 2025-02-08 06:58:26 [INFO] [ping] chmod /bin/ping ... 2025-02-08 06:58:27 [INFO] [ping] chmod /bin/ping ... Done 2025-02-08 06:58:27 [INFO] [ping access] OK 2025-02-08 06:58:27 [INFO] [/bin/cp --version] on 192.168.6.87 OK 2025-02-08 06:58:27 [INFO] [Virtual IP] Not configured on 192.168.6.87 2025-02-08 06:58:27 [INFO] start to check system parameters on 192.168.6.88 ... 2025-02-08 06:58:28 [WARNING] [GSSAPIAuthentication] yes (should be: no) on 192.168.6.88 2025-02-08 06:58:28 [INFO] [UseDNS] is null on 192.168.6.88 2025-02-08 06:58:28 [INFO] [UsePAM] yes on 192.168.6.88 2025-02-08 06:58:29 [INFO] [ulimit.open files] 655360 on 192.168.6.88 2025-02-08 06:58:29 [INFO] [ulimit.open proc] 655360 on 192.168.6.88 2025-02-08 06:58:29 [INFO] [ulimit.core size] 655360 (no unlimited) on 192.168.6.88 2025-02-08 06:58:29 [INFO] the value of [ulimit.core size] is wrong, now will change it on 192.168.6.88 ... 2025-02-08 06:58:29 [INFO] change ulimit.core size on 192.168.6.88 ... 2025-02-08 06:58:30 [INFO] change ulimit.core size on 192.168.6.88 ... Done 2025-02-08 06:58:30 [INFO] [ulimit.core size] unlimited on 192.168.6.88 2025-02-08 06:58:31 [INFO] [ulimit.mem lock] 50000000 on 192.168.6.88 2025-02-08 06:58:32 [INFO] [kernel.sem] 5010 641280 5010 256 on 192.168.6.88 2025-02-08 06:58:32 [INFO] [RemoveIPC] no on 192.168.6.88 2025-02-08 06:58:32 [INFO] [DefaultTasksAccounting] no on 192.168.6.88 2025-02-08 06:58:33 [INFO] write file "/etc/udev/rules.d/kingbase.rules" on 192.168.6.88 2025-02-08 06:58:34 [INFO] [crontab] chmod /usr/bin/crontab ... 2025-02-08 06:58:34 [INFO] [crontab] chmod /usr/bin/crontab ... Done 2025-02-08 06:58:35 [INFO] [crontab access] OK 2025-02-08 06:58:36 [INFO] [cron.allow] add kingbase to cron.allow ... 2025-02-08 06:58:36 [INFO] [cron.allow] add kingbase to cron.allow ... Done 2025-02-08 06:58:36 [INFO] [crontab auth] crontab is accessible by kingbase now on 192.168.6.88 2025-02-08 06:58:37 [INFO] [SELINUX] disabled on 192.168.6.88 2025-02-08 06:58:37 [INFO] [firewall] down on 192.168.6.88 2025-02-08 06:58:38 [INFO] [The memory] OK on 192.168.6.88 2025-02-08 06:58:38 [INFO] [The hard disk] OK on 192.168.6.88 2025-02-08 06:58:38 [INFO] [ping] chmod /bin/ping ... 2025-02-08 06:58:39 [INFO] [ping] chmod /bin/ping ... Done 2025-02-08 06:58:39 [INFO] [ping access] OK 2025-02-08 06:58:39 [INFO] [/bin/cp --version] on 192.168.6.88 OK 2025-02-08 06:58:39 [INFO] [Virtual IP] Not configured on 192.168.6.88 [INSTALL] create the install dir "/KingbaseES/V9/cluster/kingbase" on every host ... [INSTALL] success to create the install dir "/KingbaseES/V9/cluster/kingbase" on "192.168.6.87" ..... OK [INSTALL] success to create the install dir "/KingbaseES/V9/cluster/kingbase" on "192.168.6.88" ..... OK [INSTALL] success to access the zip_package "/install/db.zip" on "192.168.6.87" ..... OK [INSTALL] decompress the "/install/db.zip" to "/KingbaseES/V9/cluster/kingbase/__tmp_decompress__" [INSTALL] success to recreate the tmp dir "/KingbaseES/V9/cluster/kingbase/__tmp_decompress__" on "192.168.6.87" ..... OK [INSTALL] success to decompress the "/install/db.zip" to "/KingbaseES/V9/cluster/kingbase/__tmp_decompress__" on "192.168.6.87"..... OK [INSTALL] scp the dir "/KingbaseES/V9/cluster/kingbase/__tmp_decompress__" to "/KingbaseES/V9/cluster/kingbase" on all host [INSTALL] try to copy the install dir "/KingbaseES/V9/cluster/kingbase" to "192.168.6.87" ..... [INSTALL] success to scp the install dir "/KingbaseES/V9/cluster/kingbase" to "192.168.6.87" ..... OK [INSTALL] try to copy the install dir "/KingbaseES/V9/cluster/kingbase" to "192.168.6.88" ..... [INSTALL] success to scp the install dir "/KingbaseES/V9/cluster/kingbase" to "192.168.6.88" ..... OK [INSTALL] remove the dir "/KingbaseES/V9/cluster/kingbase/__tmp_decompress__" [INSTALL] change the auth of bin directory on 192.168.6.87 ... [INSTALL] change the auth of bin directory on 192.168.6.88 ... [INSTALL] check license_file ... [INSTALL] success to access license_file on 192.168.6.87: /KingbaseES/V9/cluster/kingbase/bin/license.dat [INSTALL] check license_file ... [INSTALL] success to access license_file on 192.168.6.88: /KingbaseES/V9/cluster/kingbase/bin/license.dat [INSTALL] set the archive_command to "exit 0" and the archive dir is NULL [INSTALL] the archive dir is NULL, not do archive ... [INSTALL] create the dir "etc" "log" on all host [RUNNING] config sys_securecmdd and start it ... [RUNNING] config the sys_securecmdd port to 8890 ... [RUNNING] success to config the sys_securecmdd port on 192.168.6.87 ... OK successfully initialized the sys_securecmdd, please use "/KingbaseES/V9/cluster/kingbase/bin/sys_HAscmdd.sh start" to start the sys_securecmdd [RUNNING] success to config sys_securecmdd on 192.168.6.87 ... OK Created symlink /etc/systemd/system/multi-user.target.wants/securecmdd.service → /etc/systemd/system/securecmdd.service. [RUNNING] success to start sys_securecmdd on 192.168.6.87 ... OK [RUNNING] config sys_securecmdd and start it ... [RUNNING] config the sys_securecmdd port to 8890 ... [RUNNING] success to config the sys_securecmdd port on 192.168.6.88 ... OK successfully initialized the sys_securecmdd, please use "/KingbaseES/V9/cluster/kingbase/bin/sys_HAscmdd.sh start" to start the sys_securecmdd [RUNNING] success to config sys_securecmdd on 192.168.6.88 ... OK Created symlink /etc/systemd/system/multi-user.target.wants/securecmdd.service → /etc/systemd/system/securecmdd.service. [RUNNING] success to start sys_securecmdd on 192.168.6.88 ... OK [RUNNING] check if the host can be reached between all nodes by scmd ... [RUNNING] success connect to "192.168.6.87" from "192.168.6.87" by '/KingbaseES/V9/cluster/kingbase/bin/sys_securecmd' ... OK [RUNNING] success connect to "192.168.6.88" from "192.168.6.87" by '/KingbaseES/V9/cluster/kingbase/bin/sys_securecmd' ... OK [RUNNING] success connect to "192.168.6.87" from "192.168.6.88" by '/KingbaseES/V9/cluster/kingbase/bin/sys_securecmd' ... OK [RUNNING] success connect to "192.168.6.88" from "192.168.6.88" by '/KingbaseES/V9/cluster/kingbase/bin/sys_securecmd' ... OK [INSTALL] begin to init the database on "192.168.6.87" ... The database cluster will be initialized with locales COLLATE: zh_CN.UTF-8 CTYPE: zh_CN.UTF-8 MESSAGES: C MONETARY: zh_CN.UTF-8 NUMERIC: zh_CN.UTF-8 TIME: zh_CN.UTF-8 The files belonging to this database system will be owned by user "kingbase". This user must also own the server process. The default text search configuration will be set to "simple". The comparision of strings is case-sensitive. Data page checksums are enabled. initdb: could not find suitable text search configuration for locale "zh_CN.UTF-8" fixing permissions on existing directory /data ... ok creating subdirectories ... ok selecting dynamic shared memory implementation ... posix selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting default time zone ... Asia/Shanghai creating configuration files ... ok Begin setup encrypt device initializing the encrypt device ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok create security database ... ok load security database ... ok syncing data to disk ... ok Success. You can now start the database server using: /KingbaseES/V9/cluster/kingbase/bin/sys_ctl -D /data -l logfile start [INSTALL] end to init the database on "192.168.6.87" ... OK [INSTALL] wirte the kingbase.conf on "192.168.6.87" ... [INSTALL] wirte the kingbase.conf on "192.168.6.87" ... OK [INSTALL] wirte the es_rep.conf on "192.168.6.87" ... [INSTALL] wirte the es_rep.conf on "192.168.6.87" ... OK [INSTALL] wirte the sys_hba.conf on "192.168.6.87" ... [INSTALL] wirte the sys_hba.conf on "192.168.6.87" ... OK [INSTALL] wirte the .encpwd on every host [INSTALL] write the repmgr.conf on every host [INSTALL] write the repmgr.conf on "192.168.6.87" ... [INSTALL] write the repmgr.conf on "192.168.6.87" ... OK [INSTALL] write the repmgr.conf on "192.168.6.88" ... [INSTALL] write the repmgr.conf on "192.168.6.88" ... OK [INSTALL] start up the database on "192.168.6.87" ... [INSTALL] /KingbaseES/V9/cluster/kingbase/bin/sys_ctl -w -t 60 -l /KingbaseES/V9/cluster/kingbase/logfile -D /data start waiting for server to start.... done server started [INSTALL] start up the database on "192.168.6.87" ... OK [INSTALL] create the database "esrep" and user "esrep" for repmgr ... CREATE DATABASE CREATE ROLE GRANT GRANT ROLE [INSTALL] create the database "esrep" and user "esrep" for repmgr ... OK [INSTALL] register the primary on "192.168.6.87" ... [INFO] connecting to primary database... [NOTICE] attempting to install extension "repmgr" [NOTICE] "repmgr" extension successfully installed [NOTICE] primary node record (ID: 1) registered [INSTALL] register the primary on "192.168.6.87" ... OK [INSTALL] clone and start up the standby ... clone the standby on "192.168.6.88" ... /KingbaseES/V9/cluster/kingbase/bin/repmgr -h 192.168.6.87 -U esrep -d esrep -p 54321 --fast-checkpoint --upstream-node-id 1 standby clone [NOTICE] destination directory "/data" provided [INFO] connecting to source node [DETAIL] connection string is: host=192.168.6.87 user=esrep port=54321 dbname=esrep [DETAIL] current installation size is 87 MB [NOTICE] checking for available walsenders on the source node (2 required) [NOTICE] checking replication connections can be made to the source server (2 required) [INFO] checking and correcting permissions on existing directory "/data" [INFO] creating replication slot as user "esrep" [NOTICE] starting backup (using sys_basebackup)... [INFO] executing: /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_2 [NOTICE] standby clone (using sys_basebackup) complete [NOTICE] you can now start your Kingbase server [HINT] for example: sys_ctl -D /data start [HINT] after starting the server, you need to register this standby with "repmgr standby register" clone the standby on "192.168.6.88" ... OK start up the standby on "192.168.6.88" ... /KingbaseES/V9/cluster/kingbase/bin/sys_ctl -w -t 60 -l /KingbaseES/V9/cluster/kingbase/logfile -D /data start waiting for server to start.... done server started start up the standby on "192.168.6.88" ... OK register the standby on "192.168.6.88" ... [INFO] connecting to local node "node2" (ID: 2) [INFO] connecting to primary database [INFO] standby registration complete [NOTICE] standby node "node2" (ID: 2) successfully registered [INSTALL] register the standby on "192.168.6.88" ... OK [INSTALL] start up the whole cluster ... 2025-02-08 07:00:44 Ready to start all DB ... 2025-02-08 07:00:44 begin to start DB on "[192.168.6.87]". 2025-02-08 07:00:45 DB on "[192.168.6.87]" already started, connect to check it. 2025-02-08 07:00:47 DB on "[192.168.6.87]" start success. 2025-02-08 07:00:47 Try to ping trusted_servers on host 192.168.6.87 ... 2025-02-08 07:00:50 Try to ping trusted_servers on host 192.168.6.88 ... 2025-02-08 07:00:53 begin to start DB on "[192.168.6.88]". 2025-02-08 07:00:53 DB on "[192.168.6.88]" already started, connect to check it. 2025-02-08 07:00:55 DB on "[192.168.6.88]" start success. ID | Name | Role | Status | Upstream | Location | Priority | Timeline | LSN_Lag | Connection string ----+-------+---------+-----------+----------+----------+----------+----------+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------- 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 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 2025-02-08 07:00:55 The primary DB is started. 2025-02-08 07:00:55 begin to start repmgrd on "[192.168.6.87]". [2025-02-08 07:00:56] [NOTICE] using provided configuration file "/KingbaseES/V9/cluster/kingbase/bin/../etc/repmgr.conf" [2025-02-08 07:00:56] [NOTICE] redirecting logging output to "/KingbaseES/V9/cluster/kingbase/log/hamgr.log" 2025-02-08 07:00:58 repmgrd on "[192.168.6.87]" start success. 2025-02-08 07:00:58 begin to start repmgrd on "[192.168.6.88]". [2025-02-08 06:59:49] [NOTICE] using provided configuration file "/KingbaseES/V9/cluster/kingbase/bin/../etc/repmgr.conf" [2025-02-08 06:59:49] [NOTICE] redirecting logging output to "/KingbaseES/V9/cluster/kingbase/log/hamgr.log" 2025-02-08 07:01:01 repmgrd on "[192.168.6.88]" start success. ID | Name | Role | Status | Upstream | repmgrd | PID | Paused? | Upstream last seen ----+-------+---------+-----------+----------+---------+-------+---------+-------------------- 1 | node1 | primary | * running | | running | 60877 | no | n/a 2 | node2 | standby | running | node1 | running | 68396 | no | 1 second(s) ago [2025-02-08 07:01:04] [NOTICE] redirecting logging output to "/KingbaseES/V9/cluster/kingbase/log/kbha.log" [2025-02-08 06:59:59] [NOTICE] redirecting logging output to "/KingbaseES/V9/cluster/kingbase/log/kbha.log" 2025-02-08 07:01:11 Done. [INSTALL] start up the whole cluster ... OK
[kingbase@kesrwc01:/home/kingbase]$ repmgr service status ID | Name | Role | Status | Upstream | repmgrd | PID | Paused? | Upstream last seen ----+-------+---------+-----------+----------+-------------+-----+---------+-------------------- 1 | node1 | primary | * running | | not running | n/a | n/a | n/a 2 | node2 | standby | running | node1 | not running | n/a | n/a | n/a
启停集群
在任意节点上执行一键关闭集群:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[kingbase@kesrwc01:/home/kingbase]$ sys_monitor.sh stop 2025-02-08 07:33:20 Ready to stop all DB ... 2025-02-08 07:33:32 begin to stop repmgrd on "[192.168.6.87]". 2025-02-08 07:33:33 repmgrd on "[192.168.6.87]" already stopped. 2025-02-08 07:33:33 begin to stop repmgrd on "[192.168.6.88]". 2025-02-08 07:33:34 repmgrd on "[192.168.6.88]" already stopped. 2025-02-08 07:33:34 begin to stop DB on "[192.168.6.88]". waiting for server to shut down.... done server stopped 2025-02-08 07:33:34 DB on "[192.168.6.88]" stop success. 2025-02-08 07:33:34 begin to stop DB on "[192.168.6.87]". waiting for server to shut down.... done server stopped 2025-02-08 07:33:35 DB on "[192.168.6.87]" stop success. 2025-02-08 07:33:36 Done.
[kingbase@kesrwc02:/home/kingbase]$ sys_monitor.sh start 2025-02-08 07:47:02 Ready to start all DB ... 2025-02-08 07:47:02 begin to start DB on "[192.168.6.88]". waiting for server to start..../bin/sh: /data/../logfile: Permission denied stopped waiting sys_ctl: could not start server Examine the log output. 2025-02-08 07:47:03 execute to start DB on "[192.168.6.88]" failed. 2025-02-08 07:47:04 Start DB on localhost(192.168.6.88) failed, will do nothing and exit.
[kingbase@kesrwc02:/KingbaseES/V9/cluster/kingbase/bin]$ sed -i 's/${data_directory}\/..\/logfile/${KINGBASE_HOME}\/logfile/' /KingbaseES/V9/cluster/kingbase/bin/sys_monitor.sh
[kingbase@kesrwc01:/home/kingbase]$ sys_monitor.sh start 2025-02-08 08:41:06 Ready to start all DB ... 2025-02-08 08:41:06 begin to start DB on "[192.168.6.87]". waiting for server to start.... done server started 2025-02-08 08:41:07 execute to start DB on "[192.168.6.87]" success, connect to check it. 2025-02-08 08:41:08 DB on "[192.168.6.87]" start success. 2025-02-08 08:41:08 Try to ping trusted_servers on host 192.168.6.87 ... 2025-02-08 08:41:11 Try to ping trusted_servers on host 192.168.6.88 ... 2025-02-08 08:41:14 begin to start DB on "[192.168.6.88]". waiting for server to start.... done server started 2025-02-08 08:41:16 execute to start DB on "[192.168.6.88]" success, connect to check it. 2025-02-08 08:41:17 DB on "[192.168.6.88]" start success. ID | Name | Role | Status | Upstream | Location | Priority | Timeline | LSN_Lag | Connection string ----+-------+---------+-----------+----------+----------+----------+----------+---------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------- 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 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 2025-02-08 08:41:17 The primary DB is started. 2025-02-08 08:41:17 begin to start repmgrd on "[192.168.6.87]". [2025-02-08 08:41:19] [NOTICE] using provided configuration file "/KingbaseES/V9/cluster/kingbase/bin/../etc/repmgr.conf" [2025-02-08 08:41:19] [NOTICE] redirecting logging output to "/KingbaseES/V9/cluster/kingbase/log/hamgr.log"
2025-02-08 08:41:21 repmgrd on "[192.168.6.87]" start success. 2025-02-08 08:41:21 begin to start repmgrd on "[192.168.6.88]". [2025-02-08 08:40:12] [NOTICE] using provided configuration file "/KingbaseES/V9/cluster/kingbase/bin/../etc/repmgr.conf" [2025-02-08 08:40:12] [NOTICE] redirecting logging output to "/KingbaseES/V9/cluster/kingbase/log/hamgr.log"
2025-02-08 08:41:24 repmgrd on "[192.168.6.88]" start success. ID | Name | Role | Status | Upstream | repmgrd | PID | Paused? | Upstream last seen ----+-------+---------+-----------+----------+---------+-------+---------+-------------------- 1 | node1 | primary | * running | | running | 70859 | no | n/a 2 | node2 | standby | running | node1 | running | 78011 | no | 1 second(s) ago [2025-02-08 08:41:30] [NOTICE] redirecting logging output to "/KingbaseES/V9/cluster/kingbase/log/kbha.log"
[2025-02-08 08:40:27] [NOTICE] redirecting logging output to "/KingbaseES/V9/cluster/kingbase/log/kbha.log"