首页 > 其他分享 >[GAUSS-50201]:The /opt/software/openGauss/xxxx-RedHat-64bit.tar.bz2 does not exist

[GAUSS-50201]:The /opt/software/openGauss/xxxx-RedHat-64bit.tar.bz2 does not exist

时间:2023-03-27 16:15:05浏览次数:40  
标签:opt 10 rw xxxx tar -- Successfully openGauss root

问题描述:使用redhat7.9来安装opengauss集群,预安装过不去。opengauss官方只支持centos版本,最好是centos7.6。

[root@db01 script]# ./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/clusterconfig.xml
Parsing the configuration file.
Successfully parsed the configuration file.
Installing the tools on the local node.
[GAUSS-50201] : The /opt/software/openGauss/openGauss-3.0.3-RedHat-64bit.tar.bz2 does not exist.

 

官方解决文档:https://gitee.com/opengauss/openGauss-OM/issues/I3HXVL  解决文档给了几种方式,但是我的并没有通过

 

方式一:修改/etc/redhat-release版本信息

# cat /etc/redhat-release
#Red Hat Enterprise Linux Server release 7.9 (Maipo)
CentOS Linux release 7.6.2003 (Core)

 

方式二: 修改/etc/os-release 的redhat的信息为centos相关的

# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

 

方式三:修改script/gspylib/os/gsplatform.py文件,具体修改内容如下

 

 将1500行左右的PAK_REDHAT修改为PAK_CENTOS,修改后的截图如下:

 

以上在我的opengauss3.0.0+redhat7.9版本没通过,但是可以通过修改软件包名称通过预安装

原解压文件

# ll /opt/software/openGauss
total 204712
-rw-r--r--  1 root root      4528 Mar 27 10:32 clusterconfig.xml
drwxr-xr-x 15 root root       321 Mar 27 10:34 lib
-rw-r--r--  1 root root 104387581 Mar 27 10:15 openGauss-3.0.3-CentOS-64bit-all.tar.gz
-rw-r--r--  1 root root       105 Jan 10 22:52 openGauss-3.0.3-CentOS-64bit-cm.sha256
-rw-r--r--  1 root root   6380530 Jan 10 22:52 openGauss-3.0.3-CentOS-64bit-cm.tar.gz
-rw-r--r--  1 root root        65 Jan 10 22:52 openGauss-3.0.3-CentOS-64bit-om.sha256
-rw-r--r--  1 root root  11920235 Jan 10 22:52 openGauss-3.0.3-CentOS-64bit-om.tar.gz
-rw-r--r--  1 root root        65 Jan 10 22:52 openGauss-3.0.3-CentOS-64bit.sha256
-rw-r--r--  1 root root  86443209 Jan 10 22:52 openGauss-3.0.3-CentOS-64bit.tar.bz2
drwxr-xr-x 10 root root      4096 Jan 10 22:52 script
-rw-------  1 root root        65 Jan 10 22:51 upgrade_sql.sha256
-rw-------  1 root root    447869 Jan 10 22:51 upgrade_sql.tar.gz
-rw-r--r--  1 root root        32 Jan 10 22:50 version.cfg

 

修改解压文件名称,此方式可以通过

# ll
total 204712
-rw-r--r--  1 root root      4528 Mar 27 10:32 clusterconfig.xml
drwxr-xr-x 15 root root       321 Mar 27 10:34 lib
-rw-r--r--  1 root root 104387581 Mar 27 10:15 openGauss-3.0.3-RedHat-64bit-all.tar.gz
-rw-r--r--  1 root root       105 Jan 10 22:52 openGauss-3.0.3-RedHat-64bit-cm.sha256
-rw-r--r--  1 root root   6380530 Jan 10 22:52 openGauss-3.0.3-RedHat-64bit-cm.tar.gz
-rw-r--r--  1 root root        65 Jan 10 22:52 openGauss-3.0.3-RedHat-64bit-om.sha256
-rw-r--r--  1 root root  11920235 Jan 10 22:52 openGauss-3.0.3-RedHat-64bit-om.tar.gz
-rw-r--r--  1 root root        65 Jan 10 22:52 openGauss-3.0.3-RedHat-64bit.sha256
-rw-r--r--  1 root root  86443209 Jan 10 22:52 openGauss-3.0.3-RedHat-64bit.tar.bz2
drwxr-xr-x 10 root root      4096 Jan 10 22:52 script
-rw-------  1 root root        65 Jan 10 22:51 upgrade_sql.sha256
-rw-------  1 root root    447869 Jan 10 22:51 upgrade_sql.tar.gz
-rw-r--r--  1 root root        32 Jan 10 22:50 version.cfg

 

预安装

# ./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/clusterconfig.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:
Successfully created SSH trust for the root permission user.
Setting host ip env
Successfully set host ip env.
Distributing package.
Begin to distribute package to tool path.
Successfully distribute package to tool path.
Begin to distribute package to package path.
Successfully distribute package to package path.
Successfully distributed package.
Are you sure you want to create the user[omm] 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.
Successfully checked hostname mapping.
Creating SSH trust for [omm] user.
Please enter password for current user[omm].
Password:
Checking network information.
All nodes in the network are Normal.
Successfully checked network information.
Creating SSH trust.
Creating the local key file.
Successfully created the local key files.
Appending local ID to authorized_keys.
Successfully appended local ID to authorized_keys.
Updating the known_hosts file.
Successfully updated the known_hosts file.
Appending authorized_key on the remote node.
Successfully appended authorized_key on all remote node.
Checking common authentication file content.
Successfully checked common authentication content.
Distributing SSH trust file to all node.
Distributing trust keys file to all node successfully.
Successfully distributed SSH trust file to all node.
Verifying SSH trust on all hosts.
Successfully verified SSH trust on all hosts.
Successfully created SSH trust.
Successfully created SSH trust for [omm] user.
Checking OS software.
Successfully check os software.
Checking OS version.
Successfully checked OS version.
Creating cluster's path.
Successfully created cluster's path.
Set and check OS parameter.
Setting OS parameters.
Successfully set OS parameters.
Warning: Installation environment contains some warning messages.
Please get more details by "/opt/software/openGauss/script/gs_checkos -i A -h db01,db02,03 --detail".
Set and check OS parameter completed.
Preparing CRON service.
Successfully prepared CRON service.
Setting user environmental variables.
Successfully set user environmental variables.
Setting the dynamic link library.
Successfully set the dynamic link library.
Setting Core file
Successfully set core path.
Setting pssh path
Successfully set pssh path.
Setting Cgroup.
Successfully set Cgroup.
Set ARM Optimization.
No need to set ARM Optimization.
Fixing server package owner.
Setting finish flag.
Successfully set finish flag.
Preinstallation succeeded.

 

标签:opt,10,rw,xxxx,tar,--,Successfully,openGauss,root
From: https://www.cnblogs.com/avasteven/p/17261829.html

相关文章

  • Optrix 让iPhone转换成高清运动相机
    在享受急速飙车的同时又想拍下这段精彩的过程? OptrixExtremeSportsCase可以帮助iPhone用户轻松把iPhone别在头盔,把手,方向盘甚至机车车厢上,然后开始记录运动实况。其独......
  • start线程开启(C源码分析)
    一个线程开启都经历了什么publicclassThreadBaseDemo{publicstaticvoidmain(String[]args){Threadt1=newThread(()->{},"t1");......
  • 【坑】 mpvue 编译报错Error: [mpvue-loader] need "fileExt" option in file "build/
    运行命令C:\Users\luozhuang\demo2>npmrunbuild出错提示:ERRORin./node_modules/mpvue-entry/dist/pagesMemberDistributionIndex.jsModulebuildfailed:Error:[mp......
  • 【转】NETCore下IConfiguration和IOptions的用法
    新建一个NETCoreWebAPI项目,在Startup.cs里就会开始使用IConfiguration和IOptions了,我们来看看如何使用。IConfiguration是用来加载配置值的,可以加载内存键值对、JSON或X......
  • Vue2模版编译(AST、Optimize 、Render)
    在Vue$mount过程中,我们需要把模版编译成render函数,整体实现可以分为三部分:parse:解析模版template生成AST语法树optimize:优化AST语法树,标记静态节点codegen:把优化......
  • wine 运行Call of Duty Modern Warfare 2以及starcraft2方法
    必需条件:wine升级到1.3以上Linux已经正确安装显卡驱动其他需要东西:DirectX以及VC运行库这些东西请自己准备吧,不需要我一个一个说了然后关键是用wineregedit导入下面注册......
  • tarjan缩点(受欢迎的牛)
    #include<iostream>#include<cstdio>#include<cmath>#include<algorithm>#include<cstring>usingnamespacestd;intcnt;//计数intnum;//时间戳intp;//栈的......
  • tarjan割点(备用交换机)
    #include<iostream>#include<cstdio>#include<cmath>#include<cstring>#include<algorithm>usingnamespacestd;intcnt,last[2022],head[2022],next[2022];int......
  • tarjan割边
    #include<iostream>#include<cstdio>#include<cmath>#include<algorithm>#include<cstring>usingnamespacestd;intcnt=1,l[100005],h[100005],nex[100005];i......
  • 解决VSCode新建终端自动时执行`pyenv shell xxxx`
    问题今天发现VSCode新建一个内置终端时会自动运行pyenvshellxxx,实际上这并不是我自行配置的。解决方案打开VScode用户配置文件settings.json,新增一行内容:"p......