高斯数据库命令,-GaussDBInstaller安装高斯数据库分布式三节点 - , "
1.需要用到介质(安装的版本是503.1):
GaussDB-Kernel_503.1.0.SPC2000.B005_Om_X86_Distributed.tar.gz
GaussDB-Kernel_503.1.0.SPC2000.B005_Server_X86_Distributed.tar.gz
GaussDBInstaller.zip
2.安装前的准备
关闭防火墙
systemctl status firewalld 或者 systemctl status iptables
结果应该是:
Active: inactive (dead)
如果未关闭执行下面命令关闭:
systemctl stop firewalld.service
systemctl disable firewalld.service
或者
systemctl stop iptables.service
systemctl disable iptables.service
修改selinux配置
vim /etc/selinux/config
修改“SELINUX”的值“permissive”
重启系统
reboot
设置字符集参数
vi /etc/profile
添加内容:export LANG=en_US.UTF-8
source /etc/profile
测试结果:echo $LANG
使用vi打开/etc/sysconfig/i18n文件
vi /etc/sysconfig/i18n
添加内容:LANG=en_US.UTF-8
source /etc/sysconfig/i18n
设置时钟
timedatectl set-timezone UTC
vi /etc/sysconfig/clock
添加内容:ZONE="Etc/UTC"
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
使用 Chrony 配置时间同步
– 如果软件包管理器为yum源,则执行以下命令,进行安装。
yum install chrony -y
– 如果软件包管理器为zypper源,则执行以下命令,进行安装。
zypper install chrony
vi /etc/chrony.conf
添加“allow all”信息
删除“#”,取消“local stratum 10”所在行的注释
添加“#”注释掉配置文件最前面原有的pool行,并新增“server时间同步服务器域名/IP地址 iburst”
server 192.168.110.100 iburst
server 192.168.110.101 iburst
server 192.168.110.103 iburst
重启chronyd:systemctl restart chronyd
本步骤如果6已经做好,可以忽略
使用 NTP 配置时间同步:为了保证时间误差在要求范围以内,推荐使用NTP(Network Time Protocol)来自动
同步待配置时间同步的服务器节点的系统时间,可参考以下操作步骤进行配置
yum install ntp ntpdate -y
restrict 192.168.0.0 mask 255.255.255.0
重启NTP同步服务。
systemctl restart ntpd
systemctl status ntpd
8.关闭 swap 交换内存(注释掉swap)
vi /etc/fstab
#
# /etc/fstab
# Created by anaconda on Mon Sep 15 10:21:48 2025
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/mapper/uos-root / xfs defaults 0 0
#UUID=cbfc8073-eeed-4cd8-97e9-9b6522882f06 /boot xfs defaults 0 0
UUID=61d75d72-1ef9-4f6a-ac21-3461e4aa1a42 /data ext4 defaults 0 0
#/dev/mapper/uos-swap none swap defaults 0 0
tmpfs /dev/shm tmpfs defaults,noexec,nodev,nosuid,seclabel 0 0
重启:reboot
设置网卡 MTU 值
vi /etc/sysconfig/network-scripts/ifcfg-*
增加:MTU=1500
增加:MTU=8192
重启网络:systemctl restart NetworkManager
文件系统参数设置
vi /etc/security/limits.conf
删除文件中的 root soft nofile和root hard nofile配置
增加:echo "* soft nofile 1000000" >>/etc/security/limits.conf
echo "* hard nofile 1000000" >>/etc/security/limits.conf
打开/etc/ssh/sshd_config文件
确保UsePAM参数值为“yes”
修改后重启SSH服务:systemctl restart sshd.service
source /etc/profile
设置最大进程数
vim /etc/security/limits.d/90-nproc.conf
echo "* soft nproc 60000" >> /etc/security/limits.d/90-nproc.conf
配置sudoers
chmod 775 /etc/sudoers
vi /etc/sudoers
Ruby ALL=(ALL) NOPASSWD: ALL
配置节点之间的互信
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
reboot
3.正式开始安装
--解压GaussDBInstaller.zip
--cp安装包到 GaussDBInstaller/pkgDir目录下
[root@gauss01 GaussDB_Inside_2.23.01.250]# cp DBS-GaussDB-Adaptor_2.23.01.280.1702469024.tar.gz /ht/GaussDBInstaller/pkgDir
[root@gauss01 GaussDB_Inside_2.23.01.250]# cp GaussDB-Kernel_503.1.0.SPC2000.B005_Om_X86_Distributed.tar.gz /ht/GaussDBInstaller/p
paramsSample/ pkgDir/ pre_check.sh
[root@gauss01 GaussDB_Inside_2.23.01.250]# cp GaussDB-Kernel_503.1.0.SPC2000.B005_Om_X86_Distributed.tar.gz /ht/GaussDBInstaller/pkgDir/
[root@gauss01 GaussDB_Inside_2.23.01.250]# cp GaussDB-Kernel_503.1.0.SPC2000.B005_Server_X86_Distributed.tar.gz /ht/GaussDBInstaller/pkgDir/
--修改install.json文件
[root@gauss01 GaussDBInstaller]# cat install_cluster.json
{
"rdsAdminUser": "rdsAdmin",
"rdsAdminPasswd": "",
"dbPort": "8000",
"dbUser": "root",
"dbUserPasswd": "",
"clusterMode": "combined",
"encoding": "utf8",
"spec": {
"cpu": "",
"mem": ""
},
"params": {
"enable_thread_pool": "on",
"enable_bbox_dump": "on",
"bbox_dump_path": "/home/core"
},
"cnParams": {
},
"dnParams": {
},
"cmParams": {
},
"clusterConf": {
"gtmFree": 1,
"clusterName": "Gauss_XuanYuan",
"shardingNum": 3,
"replicaNum": 3,
"solution": "hws",
"cm": [
{
"rack": "gauss001",
"az": "AZ1",
"ip": "192.168.110.100",
"dataIp": "192.168.110.100",
"virtualIp": "192.168.110.100"
},
{
"rack": "gauss002",
"az": "AZ2",
"ip": "192.168.110.101",
"dataIp": "192.168.110.101",
"virtualIp": "192.168.110.101"
},
{
"rack": "gauss003",
"az": "AZ3",
"ip": "192.168.110.103",
"dataIp": "192.168.110.103",
"virtualIp": "192.168.110.103"
}
],
"cn": [
{
"rack": "gauss001",
"az": "AZ1",
"ip": "192.168.110.100",
"dataIp": "192.168.110.100",
"virtualIp": "192.168.110.100"
},
{
"rack": "gauss002",
"az": "AZ2",
"ip": "192.168.110.101",
"dataIp": "192.168.110.101",
"virtualIp": "192.168.110.101"
},
{
"rack": "gauss003",
"az": "AZ3",
"ip": "192.168.110.103",
"dataIp": "192.168.110.103",
"virtualIp": "192.168.110.103"
}
],
"gtm": [
{
"rack": "gauss001",
"az": "AZ1",
"ip": "192.168.110.100",
"dataIp": "192.168.110.100",
"virtualIp": "192.168.110.100"
},
{
"rack": "gauss002",
"az": "AZ2",
"ip": "192.168.110.101",
"dataIp": "192.168.110.101",
"virtualIp": "192.168.110.101"
},
{
"rack": "gauss003",
"az": "AZ3",
"ip": "192.168.110.103",
"dataIp": "192.168.110.103",
"virtualIp": "192.168.110.103"
}
],
"shards": [
[
{
"rack": "gauss001",
"az": "AZ1",
"ip": "192.168.110.100",
"dataIp": "192.168.110.100",
"virtualIp": "192.168.110.100"
},
{
"rack": "gauss002",
"az": "AZ2",
"ip": "192.168.110.101",
"dataIp": "192.168.110.101",
"virtualIp": "192.168.110.101"
},
{
"rack": "gauss003",
"az": "AZ3",
"ip": "192.168.110.103",
"dataIp": "192.168.110.103",
"virtualIp": "192.168.110.103"
}
],
[
{
"rack": "gauss002",
"az": "AZ2",
"ip": "192.168.110.101",
"dataIp": "192.168.110.101",
"virtualIp": "192.168.110.101"
},
{
"rack": "gauss001",
"az": "AZ1",
"ip": "192.168.110.100",
"dataIp": "192.168.110.100",
"virtualIp": "192.168.110.100"
},
{
"rack": "gauss003",
"az": "AZ3",
"ip": "192.168.110.103",
"dataIp": "192.168.110.103",
"virtualIp": "192.168.110.103"
}
],
[
{
"rack": "gauss003",
"az": "AZ3",
"ip": "192.168.110.103",
"dataIp": "192.168.110.103",
"virtualIp": "192.168.110.103"
},
{
"rack": "gauss002",
"az": "AZ2",
"ip": "192.168.110.101",
"dataIp": "192.168.110.101",
"virtualIp": "192.168.110.101"
},
{
"rack": "gauss001",
"az": "AZ1",
"ip": "192.168.110.100",
"dataIp": "192.168.110.100",
"virtualIp": "192.168.110.100"
}
]
],
"etcd": {
"nodes": [
{
"rack": "gauss001",
"az": "AZ1",
"ip": "192.168.110.100",
"dataIp": "192.168.110.100",
"virtualIp": "192.168.110.100"
},
{
"rack": "gauss002",
"az": "AZ2",
"ip": "192.168.110.101",
"dataIp": "192.168.110.101",
"virtualIp": "192.168.110.101"
},
{
"rack": "gauss003",
"az": "AZ3",
"ip": "192.168.110.103",
"dataIp": "192.168.110.103",
"virtualIp": "192.168.110.103"
}
]
}
}
}
--修改install.conf文件
[COMMON]
os_user = Ruby
os_user_group = Ruby
os_user_passwd = huawei@1Pwd
root_passwd = huawei@1Pwd
db_free_login = false
ssh_port = 22
node_ip_list = 192.168.110.100,192.168.110.101,192.168.110.103
[OMAGENT]
om_agent_port = 20050
mgr_net =
data_net =
virtual_net =
gauss_home = /opt/cluster
log_dir = ${gauss_home}/var/lib/log
data_dir = ${gauss_home}/var/lib/engine/data1/data
etcd_dir = ${gauss_home}/usr/local/etcd
--执行安装命令
[root@gauss01 GaussDBInstaller]# python3 gaussdb_install.py --action main
[Note]:This tool is only applicable to POC and partner adaptation scenarios. Do not use it directly by external customers.
If you need to install it, send the installation instance on GaussDB Management Platform(TPOPS):yes/no?yes
[2025-10-24 09:01:26][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh getCurrentIp 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:01:26][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh getCurrentIp 192.168.110.100 192.168.110.101 192.168.110.103
192.168.110.101 192.168.110.103
[2025-10-24 09:01:26][root][INFO]:Start to make pre_check
192.168.110.100 | machine min requirements | OK | Minimum requirements: 8U64G. current CPUs: 80U Memory: 124G
192.168.110.100 | /usr/bin/sudo check | OK | Current right is satisified
192.168.110.100 | /usr/bin/crontab check | OK | Current right is satisified
192.168.110.100 | source profile check | OK | Command executed successfully.
192.168.110.100 | swap memory check | OK | Swap Memory Disabled.
192.168.110.100 | pkgDir integrity check | OK | If there are files, all the gz files are integral.
192.168.110.100 | modify sudoers | OK | sudo permit check passed
192.168.110.100 | mtu | OK | Current mtu value: 1500
192.168.110.100 | dependent tools | OK | dependent tools(ifconfig openssl expect tar lsof python) check passed
192.168.110.100 | python3 lib | OK | Python lib exist: libpython3.*.so.1.0
192.168.110.100 | port | OK | All ports 8000 5000 5001 2379 2380 6000 6500 40000 30123 20050 8000 check passed
192.168.110.100 | ulimit | OK | Ulimit check passed, ulimit: 1000000
192.168.110.100 | diskCapacity | OK | diskCapacity check passed, diskCapacity: 395126792 KB
192.168.110.101 | ssh connection | OK | ssh connection check passed
192.168.110.101 | machine min requirements | OK | Minimum requirements: 8U64G. current CPUs: 80U Memory: 124G
192.168.110.101 | /usr/bin/sudo check | OK | Current right is satisified
192.168.110.101 | /usr/bin/crontab check | OK | Current right is satisified
192.168.110.101 | source profile check | OK | Command executed successfully.
192.168.110.101 | swap memory check | OK | Swap Memory Disabled.
192.168.110.101 | pkgDir integrity check | OK | If there are files, all the gz files are integral.
192.168.110.101 | modify sudoers | OK | sudo permit check passed
192.168.110.101 | mtu | OK | Current mtu value: 1500
192.168.110.101 | dependent tools | OK | dependent tools(ifconfig openssl expect tar lsof python) check passed
192.168.110.101 | python3 lib | OK | Python lib exist: libpython3.*.so.1.0
192.168.110.101 | port | OK | All ports 8000 5000 5001 2379 2380 6000 6500 40000 30123 20050 8000 check passed
192.168.110.101 | ulimit | OK | Ulimit check passed, ulimit: 1000000
192.168.110.101 | diskCapacity | OK | diskCapacity check passed, diskCapacity: 369573616 KB
192.168.110.103 | ssh connection | OK | ssh connection check passed
192.168.110.103 | machine min requirements | OK | Minimum requirements: 8U64G. current CPUs: 80U Memory: 124G
192.168.110.103 | /usr/bin/sudo check | OK | Current right is satisified
192.168.110.103 | /usr/bin/crontab check | OK | Current right is satisified
192.168.110.103 | source profile check | OK | Command executed successfully.
192.168.110.103 | swap memory check | OK | Swap Memory Disabled.
192.168.110.103 | pkgDir integrity check | OK | If there are files, all the gz files are integral.
192.168.110.103 | modify sudoers | OK | sudo permit check passed
192.168.110.103 | mtu | OK | Current mtu value: 1500
192.168.110.103 | dependent tools | OK | dependent tools(ifconfig openssl expect tar lsof python) check passed
192.168.110.103 | python3 lib | OK | Python lib exist: libpython3.*.so.1.0
192.168.110.103 | port | OK | All ports 8000 5000 5001 2379 2380 6000 6500 40000 30123 20050 8000 check passed
192.168.110.103 | ulimit | OK | Ulimit check passed, ulimit: 1000000
192.168.110.103 | diskCapacity | OK | diskCapacity check passed, diskCapacity: 368947872 KB
[2025-10-24 09:02:05][root][INFO]:Start to execute preProcess...
[2025-10-24 09:02:05][root][INFO]:AGENT_PACKAGE exists
[2025-10-24 09:02:05][root][INFO]:SERVER_PACKAGE exists
[2025-10-24 09:02:05][root][INFO]:ADAPTOR_PACKAGE exists
[2025-10-24 09:02:06][root][INFO]:Integrity check passed
[2025-10-24 09:02:06][root][INFO]:Start to execute cmd: grep '^minlen' /etc/security/pwquality.conf | awk '{print $3}'
[2025-10-24 09:02:06][root][INFO]:End to execute cmd grep '^minlen' /etc/security/pwquality.conf | awk '{print $3}'
[2025-10-24 09:02:06][root][INFO]:get minlen if 8 from /etc/security/pwquality.conf
[2025-10-24 09:02:06][root][INFO]:Start to execute cmd: mkdir -p /opt/cluster
[2025-10-24 09:02:06][root][INFO]:End to execute cmd mkdir -p /opt/cluster
[2025-10-24 09:02:06][root][INFO]:Start check json file
[2025-10-24 09:02:06][root][INFO]:Start to execute cmd: cat /ht/GaussDBInstaller/install_cluster.json
[2025-10-24 09:02:06][root][INFO]:End to execute cmd cat /ht/GaussDBInstaller/install_cluster.json
[2025-10-24 09:02:06][root][INFO]:Start check json file
[2025-10-24 09:02:06][root][INFO]:Start to execute cmd: cat /ht/GaussDBInstaller/install_cluster.json
[2025-10-24 09:02:06][root][INFO]:End to execute cmd cat /ht/GaussDBInstaller/install_cluster.json
[2025-10-24 09:02:06][root][INFO]:mgr_net_ip = 192.168.110.100, data_net_ip= 192.168.110.100, virtual_net_ip= 192.168.110.100
[2025-10-24 09:02:06][root][INFO]:preProcess start check SSH connection
[2025-10-24 09:02:06][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh ssh_connection root 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:06][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh ssh_connection root 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:06][root][INFO]:Start check openssl expect ifconfig
[2025-10-24 09:02:06][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh check_cmd root 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:07][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh check_cmd root 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:07][root][INFO]:PreProcess task is processing, Please see /ht/GaussDBInstaller/install_cluster.log for details
[2025-10-24 09:02:07][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh preProcess 192.168.110.101 192.168.110.103
[2025-10-24 09:02:22][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh preProcess 192.168.110.101 192.168.110.103
[2025-10-24 09:02:22][root][INFO]:preProcess dynamic library check start in host:192.168.110.100
[2025-10-24 09:02:22][root][WARNING]:preProcess dynamic library check is complete in host:192.168.110.100 [Not Found]:['libavcodec.so.58', 'libavformat.so.58', 'libawt.so', 'libawt_xawt.so', 'libffi.so.6', 'libgstreamer-lite.so', 'libiperf.so.0', 'libjava.so', 'libjli.so', 'libjvm.so', 'libnet.so', 'libnio.so', 'libnsl.so.1', 'libverify.so']
[2025-10-24 09:02:22][root][INFO]:Start check the tmp_dir directory is empty
[2025-10-24 09:02:22][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh check_tmp_dir root 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:23][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh check_tmp_dir root 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:23][root][INFO]:check the tmp_dir directory sucess
[2025-10-24 09:02:23][root][INFO]:End to execute preProcess Sucess...
preProcess successfully.
[2025-10-24 09:02:23][root][INFO]:Start to execute setEnv, ipList is 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:23][root][INFO]:Start to execute setOSEnv, ipList is 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:23][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh executeRemote setOSEnv 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:23][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh executeRemote setOSEnv 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:23][root][INFO]:SetOSEnv task is processing, Please see /ht/GaussDBInstaller/install_cluster.log for details
[2025-10-24 09:02:23][root][INFO]:End to execute setOSEnv...
[2025-10-24 09:02:23][root][INFO]:Start to execute setUserEnv, ipList is 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:23][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh executeRemote setUserEnv 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:25][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh executeRemote setUserEnv 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:25][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh check_user_ssh_connection Ruby 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:26][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh check_user_ssh_connection Ruby 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:26][root][INFO]:SetUserEnv task is processing, Please see /ht/GaussDBInstaller/install_cluster.log for details
[2025-10-24 09:02:26][root][INFO]:End to execute setUserEnv...
[2025-10-24 09:02:26][root][INFO]:End to execute setEnv...
setEnv successfully.
[2025-10-24 09:02:26][root][INFO]:Start to execute genCertificate...
[2025-10-24 09:02:26][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh genCertificate 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:28][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh genCertificate 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:28][root][INFO]:End to execute genCertificate Sucess...
[2025-10-24 09:02:28][root][INFO]:Start check genCertificate status...
[2025-10-24 09:02:28][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh check_genCertificate Ruby 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:29][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh check_genCertificate Ruby 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:29][root][INFO]:check genCertificate status sucess
[2025-10-24 09:02:29][root][INFO]:Start to execute cmd: rm -rf /ht/GaussDBInstaller/certificate
[2025-10-24 09:02:29][root][INFO]:End to execute cmd rm -rf /ht/GaussDBInstaller/certificate
The certificate is successfully pushed
[2025-10-24 09:02:29][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh getCurrentIp 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:29][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh getCurrentIp 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:02:29][root][INFO]:Start to execute installOmAgent...
[2025-10-24 09:02:29][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh executeRemoteUser installOmAgent 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:03:11][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh executeRemoteUser installOmAgent 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:03:11][root][INFO]:End to execute installOmAgent...
[2025-10-24 09:03:11][root][INFO]:Start check OmAgent status
[2025-10-24 09:03:11][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh check_omAgent Ruby 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:03:12][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh check_omAgent Ruby 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:03:12][root][INFO]:OmAgent status is normal
192.168.110.101 192.168.110.103
The OmAgent is installed successfully.
[2025-10-24 09:03:12][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh getCurrentIp 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:03:12][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh getCurrentIp 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:03:12][root][INFO]:Start to execute preInstallCluster in local host 192.168.110.100
[2025-10-24 09:03:12][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh executeRemoteUser preInstallClusterLocal 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:04:50][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh executeRemoteUser preInstallClusterLocal 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:04:50][root][INFO]:End to execute preInstallCluster...
192.168.110.101 192.168.110.103
{"detailmsg": "SUCCESS", "retcode": 0}
{"detailmsg": "SUCCESS", "retcode": 0}
{"detailmsg": "SUCCESS", "retcode": 0}
preInstallCluster installation is successful.
[2025-10-24 09:04:50][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh getCurrentIp 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:04:50][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh getCurrentIp 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:04:50][root][INFO]:Start to execute installCluster...
[2025-10-24 09:13:15][root][INFO]:Start Configuring GaussDB Password-Free...
[2025-10-24 09:13:15][root][INFO]:Start to execute cmd: sh /ht/GaussDBInstaller/install_cluster.sh freeLoginConfigure 192.168.110.100 192.168.110.101 192.168.110.103
[2025-10-24 09:13:15][root][INFO]:End to execute cmd sh /ht/GaussDBInstaller/install_cluster.sh freeLoginConfigure 192.168.110.100 192.168.110.101 192.168.110.103
192.168.110.101 192.168.110.103
installCluster installation is successful.
--检查安装结果
[root@gauss01 GaussDBInstaller]# su - Ruby
Last login: Fri Oct 24 09:10:30 UTC 2025 on pts/0
[Ruby@gauss01 ~]$ gs_om -t status --detail;
-bash: gs_om: command not found
[Ruby@gauss01 ~]$ source gauss_env_file
[Ruby@gauss01 ~]$ gs_om -t status --detail;
[ CMServer State ]
node node_ip instance state
-------------------------------------------------------------------------------------------------
AZ1 1 192.168.110.100 192.168.110.100 1 /opt/cluster/var/lib/engine/data/cm/cm_server Primary
AZ2 2 192.168.110.101 192.168.110.101 2 /opt/cluster/var/lib/engine/data/cm/cm_server Standby
AZ3 3 192.168.110.103 192.168.110.103 3 /opt/cluster/var/lib/engine/data/cm/cm_server Standby
[ ETCD State ]
node node_ip instance state
-------------------------------------------------------------------------------------
AZ1 1 192.168.110.100 192.168.110.100 7001 /opt/cluster/usr/local/etcd StateFollower
AZ2 2 192.168.110.101 192.168.110.101 7002 /opt/cluster/usr/local/etcd StateFollower
AZ3 3 192.168.110.103 192.168.110.103 7003 /opt/cluster/usr/local/etcd StateLeader
[ Cluster State ]
cluster_state : Normal
redistributing : No
balanced : Yes
current_az : AZ_ALL
[ Coordinator State ]
node node_ip instance state
---------------------------------------------------------------------------------------
AZ1 1 192.168.110.100 192.168.110.100 5001 /opt/cluster/var/lib/engine/data/cn Normal
AZ2 2 192.168.110.101 192.168.110.101 5002 /opt/cluster/var/lib/engine/data/cn Normal
AZ3 3 192.168.110.103 192.168.110.103 5003 /opt/cluster/var/lib/engine/data/cn Normal
[ Central Coordinator State ]
node node_ip instance state
---------------------------------------------------------------------------------------
AZ3 3 192.168.110.103 192.168.110.103 5003 /opt/cluster/var/lib/engine/data/cn Normal
[ GTM State ]
node node_ip instance state sync_state
------------------------------------------------------------------------------------------------------------------------
AZ1 1 192.168.110.100 192.168.110.100 1001 /opt/cluster/var/lib/engine/data/gtm P Primary Connection ok Sync 拼多多帮助力入口
AZ2 2 192.168.110.101 192.168.110.101 1002 /opt/cluster/var/lib/engine/data/gtm S Standby Connection ok Sync
AZ3 3 192.168.110.103 192.168.110.103 1003 /opt/cluster/var/lib/engine/data/gtm S Standby Connection ok Sync
[ Datanode State ]
node node_ip instance state | node node_ip instance state | node node_ip instance state
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
AZ1 1 192.168.110.100 192.168.110.100 6001 /opt/cluster/var/lib/engine/data1/data/dn_6001 P Primary Normal | AZ2 2 192.168.110.101 192.168.110.101 6002 /opt/cluster/var/lib/engine/data1/data/dn_6002 S Standby Normal | AZ3 3 192.168.110.103 192.168.110.103 6003 /opt/cluster/var/lib/engine/data1/data/dn_6003 S Standby Normal
AZ2 2 192.168.110.101 192.168.110.101 6004 /opt/cluster/var/lib/engine/data1/data/dn_6004 P Primary Normal | AZ1 1 192.168.110.100 192.168.110.100 6005 /opt/cluster/var/lib/engine/data1/data/dn_6005 S Standby Normal | AZ3 3 192.168.110.103 192.168.110.103 6006 /opt/cluster/var/lib/engine/data1/data/dn_6006 S Standby Normal
AZ3 3 192.168.110.103 192.168.110.103 6007 /opt/cluster/var/lib/engine/data1/data/dn_6007 P Primary Normal | AZ2 2 192.168.110.101 192.168.110.101 6008 /opt/cluster/var/lib/engine/data1/data/dn_6008 S Standby Normal | AZ1 1 192.168.110.100 192.168.110.100 6009 /opt/cluster/var/lib/engine/data1/data/dn_6009 S Standby Normal
[Ruby@gauss01 ~]$,高斯数据库命令