暂无图片
opengauss 主备搭建卡住,没有输出,高手看过来,着急用
我来答
暂无图片 匿名用户
opengauss 主备搭建卡住,没有输出,高手看过来,着急用

版本5.0 

[root@gbase8c_10 script]# ./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/cluster_config.xml
Parsing the configuration file.
Successfully parsed the configuration file.
Installing the tools on the local node.
Successfully installed the tools on the local node.
Are you sure you want to create trust for root (yes/no)?yes
Please enter password for root
Password:

 下面是安装日志 (root用户的互信,无论是否已经做好了,都出现卡在---写远程主机名时候,)

第一次没做root用户的互信,卡在---写远程主机名时候 

第2次做了root用户的互信,卡在---写远程主机名时候


more gs_preinstall-2025-10-21_143612.log

[2025-10-21 14:36:46.585952][14805][gs_sshexkey][DEBUG]:gs_sshexkey execution takes 11 steps in total
[2025-10-21 14:36:46.586092][14805][gs_sshexkey(getAllHosts:428)][gs_sshexkey][DEBUG][Step1]:Get hostnames for all nodes.
[2025-10-21 14:36:46.993909][14805][gs_sshexkey(getAllHosts:454)][gs_sshexkey][DEBUG][Step1]:Successfully get hostnames fo
r all nodes.
[2025-10-21 14:36:46.994038][14805][gs_sshexkey(_log:1396)][gs_sshexkey][LOG][Step2]:Checking network information.
[2025-10-21 14:36:51.043692][14805][gs_sshexkey][LOG]:All nodes in the network are Normal.
[2025-10-21 14:36:51.044138][14805][gs_sshexkey(_log:1396)][gs_sshexkey][LOG][Step2]:Successfully checked network informat
ion.
[2025-10-21 14:36:51.044489][14805][gs_sshexkey(_debug:1407)][gs_sshexkey][DEBUG][Step3]:Write local hostname and Ip into
/etc/hosts.
[2025-10-21 14:36:51.078602][14805][gs_sshexkey(_debug:1407)][gs_sshexkey][DEBUG][Step3]:Successfully write local hostname
and Ip into /etc/hosts.
[2025-10-21 14:36:51.083948][14805][gs_sshexkey(_debug:1407)][gs_sshexkey][DEBUG][Step4]:Write remote hostname and Ip into
/etc/hosts.


下面是配置文件

[root@gbase8c_10 om]# more /opt/software/openGauss/cluster_config.xml
<?xml version="1.0" encoding="utf-8"?>
<ROOT>
<CLUSTER>
<PARAM name="clusterName" value="cluster_dxj" />
<PARAM name="nodeNames" value="gbase8c_10,gbase8c_11"/>
<PARAM name="gaussdbAppPath" value="/opt/openGauss/app" />
<PARAM name="gaussdbLogPath" value="/opt/openGauss/log" />
<PARAM name="tmpMppdbPath" value="/opt/openGauss/tmp"/>
<PARAM name="gaussdbToolPath" value="/opt/openGauss/om" />
<PARAM name="corePath" value="/opt/openGauss/corefile"/>
<PARAM name="backIp1s" value="192.168.56.242,192.168.56.243"/>
</CLUSTER>

<DEVICELIST>
<DEVICE sn="gbase8c_10">
<PARAM name="name" value="gbase8c_10"/>
<PARAM name="azName" value="AZ1"/>
<PARAM name="azPriority" value="1"/>
<PARAM name="backIp1" value="192.168.56.242"/>
<PARAM name="sshIp1" value="192.168.56.242"/>
<!-- dn -->
<PARAM name="dataNum" value="1"/>
<PARAM name="dataPortBase" value="15400"/>
<PARAM name="dataNode1" value="/opt/openGauss/data/dn,gbase8c_11,/opt/openGauss/data/dn"/>
<PARAM name="dataNode1_syncNum" value="0"/>
</DEVICE>
<DEVICE sn="gbase8c_11">
<PARAM name="name" value="gbase8c_11"/>
<PARAM name="azName" value="AZ1"/>
<PARAM name="azPriority" value="1"/>
<PARAM name="backIp1" value="192.168.56.243"/>
<PARAM name="sshIp1" value="192.168.56.243"/>
</DEVICE>
</DEVICELIST>
</ROOT>

我来答
添加附件
收藏
问题补充
6条回答
默认
最新
手
手机用户5519

顶下

暂无图片 评论
暂无图片 有用 2
赵勇

看看本地和远程主机中的 /etc/hosts中的内容是什么?

暂无图片 评论
暂无图片 有用 1
手机用户9375
2025-10-22
赵勇

在主库所在的主机上,使用root用户执行 ssh root@192.168.56.243 是什么结果?
再在备库所在的主机上,使用root用户执行 ssh root@192.168.56.242 是什么结果?

暂无图片 评论
暂无图片 有用 1
手机用户9375
2025-10-23
手机用户9375
2025-10-23
赵勇

从这个情况看,似乎是配置的互信有问题,还是需要输入密码才能访问远端。

暂无图片 评论
暂无图片 有用 0
赵勇

https://docs.opengauss.org/zh/docs/latest/docs/InstallationGuide/%E5%88%9D%E5%A7%8B%E5%8C%96%E5%AE%89%E8%A3%85%E7%8E%AF%E5%A2%83.html#%E6%89%8B%E5%B7%A5%E5%BB%BA%E7%AB%8B%E4%BA%92%E4%BF%A1

可参考opengauss官方文档进行相关互信及完整的安装操作。

暂无图片 评论
暂无图片 有用 0
手机用户9375
2025-10-23
手机用户9375
2025-10-23
赵勇

看看是否有其它同学的建议和思路。后续如果解决了,反馈一下,一起学习一下。

暂无图片 评论
暂无图片 有用 1
手机用户3702
2025-10-24
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏