安装报错
为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【GBase版本】:
GAUSS_VERSION=V5_S3.0.0B62
【操作系统】:
CentOS Linux release 7.9.2009 (Core)
【CPU】:
Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
【问题描述】*:
在虚拟机中搭建gbase测试环境,内存16GB,CPU 8核。300GB的本地磁盘。
在使用gbase用户执行./gha_ctl install -c gbase -p /home/gbase时报错如下:
{
"ret":-1,
"msg":"Failed to execute the command: source ~/.bashrc;gs_deploy --gha-cluster gbase --path /home/gbase/gbase_db/app -h 172.16.20.142,172.16.20.143,172.16.20.144. Error:\nRun cmd failed:cmd[ssh -E /dev/null -p 22 gbase@172.16.20.142 \"source ~/.bashrc;gs_deploy --gha-cluster gbase --path /home/gbase/gbase_db/app -h 172.16.20.142,172.16.20.143,172.16.20.144\"], msg[Parsing the configuration file.\nCheck preinstall on every node.\n[GAUSS-51400] : Failed to execute the command: python3 '/home/gbase/gbase_db/om/script/local/CheckPreInstall.py' -U gbase -t preinstall. Result:{'172.16.20.142': 'Failure', '172.16.20.143': 'Success', '172.16.20.144': 'Success'}.\nError:\n[FAILURE] 172.16.20.142:\n[SUCCESS] 172.16.20.143:\nSuccessfully checked GAUSS_ENV.\n[SUCCESS] 172.16.20.144:\nSuccessfully checked GAUSS_ENV.\n]"
}
但是在172.16.20.142上直接执行python3 '/home/gbase/gbase_db/om/script/local/CheckPreInstall.py' -U gbase -t preinstall会报Successfully checked GAUSS_ENV.
gbase.yml文件的内容如下:
gha_server:
- gha_server1:
host: 172.16.20.142
port: 20001
dcs:
- host: 172.16.20.144
port: 2379
- host: 172.16.20.142
port: 2379
- host: 172.16.20.143
port: 2379
gtm:
- gtm1:
host: 172.16.20.142
agent_host: 172.16.20.142
role: primary
port: 6666
agent_port: 8001
work_dir: /home/gbase/data/gtm/gtm1
- gtm2:
host: 172.16.20.143
agent_host: 172.16.20.143
role: standby
port: 6666
agent_port: 8002
work_dir: /home/gbase/data/gtm/gtm2
coordinator:
- cn1:
host: 172.16.20.143
agent_host: 172.16.20.143
role: primary
port: 5432
agent_port: 8003
work_dir: /home/gbase/data/coord/cn1
- cn2:
host: 172.16.20.142
agent_host: 172.16.20.142
role: standby
port: 5432
agent_port: 8004
work_dir: /home/gbase/data/coord/cn2
datanode:
- dn1:
- dn1_1:
host: 172.16.20.143
agent_host: 172.16.20.143
role: primary
port: 15433
agent_port: 8006
work_dir: /home/gbase/data/dn1/dn1_1
- dn1_2:
host: 172.16.20.142
agent_host: 172.16.20.142
role: standby
port: 15433
agent_port: 8006
work_dir: /home/gbase/data/dn1/dn1_2
- dn1_3:
host: 172.16.20.144
agent_host: 172.16.20.144
role: standby
port: 15433
agent_port: 8006
work_dir: /home/gbase/data/dn1/dn1_3
- dn2:
- dn2_1:
host: 172.16.20.143
agent_host: 172.16.20.143
role: primary
port: 20010
agent_port: 8007
work_dir: /home/gbase/data/dn2/dn2_1
# numa:
# cpu_node_bind: 0,1
# mem_node_bind: 0,1
- dn2_2:
host: 172.16.20.144
agent_host: 172.16.20.144
role: standby
port: 20010
agent_port: 8007
work_dir: /home/gbase/data/dn2/dn2_2
# numa:
# cpu_node_bind: 2
# mem_node_bind: 2
- dn2_3:
host: 172.16.20.142
agent_host: 172.16.20.142
role: standby
port: 20010
agent_port: 8007
work_dir: /home/gbase/data/dn2/dn2_3
# numa:
# cpu_node_bind: 3
# mem_node_bind: 3
env:
# cluster_type allowed values: multiple-nodes, single-inst, default is multiple-nodes
cluster_type: multiple-nodes
pkg_path: /home/gbase/inst
prefix: /home/gbase/gbase_db
version: V5_S3.0.0B62
user: gbase
port: 22
# constant:
# virtual_ip: 172.16.20.254/24
172.16.20.142节点上的/home/gbase/gbase_db/log/om/gs_install-2023-05-19_115131.log内容如下:
[2023-05-19 11:51:31.455773][15757][gs_install][DEBUG]:The /home/gbase/gbase_db/tmp/deploy_step/deploy_step.dat does not exits.
[2023-05-19 11:51:31.456151][15757][gs_install][DEBUG]:gs_deploy execution takes 7 steps in total
[2023-05-19 11:51:31.456346][15757][gs_install][LOG][Step1]:Parsing the configuration file.
[2023-05-19 11:51:31.479137][15757][gs_install][DEBUG][Step1]:Successfully parsed the configuration file.
[2023-05-19 11:51:31.509062][15757][gs_install][LOG][Step2]:Check preinstall on every node.
[2023-05-19 11:51:32.594826][15757][gs_install][ERROR]:[GAUSS-51400] : Failed to execute the command: python3 '/home/gbase/gbase_db/om/script/local/CheckPreInstall.py' -U gbase -t preins
tall. Result:{'172.16.20.142': 'Failure', '172.16.20.143': 'Success', '172.16.20.144': 'Success'}.
Error:
[FAILURE] 172.16.20.142:
[SUCCESS] 172.16.20.143:
Successfully checked GAUSS_ENV.
[SUCCESS] 172.16.20.144:
Successfully checked GAUSS_ENV.
评论

热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25052
- 42023-09-25浏览数:18521
- 52020-05-11浏览数:17526
您好,请确认一下142这台节点的互认是否配置正确,包括本机到本机,及本机到其他节点