暂无图片
opengauss主备安装问题
我来答
分享
南方芝麻糊
2021-04-01
opengauss主备安装问题
[omm@gsmaster ~]$ gs_install  -X /opt/opengauss/clusterconfig.xml 
Parsing the configuration file.
Check preinstall on every node.
Successfully checked preinstall on every node.
Creating the backup directory.
Successfully created the backup directory.
begin deploy..
Installing the cluster.
begin prepare Install Cluster..
Checking the installation environment on all nodes.
[FAILURE] gsmaster:
Checking old installation.
[GAUSS-51806] : The cluster has been installed.
[FAILURE] gsslave:
Checking old installation.
[GAUSS-51806] : The cluster has been installed.

[omm@gsmaster ~]$ more .bashrc 
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions
export GAUSS_ENV=2
export GS_CLUSTER_NAME=myCluster
export GAUSSHOME=/opt/huawei/install/app
export PATH=$GAUSSHOME/bin:$PATH
export LD_LIBRARY_PATH=$GAUSSHOME/lib:$LD_LIBRARY_PATH
export S3_CLIENT_CRT_FILE=$GAUSSHOME/lib/client.crt
export GAUSS_VERSION=1.1.0
export PGHOST=/opt/huawei/tmp
export GAUSSLOG=/var/log/omm/omm
umask 077
我来答
添加附件
收藏
分享
问题补充
4条回答
默认
最新
今夕何夕

GAUSS_ENV 在环境变量中用来做安装状态的检查。
GAUSS_ENV = 1 表示预安装成功
GAUSS_ENV = 2 表示安装成功

对于正常的安装,卸载,都会重置这个环境变量的。

像这个问题,一般都是属于机器已经安装过数据库,但是没有按照正常的方式卸载,导致环境变量还存在,跟下一次安装时候冲突了。
建议清理下机器,删除不用的环境变量。

暂无图片 评论
暂无图片 有用 0
暂无图片
南方芝麻糊

在GAUSS_ENV=2 的情况下还是必能部署

暂无图片 评论
暂无图片 有用 0
飞天
2023-10-11
不能
南方芝麻糊

slave的报错信息:
[omm@gsslave ~]$ gs_install -X /opt/opengauss/clusterconfig.xml
Parsing the configuration file.
Check preinstall on every node.
Successfully checked preinstall on every node.
Creating the backup directory.
Successfully created the backup directory.
begin deploy…
Installing the cluster.
begin prepare Install Cluster…
Checking the installation environment on all nodes.
[FAILURE] gsmaster:
Checking old installation.
[GAUSS-51806] : The cluster has been installed.
[FAILURE] gsslave:
Checking old installation.
[GAUSS-51806] : The cluster has been installed.

暂无图片 评论
暂无图片 有用 0
飞天
暂无图片

删除omm用户,重新再来一次即可

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