暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
Opengauss在Centos 7.8下一主两备的安装测试
950
7页
3次
2020-07-22
10墨值下载
Opengauss Centos 7.8 下一主两备的安装测试
一、环境准备
原来有两台 vbox 虚拟机,装有 centos 7.8,不想重装操作系统,就克隆一台,这样有三台虚拟机用来测
opengauss 一主两备环境。
cat/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.56.11 node1 #Gauss OM IP Hosts Mapping
192.168.56.12 node2 #Gauss OM IP Hosts Mapping
192.168.56.13 node3 #Gauss OM IP Hosts Mapping
cat /etc/centos-release
CentOS Linux release 7.8.2003 (Core)
uanme -a
Linux node2 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020
x86_64 x86_64 x86_64 GNU/Linux
修改版本号骗过 opengauss 检查
cat /etc/centos-release
CentOS Linux release 7.6.2003 (Core)
节点文件
[omm@node1 ~]$ cat /tmp/cluster.xml
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<!-- openGauss 整体信息 -->
<CLUSTER>
<PARAM name="clusterName" value="dbCluster" />
<PARAM name="nodeNames" value="node1,node2,node3" />
<PARAM name="backIp1s" value="192.168.56.11,192.168.56.12,192.168.56.13"/>
<PARAM name="gaussdbAppPath" value="/opt/huawei/install/app" />
<PARAM name="gaussdbLogPath" value="/var/log/omm" />
<PARAM name="tmpMppdbPath" value="/opt/huawei/tmp"/>
<PARAM name="gaussdbToolPath" value="/opt/huawei/install/om" />
<PARAM name="corePath" value="/opt/huawei/corefile"/>
<PARAM name="clusterType" value="single-inst"/>
</CLUSTER>
<!-- 每台服务器上的节点部署信息 -->
<DEVICELIST>
<!-- node1 上的节点部署信息 -->
<DEVICE sn="1000001">
<PARAM name="name" value="node1"/>
<PARAM name="azName" value="AZ1"/>
<PARAM name="azPriority" value="1"/>
<!-- 如果服务器只有一个网卡可用,将 backIP1 sshIP1 配置成同一个 IP -->
<PARAM name="backIp1" value="192.168.56.11"/>
<PARAM name="sshIp1" value="192.168.56.11"/>
<!--dbnode-->
<PARAM name="dataNum" value="1"/>
<PARAM name="dataPortBase" value="26000"/>
<PARAM name="dataNode1"
value="/opt/huawei/install/data/db1,node2,/opt/huawei/install/data/db1,node3,/op
t/huawei/install/data/db1"/>
</DEVICE>
<!-- node2 上的节点部署信息,其中“name”的值配置为主机名称 -->
<DEVICE sn="1000002">
<PARAM name="name" value="node2"/>
<PARAM name="azName" value="AZ1"/>
<PARAM name="azPriority" value="1"/>
<!-- 如果服务器只有一个网卡可用,将 backIP1 sshIP1 配置成同一个 IP -->
<PARAM name="backIp1" value="192.168.56.12"/>
<PARAM name="sshIp1" value="192.168.56.12"/>
</DEVICE>
<DEVICE sn="1000003">
<PARAM name="name" value="node3"/>
<PARAM name="azName" value="AZ1"/>
<PARAM name="azPriority" value="1"/>
<PARAM name="backIp1" value="192.168.56.13"/>
<PARAM name="sshIp1" value="192.168.56.13"/>
</DEVICE>
</DEVICELIST>
</ROOT>
安装前检查
/opt/software/script/gs_preinstall -U omm -G dbgrp -X /tmp/cluster.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:
Creating SSH trust for the root permission user.
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.
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 the root permission user.
Setting pssh path
Successfully set core path.
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.
of 7
10墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜