当前位置:网站首页>How to use GS_ Expansion expansion node
How to use GS_ Expansion expansion node
2022-07-29 07:20:00 【Asky】
The current environment is 1 Lord 1 from , Want to add a slave node , Use gs_expansion super-popular , I don't know how to write a configuration file , Use the following configuration file to expand and report an error :[[email protected] script]# ./gs_expansion -U omm -G dbgrp -X /tmp/cluster_config_template.xml -h 192.168.1.85Traceback (most recent call last): File "/soft/opengauss/script/gs_expansion", line 583, in
Other answers 1:
Profile contents :
[[email protected] tmp]# more cluster_config_template.xml
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<!-- openGauss Overall information -->
<CLUSTER>
<!-- Database name -->
<PARAM name="clusterName" value="Cluster_template" />
<!-- Database node name (hostname) -->
<PARAM name="nodeNames" value="host134,host85" />
<!-- Database installation directory -->
<PARAM name="gaussdbAppPath" value="/opt/huawei/install/app" />
<!-- Log directory -->
<PARAM name="gaussdbLogPath" value="/opt/huawei/log/omm" />
<!-- Temporary file directory -->
<PARAM name="tmpMppdbPath" value="/opt/huawei/tmp"/>
<!-- Database tool catalog -->
<PARAM name="gaussdbToolPath" value="/opt/huawei/install/om" />
<!-- database core File directory -->
<PARAM name="corePath" value="/opt/huawei/corefile"/>
<!-- node IP, It corresponds to the list of database node names one by one -->
<PARAM name="backIp1s" value="192.168.1.134,192.168.1.85"/>
</CLUSTER>
<!-- Node deployment information on each server -->
<DEVICELIST>
<!-- node 1 Deployment information on -->
<DEVICE sn="host134">
<!-- node 1 The host name of -->
<PARAM name="name" value="host134"/>
<!-- node 1 Where AZ And AZ priority -->
<PARAM name="azName" value="AZ1"/>
<PARAM name="azPriority" value="1"/>
<!-- node 1 Of IP, If the server has only one network card available , take backIP1 and sshIP1 Configure to the same IP -->
<PARAM name="backIp1" value="192.168.1.134"/>
<PARAM name="sshIp1" value="192.168.1.134"/>
<!--dn-->
<PARAM name="dataNum" value="1"/>
<PARAM name="dataPortBase" value="15400"/>
<PARAM name="dataNode1" value="/opt/huawei/install/data/dn,host85,/opt/huawei/install/data/dn"/>
<PARAM name="dataNode1_syncNum" value="0"/>
</DEVICE>
<!-- node 2 Node deployment information on , among “name” The value of is configured as the host name -->
<DEVICE sn="host85">
<!-- node 2 The host name of -->
<PARAM name="name" value="host85"/>
<!-- node 2 Where AZ And AZ priority -->
<PARAM name="azName" value="AZ1"/>
<PARAM name="azPriority" value="1"/>
<!-- node 2 Of IP, If the server has only one network card available , take backIP1 and sshIP1 Configure to the same IP -->
<PARAM name="backIp1" value="192.168.1.85"/>
<PARAM name="sshIp1" value="192.168.1.85"/>
</DEVICE>
</DEVICELIST>
</ROOT>
Other answers 2:
The following error is reported when executing the expansion command :
[[email protected] script]# ./gs_expansion -U omm -G dbgrp -X /tmp/cluster_config_template.xml -h 192.168.1.85
Traceback (most recent call last):
File "/soft/opengauss/script/gs_expansion", line 583, in <module>
expansion.getExpansionInfo()
File "/soft/opengauss/script/gs_expansion", line 266, in getExpansionInfo
self._getClusterInfoDict()
File "/soft/opengauss/script/gs_expansion", line 198, in _getClusterInfoDict
self.check_xml_config()
File "/soft/opengauss/script/gs_expansion", line 406, in check_xml_config
xml_cluster_info)
File "/soft/opengauss/script/gs_expansion", line 570, in compare_cluster_info
raise Exception("XML configuration failed, "
Exception: XML configuration failed, node count in expantion XML must be more than static file.
边栏推荐
- 微服务远程调用
- 【OpenGL】着色器(Shader)的使用
- 以太网接口介绍
- Excel file reading and writing (creation and parsing)
- win11系统错误:由于找不到 iertutil.dll,无法继续执行代码。重新安装程序可能会解决此问题
- Homebrew brew update 长时间没反应(或卡在 Updating Homebrew...)
- CMOS芯片制造全工艺流程
- leetcode力扣经典问题——4.寻找两个正序数组的中位数
- Flink real-time warehouse DWD layer (transaction domain - additional purchase dimension degradation processing) template code
- 2022-07-28: what is the output of the following go language code? A:AA; B:AB; C:BA; D:BB。 package main import ( “fmt“ ) func main() { f
猜你喜欢

ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘解决方法
![[Charles' daily problems] when you open Charles, you can't use nails](/img/ef/037fc416175d4de769ac6484cb53df.png)
[Charles' daily problems] when you open Charles, you can't use nails

SQL优化

Redis Basics

Win11vmware turns on the virtual machine and restarts on the blue screen and the solution that cannot be started

H3C_ Using setting default static routing priority to realize the active and standby function of export dual lines

女研究生做“思维导图”与男友吵架!网友:吵架届的“内卷之王”....

Cvpr2021 | multi view stereo matching based on self supervised learning (cvpr2021)

2022-07-28: what is the output of the following go language code? A:AA; B:AB; C:BA; D:BB。 package main import ( “fmt“ ) func main() { f

作业7.28 文件IO与标准IO
随机推荐
Round avatar of user list and follow small blocks
Zabbix 其他基础监控项
WPF interface layout must know basis
Vmware16 create virtual machine: cannot create a new virtual machine, do not have permission to perform this operation
MySQL advanced (Advanced) SQL statement (I)
太空射击第17课: Game Over (結束)
Operator3 - design an operator
力扣(LeetCode)209. 长度最小的子数组(2022.07.28)
gin 路由,参数,输出
1172. The plate stack has a sequence table + stack
2-统一返回类DTO对象
Operator3-设计一个operator
win11VMware打开虚拟机就蓝屏重启以及启动不了的解决方案
MySQL uses the client and select methods to view the summary of blob type fields
Custom events
5-整合swagger2
[C language brush leetcode] 1054. Bar code with equal distance (m)
Improved pillar with fine grained feature for 3D object detection paper notes
It's enough for MySQL to have this article (disgusting and crazy typing 37k words, just for Bo Jun's praise!!!)
Other basic monitoring items of ZABBIX