GBase 8s
安装配置
问答

急需他报错了,

发表于2025-04-14 11:21:48121次浏览10个评论

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

【GBase版本】:

【操作系统】:

【CPU】:

【问题描述】*:报错,报这个错什么情况这个是我主机的主机清单

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.225.20.68  gbase-primary  #Gbase8c gha IP host mapping
10.225.20.70  gbase-rss  #Gbase8c gha IP host mapping
10.225.20.69  gbase-hdr  #Gbase8c gha IP host mapping

我执行下面的命令他报错

[root@gbase-primary package]# cd script/
[root@gbase-primary script]# ./gs_preinstall -U gbase -G gbase -X /opt/database/package/cluster_config.xml
[GAUSS-51620] : Failed to obtain local instance information. It is not a host name gbase-primary.
[root@gbase-primary script]# sudo vim /etc/hosts
[root@gbase-primary script]# ./gs_preinstall -U gbase -G gbase -X /opt/database/package/cluster_config.xml
[GAUSS-51620] : Failed to obtain local instance information. It is not a host name gbase-primary.
[root@gbase-primary script]# 为什么

评论

登录后才可以发表评论
用户头像
GBase用户137发表于 1年前
配置文件截个图吧,可能是哪里的hostname没有改
GBase用户27057发表于 1年前
@GBase用户137:帮忙看一下吧我这边急需
GBase用户27057发表于 1年前
@GBase用户137:我图片发了正在审核








































我是这样弄的没问题吧
GBase用户27057发表于 1年前
@GBase用户137







































这个是配置文件
GBase用户27057发表于 1年前
@GBase用户137:您说的是什么配置文件,数据库的配置文件还是hostname的配置文件
用户头像
GBase用户137发表于 1年前
@GBase用户27057:数据库的部署配置文件,原hostname的位置,您写的是节点ip。应该是这个问题。
解决:参考部署配置文件模版,将每个节点hostname位置写为节点实际hostname。并且每个节点的hostname不能重复冲突。
可以在节点上执行hostname或 cat /etc/hosts查看实际的主机名称。
GBase用户27057发表于 1年前
@GBase用户137:不行修改配置文件又报新错这个
[root@gbase-primary script]# ./gs_preinstall -U gbase -G gbase -X /opt/database/package/cluster_config.xml
[GAUSS-50204] : Failed to read database node configuration on host [gbase-primary]. There is no host named 10.225.20.69.
[root@gbase-primary script]# vim /etc/hosts
[root@gbase-primary script]# ping gbase-hdr
PING gbase-hdr (10.225.20.69) 56(84) bytes of data.
64 bytes from gbase-hdr (10.225.20.69): icmp_seq=1 ttl=64 time=0.079 ms
64 bytes from gbase-hdr (10.225.20.69): icmp_seq=2 ttl=64 time=0.068 ms
^C
--- gbase-hdr ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.068/0.073/0.079/0.010 ms
[root@gbase-primary script]# ping gbase-rss
PING gbase-rss (10.225.20.70) 56(84) bytes of data.
64 bytes from gbase-rss (10.225.20.70): icmp_seq=1 ttl=64 time=0.098 ms
64 bytes from gbase-rss (10.225.20.70): icmp_seq=2 ttl=64 time=0.065 ms
^C
--- gbase-rss ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.065/0.081/0.098/0.018 ms
[root@gbase-primary script]#
然后配置文件是下面这个图片
GBase用户27057发表于 1年前
@GBase用户137:gbase-primary
[root@gbase-primary script]# ping gbase-primary
PING gbase-primary (10.225.20.68) 56(84) bytes of data.
64 bytes from gbase-primary (10.225.20.68): icmp_seq=1 ttl=64 time=0.041 ms
64 bytes from gbase-primary (10.225.20.68): icmp_seq=2 ttl=64 time=0.019 ms
^C
--- gbase-primary ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.019/0.030/0.041/0.011 ms
[root@gbase-primary script]# ping 10.225.20.68
PING 10.225.20.68 (10.225.20.68) 56(84) bytes of data.
64 bytes from 10.225.20.68: icmp_seq=1 ttl=64 time=0.060 ms
64 bytes from 10.225.20.68: icmp_seq=2 ttl=64 time=0.016 ms
^C
--- 10.225.20.68 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.016/0.038/0.060/0.022 ms
[root@gbase-primary script]# 我可以正常ping通为什么会报错呢
用户头像
GBase用户137发表于 1年前
@GBase用户27057:看错误描述,是部署配置文件中hostname写错了导致的。
最佳回答
用户头像
levvel发表于 6个月前
评论是一种尊重