GBase 8s
安装配置
问答

急需,GBase8sV8.8_S5.0.0B39上面的ssh问题解决了又遇到新的问题了。

发表于2025-04-14 12:57:04163次浏览14个评论

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

【GBase版本】:GBase8sV8.8_S5.0.0B39版本

【操作系统】:

【CPU】:

【问题描述】*:我执行./gs_preinstall -U gbase -G gbase -X /opt/database/package/cluster_config.xml命令的时候出现了下面的报错

Are you sure you want to create the user[gbase] and create trust for it (yes/no)? yes
Preparing SSH service.
Successfully prepared SSH service.
Installing the tools in the cluster.
Successfully installed the tools in the cluster.
Checking hostname mapping.
[GAUSS-51222] : Failed to check hostname mapping. Command: "source /home/gbase/.bashrc;pssh -s -H 10.225.20.68 hostname". Error: 
bash: pssh: command not found这是说明我这3台服务器都没有pssh这个东西吗,需要安装吗还是啥[root@gbase-primary script]# yum install pssh
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
No package pssh available.
Error: Nothing to do
[root@gbase-primary script]# 为什么文档中没有提到这个东西呢。这个报错是啥

评论

登录后才可以发表评论
用户头像
GBase用户137发表于 1年前
请按照"建立互信"章节,操作一下,为root和gbase用户建立节点间互信。
GBase用户27057发表于 1年前
@GBase用户137:这个是互信的问题吗
GBase用户27057发表于 1年前
@GBase用户137:我按照那个步骤弄了,现在到这个位置了pssh是啥我都安装好pssh工具了还是不行,那个章节里没有pssh工具
Are you sure you want to create the user[gbase] and create trust for it (yes/no)? yes
Preparing SSH service.
Successfully prepared SSH service.
Installing the tools in the cluster.
Successfully installed the tools in the cluster.
Checking hostname mapping.
[GAUSS-51222] : Failed to check hostname mapping. Command: "source /home/gbase/.bashrc;pssh -s -H 10.225.20.68 hostname". Error:
Usage: pssh [OPTIONS] command [...]

pssh: error: no such option: -s
[root@gbase-primary script]# pssh --version
2.3.1
[root@gbase-primary script]# pas
passmass passwd paste pasuspender
[root@gbase-primary script]# pas
passmass passwd paste pasuspender
[root@gbase-primary script]#
GBase用户27057发表于 1年前
@GBase用户137:我感觉是这个问题Are you sure you want to create the user[gbase] and create trust for it (yes/no)? yes
Preparing SSH service.
Successfully prepared SSH service.
Installing the tools in the cluster.
Successfully installed the tools in the cluster.
Checking hostname mapping.
[GAUSS-51222] : Failed to check hostname mapping. Command: "source /home/gbase/.bashrc;pssh -s -H 10.225.20.68 hostname". Error:
Usage: pssh [OPTIONS] command [...]

pssh: error: no such option: -s他没有pssh -s选项[root@gbase-primary script]# pssh -s -H 10.225.20.68,10.225.20.69,10.225.20.70 hostname
Usage: pssh [OPTIONS] command [...]

pssh: error: no such option: -s
[root@gbase-primary script]# pssh --serial -H 10.225.20.68,10.225.20.69,10.225.20.70 hostname
Usage: pssh [OPTIONS] command [...]

pssh: error: no such option: --serial
[root@gbase-primary script]# 怎么办呢
用户头像
GBase用户137发表于 1年前
@GBase用户27057:稍等,研究一下
GBase用户27057发表于 1年前
@GBase用户137:好的麻烦看看这个是什么问题导致的,因为ssh哪里不是都通过了吗,我免密试了一下ssh 10.225.20.69免密成功,然后ssh 主机名也可以直接免密进去。
GBase用户22889发表于 1年前
@GBase用户27057:mv /usr/bin/pssh /usr/bin/pssh.bak
cp gspylib/pssh/bin/* /usr/bin
GBase用户27057发表于 1年前
@GBase用户22889:然后呢还是在使用root用户cd script/下执行# ./gs_preinstall -U gbase -G gbase -X /opt/database/package/cluster_config.xml吗
用户头像
渝欢发表于 1年前
没有-s选项处理方式:
mv /usr/bin/pssh /usr/bin/pssh.bak
cp scripts/gspylib/pssh/bin/* /usr/bin
GBase用户27057发表于 1年前
@渝欢:执行这个命令然后在执行./gs_preinstall -U gbase -G gbase -X /opt/database/package/cluster_config.xml是吗
GBase用户27057发表于 1年前
@渝欢:[root@gbase-primary script]# mv /usr/bin/pssh /usr/bin/pssh.bak
[root@gbase-primary script]# cp scripts/gspylib/pssh/bin/* /usr/bin
cp: cannot stat ‘scripts/gspylib/pssh/bin/*’: No such file or directory
[root@gbase-primary script]# 不行报错
GBase用户27057发表于 1年前
@渝欢:是不是cp script下的/gspylib/pssh/bin/* /usr/bin啊没有s吧
用户头像
渝欢发表于 1年前
@GBase用户27057:是安装包解压后的 scripts/gspylib/pssh/bin/下, 有个pssh,移动到/usr/bin/下就可以执行./gs_preinstall -U gbase -G gbase -X /opt/database/package/cluster_config.xml了
最佳回答
崔哥发表于 9个月前
嗯,只能说不错!