在搭建 openGauss-1.0.0-CentOS-64bit主备机群的时候,执行:
gs_install -X /opt/software/openGauss/clusterconfig.xml
【遇到问题】:
…
[FAILURE] node2.localdomain:
Using omm:dbgrp to install database.
Using installation program path : /opt/gaussdb/app_0bd0ce80
$GAUSSHOME points to /opt/gaussdb/app_0bd0ce80, no need to create symbolic link.
Traceback (most recent call last):
File “/opt/huawei/wisequery/script/local/Install.py”, line 645, in
functionDictg_opts.action
File “/opt/huawei/wisequery/script/local/Install.py”, line 588, in startCluster
dn.start(self.time_out)
File “/opt/huawei/wisequery/script/local/…/gspylib/component/Kernel/Kernel.py”, line 87, in start
+ " Error: Please check the gs_ctl log for "
Exception: [GAUSS-51607] : Failed to start instance. Error: Please check the gs_ctl log for failure details.
【分析问题】:
检查集群状态: gs_om -t status --detail
[ Cluster State ]
cluster_state : Degraded
redistributing : No
current_az : AZ_ALL
[ Datanode State ]
node node_ip instance state | node node_ip instance state
1 node1.localdomain 192.168.0.11 6001 /gaussdb/data/db1 P Primary Normal | 2 node2.localdomain 192.168.0.12 6002 /gaussdb/data/db1 S Standby Need repair(System)
发现node2节点 Need repair
【解决问题】
在node2节点上,执行gs_ctl build -D /gaussdb/data/db1 -b full
再次查看集群状态:
[omm@node1 openGauss]$ gs_om -t status --detail
[ Cluster State ]
cluster_state : Normal
redistributing : No
current_az : AZ_ALL
[ Datanode State ]
node node_ip instance state | node node_ip instance state
1 node1.localdomain 192.168.0.11 6001 /gaussdb/data/db1 P Primary Normal | 2 node2.localdomain 192.168.0.12 6002 /gaussdb/data/db1 S Standby Normal
[omm@node1 openGauss]$
Standby Normal,问题解决。
在此感谢@多米爸比的支持!




