-- root 用户执行 [root@mogdb-db1 ~] # cd /opt/software/mogdb/ [root@mogdb-db1 mogdb] # ptk install --assumeyes --pkg /opt/software/mogdb/MogDB-3.0.3-CentOS-x86_64.tar.gz --skip-check-distro --skip-check-os --file=/opt/software/mogdb/config.yaml # 执行过程及结果如下 INFO[2022-12-07T17:15:39.875] PTK Version: 0.5.5 release INFO[2022-12-07T17:15:39.875] load config from /opt/software/mogdb/config.yaml INFO[2022-12-07T17:15:40.700] skip check os INFO[2022-12-07T17:15:40.700] skip check distro INFO[2022-12-07T17:15:40.700] start check user ... INFO[2022-12-07T17:15:40.795] check user success INFO[2022-12-07T17:15:40.795] start check port ... INFO[2022-12-07T17:15:41.605] check port success INFO[2022-12-07T17:15:41.605] start prepare installation package ... INFO[2022-12-07T17:15:41.605] installation package is ready INFO[2022-12-07T17:15:41.606] start validate installation package ... INFO[2022-12-07T17:15:44.450] parsed kernel package name: MogDB-3.0.3 -CentOS -64bit.tar.gz INFO[2022-12-07T17:15:49.234] db product: MogDB, version: 3.0.3, number: 92.605, commit_id: 23ba838d INFO[2022-12-07T17:15:49.235] validate installation package success INFO[2022-12-07T17:15:49.235] start complete the configuration ... INFO[2022-12-07T17:15:49.235] complete the configuration success INFO[2022-12-07T17:15:49.236] start distribute installation package ... > upload MogDB-3.0.3 -CentOS -x ...: 132.81 MiB / 132.81 MiB [----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 22.06 MiB p/s 6.2s > upload MogDB-3.0.3 -CentOS -x ...: 132.81 MiB / 132.81 MiB [----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 22.06 MiB p/s 6.2s INFO[2022-12-07T17:15:55.578] distrubite packages success INFO[2022-12-07T17:15:55.578] start setup db ... INFO[2022-12-07T17:15:55.584] [192.168.17.112][omm] create os user omm, group dbgrp INFO[2022-12-07T17:15:55.628] [192.168.17.113][omm] create os user omm, group dbgrp INFO[2022-12-07T17:15:55.637] [192.168.17.139][omm] create os user omm, group dbgrp INFO[2022-12-07T17:15:55.805] [192.168.17.112][omm] set ulimit configs INFO[2022-12-07T17:15:55.810] [192.168.17.112][omm] set user omm profiles INFO[2022-12-07T17:15:55.939] [192.168.17.113][omm] set ulimit configs INFO[2022-12-07T17:15:55.984] [192.168.17.113][omm] set user omm profiles INFO[2022-12-07T17:15:55.987] [192.168.17.112][omm] check or set C library INFO[2022-12-07T17:15:56.030] [192.168.17.139][omm] set ulimit configs INFO[2022-12-07T17:15:56.060] [192.168.17.112][omm] make dir (s): /opt/mogdb/tool,/opt/mogdb/tool/ptk_tool/bin INFO[2022-12-07T17:15:56.124] [192.168.17.139][omm] set user omm profiles INFO[2022-12-07T17:15:56.696] [192.168.17.112][omm] decompress MogDB-3.0.3 -CentOS -x86_64.tar.gz to dir /opt/mogdb/tool INFO[2022-12-07T17:15:56.902] [192.168.17.113][omm] check or set C library INFO[2022-12-07T17:15:56.990] [192.168.17.113][omm] make dir (s): /opt/mogdb/tool,/opt/mogdb/tool/ptk_tool/bin INFO[2022-12-07T17:15:57.089] [192.168.17.139][omm] check or set C library INFO[2022-12-07T17:15:57.253] [192.168.17.139][omm] make dir (s): /opt/mogdb/tool,/opt/mogdb/tool/ptk_tool/bin INFO[2022-12-07T17:15:57.718] [192.168.17.113][omm] decompress MogDB-3.0.3 -CentOS -x86_64.tar.gz to dir /opt/mogdb/tool INFO[2022-12-07T17:15:58.067] [192.168.17.139][omm] decompress MogDB-3.0.3 -CentOS -x86_64.tar.gz to dir /opt/mogdb/tool INFO[2022-12-07T17:15:58.706] [192.168.17.112][omm] decompress * -om .tar.gz to dir /opt/mogdb/tool INFO[2022-12-07T17:15:59.498] [192.168.17.112][omm] try to fix psutil python lib WARN[2022-12-07T17:15:59.503] [192.168.17.112][omm] Not found python3.6 or 3.7, skip fix psutil dynamic lib, please install proper python and fix it manually or reinstall by ptk if you don't fix this, it will cause that gs_om and cm_ctl cannot run properly, but not ptk and database INFO[2022-12-07T17:15:59.503] [192.168.17.112][omm] write file /opt/mogdb/tool/ptk_tool/bin/README.md INFO[2022-12-07T17:15:59.526] [192.168.17.112][omm] write file /opt/mogdb/tool/ptk_tool/bin/pscp INFO[2022-12-07T17:15:59.550] [192.168.17.112][omm] write file /opt/mogdb/tool/ptk_tool/bin/pssh INFO[2022-12-07T17:15:59.571] [192.168.17.112][omm] write file /opt/mogdb/tool/ptk_tool/bin/task_pool.py INFO[2022-12-07T17:15:59.596] [192.168.17.112][omm] change /opt/mogdb/tool owner to omm INFO[2022-12-07T17:15:59.610] [192.168.17.112][omm] make dir (s): /opt/mogdb/app INFO[2022-12-07T17:15:59.842] [192.168.17.112][omm] decompress MogDB-3.0.3 -CentOS -64bit.tar.gz to dir /opt/mogdb/app INFO[2022-12-07T17:16:00.046] [192.168.17.139][omm] decompress * -om .tar.gz to dir /opt/mogdb/tool INFO[2022-12-07T17:16:00.061] [192.168.17.113][omm] decompress * -om .tar.gz to dir /opt/mogdb/tool INFO[2022-12-07T17:16:00.726] [192.168.17.139][omm] try to fix psutil python lib WARN[2022-12-07T17:16:00.784] [192.168.17.139][omm] Not found python3.6 or 3.7, skip fix psutil dynamic lib, please install proper python and fix it manually or reinstall by ptk if you don't fix this, it will cause that gs_om and cm_ctl cannot run properly, but not ptk and database INFO[2022-12-07T17:16:00.784] [192.168.17.139][omm] write file /opt/mogdb/tool/ptk_tool/bin/README.md INFO[2022-12-07T17:16:00.980] [192.168.17.139][omm] write file /opt/mogdb/tool/ptk_tool/bin/pscp INFO[2022-12-07T17:16:01.136] [192.168.17.113][omm] try to fix psutil python lib INFO[2022-12-07T17:16:01.194] [192.168.17.139][omm] write file /opt/mogdb/tool/ptk_tool/bin/pssh WARN[2022-12-07T17:16:01.203] [192.168.17.113][omm] Not found python3.6 or 3.7, skip fix psutil dynamic lib, please install proper python and fix it manually or reinstall by ptk if you don't fix this, it will cause that gs_om and cm_ctl cannot run properly, but not ptk and database INFO[2022-12-07T17:16:01.203] [192.168.17.113][omm] write file /opt/mogdb/tool/ptk_tool/bin/README.md INFO[2022-12-07T17:16:01.337] [192.168.17.139][omm] write file /opt/mogdb/tool/ptk_tool/bin/task_pool.py INFO[2022-12-07T17:16:01.435] [192.168.17.113][omm] write file /opt/mogdb/tool/ptk_tool/bin/pscp INFO[2022-12-07T17:16:01.479] [192.168.17.139][omm] change /opt/mogdb/tool owner to omm INFO[2022-12-07T17:16:01.534] [192.168.17.139][omm] make dir (s): /opt/mogdb/app INFO[2022-12-07T17:16:01.721] [192.168.17.113][omm] write file /opt/mogdb/tool/ptk_tool/bin/pssh INFO[2022-12-07T17:16:01.942] [192.168.17.139][omm] decompress MogDB-3.0.3 -CentOS -64bit.tar.gz to dir /opt/mogdb/app INFO[2022-12-07T17:16:02.053] [192.168.17.113][omm] write file /opt/mogdb/tool/ptk_tool/bin/task_pool.py INFO[2022-12-07T17:16:02.375] [192.168.17.113][omm] change /opt/mogdb/tool owner to omm INFO[2022-12-07T17:16:02.497] [192.168.17.113][omm] make dir (s): /opt/mogdb/app INFO[2022-12-07T17:16:03.059] [192.168.17.113][omm] decompress MogDB-3.0.3 -CentOS -64bit.tar.gz to dir /opt/mogdb/app INFO[2022-12-07T17:16:05.397] [192.168.17.112][omm] fix dynamic linker for gs_initdb INFO[2022-12-07T17:16:05.493] [192.168.17.112][omm] fix dynamic linker for mogdb INFO[2022-12-07T17:16:05.631] [192.168.17.112][omm] change /opt/mogdb/app owner to omm INFO[2022-12-07T17:16:05.661] [192.168.17.112][omm] make dir (s): /opt/mogdb/log/gs_profile,/opt/mogdb/log/pg_log,/opt/mogdb/log/pg_audit,/opt/mogdb/log/bin,/opt/mogdb/log/pg_log/dn_6001,/opt/mogdb/log/pg_audit/dn_6001 INFO[2022-12-07T17:16:06.749] [192.168.17.139][omm] fix dynamic linker for gs_initdb INFO[2022-12-07T17:16:06.970] [192.168.17.139][omm] fix dynamic linker for mogdb INFO[2022-12-07T17:16:07.202] [192.168.17.139][omm] change /opt/mogdb/app owner to omm INFO[2022-12-07T17:16:07.317] [192.168.17.139][omm] make dir (s): /opt/mogdb/log/gs_profile,/opt/mogdb/log/pg_log,/opt/mogdb/log/pg_audit,/opt/mogdb/log/bin,/opt/mogdb/log/pg_log/dn_6003,/opt/mogdb/log/pg_audit/dn_6003 INFO[2022-12-07T17:16:08.961] [192.168.17.112][omm] make dir (s): /opt/mogdb/tmp INFO[2022-12-07T17:16:09.068] [192.168.17.113][omm] fix dynamic linker for gs_initdb INFO[2022-12-07T17:16:09.229] [192.168.17.112][omm] save version to upgrade_version INFO[2022-12-07T17:16:09.330] [192.168.17.113][omm] fix dynamic linker for mogdb INFO[2022-12-07T17:16:09.381] [192.168.17.112][omm] create file cluster_manual_start INFO[2022-12-07T17:16:09.500] [192.168.17.112][omm] generate cluster_static_config file INFO[2022-12-07T17:16:09.516] [192.168.17.112][omm] change /opt/mogdb/app/bin/cluster_static_config owner to omm INFO[2022-12-07T17:16:09.523] [192.168.17.112][omm] make dir (s): /opt/mogdb/data INFO[2022-12-07T17:16:09.545] [192.168.17.113][omm] change /opt/mogdb/app owner to omm INFO[2022-12-07T17:16:09.653] [192.168.17.113][omm] make dir (s): /opt/mogdb/log/gs_profile,/opt/mogdb/log/pg_log,/opt/mogdb/log/pg_audit,/opt/mogdb/log/bin,/opt/mogdb/log/pg_log/dn_6002,/opt/mogdb/log/pg_audit/dn_6002 INFO[2022-12-07T17:16:09.782] [192.168.17.112][omm] change /opt/mogdb/data owner to omm INFO[2022-12-07T17:16:09.789] [192.168.17.112][omm] the database is initializing, please wait a few minutes INFO[2022-12-07T17:16:11.690] [192.168.17.139][omm] make dir (s): /opt/mogdb/tmp INFO[2022-12-07T17:16:11.954] [192.168.17.139][omm] save version to upgrade_version INFO[2022-12-07T17:16:12.182] [192.168.17.139][omm] create file cluster_manual_start INFO[2022-12-07T17:16:12.290] [192.168.17.139][omm] generate cluster_static_config file INFO[2022-12-07T17:16:12.346] [192.168.17.139][omm] change /opt/mogdb/app/bin/cluster_static_config owner to omm INFO[2022-12-07T17:16:12.391] [192.168.17.139][omm] make dir (s): /opt/mogdb/data INFO[2022-12-07T17:16:12.643] [192.168.17.139][omm] change /opt/mogdb/data owner to omm INFO[2022-12-07T17:16:12.699] [192.168.17.139][omm] the database is initializing, please wait a few minutes INFO[2022-12-07T17:16:14.099] [192.168.17.113][omm] make dir (s): /opt/mogdb/tmp INFO[2022-12-07T17:16:14.369] [192.168.17.113][omm] save version to upgrade_version INFO[2022-12-07T17:16:14.592] [192.168.17.113][omm] create file cluster_manual_start INFO[2022-12-07T17:16:14.700] [192.168.17.113][omm] generate cluster_static_config file INFO[2022-12-07T17:16:14.760] [192.168.17.113][omm] change /opt/mogdb/app/bin/cluster_static_config owner to omm INFO[2022-12-07T17:16:14.816] [192.168.17.113][omm] make dir (s): /opt/mogdb/data INFO[2022-12-07T17:16:15.123] [192.168.17.113][omm] change /opt/mogdb/data owner to omm INFO[2022-12-07T17:16:15.202] [192.168.17.113][omm] the database is initializing, please wait a few minutes INFO[2022-12-07T17:16:36.930] [192.168.17.112][omm] config postgresql.conf INFO[2022-12-07T17:16:37.162] [192.168.17.112][omm] config pg_hba.conf INFO[2022-12-07T17:16:40.917] [192.168.17.113][omm] config postgresql.conf INFO[2022-12-07T17:16:41.024] [192.168.17.139][omm] config postgresql.conf INFO[2022-12-07T17:16:41.089] [192.168.17.113][omm] config pg_hba.conf INFO[2022-12-07T17:16:41.219] [192.168.17.139][omm] config pg_hba.conf INFO[2022-12-07T17:16:41.453] setup db success INFO[2022-12-07T17:16:41.454] generate certification files INFO[2022-12-07T17:16:42.567] download certification files INFO[2022-12-07T17:16:42.684] upload certification files to (192.168.17.113,omm) INFO[2022-12-07T17:16:44.055] upload certification files to (192.168.17.139,omm) INFO[2022-12-07T17:16:44.996] certification files setup success INFO[2022-12-07T17:16:44.996] start build ssh trust ... INFO[2022-12-07T17:16:46.047] ssh trust build success INFO[2022-12-07T17:16:46.048] start launch db ... INFO[2022-12-07T17:16:46.048] [192.168.17.113][omm] start db by gs_ctl ... INFO[2022-12-07T17:16:46.048] [192.168.17.112][omm] start db by gs_ctl ... INFO[2022-12-07T17:16:46.048] [192.168.17.112][omm] the database is starting, please wait a few minutes INFO[2022-12-07T17:16:46.048] [192.168.17.139][omm] start db by gs_ctl ... INFO[2022-12-07T17:16:46.049] [192.168.17.139][omm] the database is starting, please wait a few minutes INFO[2022-12-07T17:16:46.048] [192.168.17.113][omm] the database is starting, please wait a few minutes INFO[2022-12-07T17:16:48.354] [192.168.17.112][omm] start db success INFO[2022-12-07T17:16:48.354] [192.168.17.112][omm] start alter db initial password ... INFO[2022-12-07T17:16:48.569] [192.168.17.112][omm] alter db password success INFO[2022-12-07T17:16:48.648] [192.168.17.113][omm] start db success INFO[2022-12-07T17:16:48.840] [192.168.17.139][omm] start db success INFO[2022-12-07T17:16:48.841] build standbys ... INFO[2022-12-07T17:16:48.841] [192.168.17.113][omm] start build db ... INFO[2022-12-07T17:16:48.841] [192.168.17.113][omm] the database is building from upstream, please wait a few minutes INFO[2022-12-07T17:17:01.595] [192.168.17.113][omm] build db success INFO[2022-12-07T17:17:01.595] standbys build success INFO[2022-12-07T17:17:01.595] build cascade standbys ... INFO[2022-12-07T17:17:01.595] [192.168.17.139][omm] start build db ... INFO[2022-12-07T17:17:01.595] [192.168.17.139][omm] the database is building from upstream, please wait a few minutes INFO[2022-12-07T17:17:15.634] [192.168.17.139][omm] build db success INFO[2022-12-07T17:17:15.634] cascade standbys build success INFO[2022-12-07T17:17:15.634] launch db success INFO[2022-12-07T17:17:15.634] clear temp dirs ... INFO[2022-12-07T17:17:15.730] clear temp dirs success INFO[2022-12-07T17:17:15.731] Time elapsed: 1m35s cluste_name | host | user | port | status | message ----------------+----------------+------+-------+---------------+---------- cluster_mogdb | 192.168.17.112 | omm | 27000 | start_success | success | 192.168.17.113 | omm | 27000 | start_success | success | 192.168.17.139 | omm | 27000 | start_success | success |