暂无图片
openguass2.0.1版本单机扩备机时提示[GAUSS-50110] : Cannot execute this script on omm02, which is not primary.
我来答
分享
jieguo
2021-09-12
openguass2.0.1版本单机扩备机时提示[GAUSS-50110] : Cannot execute this script on omm02, which is not primary.

openguass2.0.1版本单机扩备机时提示[GAUSS-50110] : Cannot execute this script on omm02, which is not primary.

omm02已经按主模式启动:
gs_ctl start -D /gaussdb/data/db1 -M primary
[omm@omm02 ~]$ gs_om -t status --all

cluster_state : Normal
redistributing : No


node : 1
node_name : omm02
instance_id : 6001
node_ip : 192.168.52.143
data_path : /gaussdb/data/db1
type : Datanode
instance_state : Normal
az_name : AZ1
instance_role : Normal


[omm@omm02 ~]$ exit
logout
[root@omm02 script]# ./gs_expansion -U omm -G dbgrp -X cluster.xml -h 192.168.52.144 -L
[GAUSS-50110] : Cannot execute this script on omm02, which is not primary.
主库需要怎么设置才行?

我来答
添加附件
收藏
分享
问题补充
2条回答
默认
最新
jieguo

已解决:cluster.xml里的名称写错了omm02写成了omm2

暂无图片 评论
暂无图片 有用 0
暂无图片
三笠丶
暂无图片
暂无图片 评论
暂无图片 有用 1
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏