GreatSQL社区

搜索

[已解决] 用myshell添加仲裁节点时报错

654 2 2024-5-25 20:50
先介绍一下,我使用的是mysqlshell 8.4.0(从MYSQL官网下载的),我的操作系统是CENTOS 7.6,
ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.

c.add_instance("192.168.200.136:3306")
The safest and most convenient way to provision a new instance is through automatic clone provisioning, which will completely overwrite the state of '192.168.200.136:3306' with a physical snapshot from an existing cluster member. To use this method by default, set the 'recoveryMethod' option to 'clone'.

The incremental state recovery may be safely used if you are sure all updates ever executed in the cluster were done with GTIDs enabled, there are no purged transactions and the new instance contains the same GTID set as the cluster or a subset of it. To use this method by default, set the 'recoveryMethod' option to 'incremental'.

Incremental state recovery was selected because it seems to be safely usable.

Validating instance configuration at 192.168.200.136:3306...

This instance reports its own address as 192.168.200.136:3306

Instance configuration is suitable.
NOTE: Group Replication will communicate with other members using '192.168.200.136:3306'. Use the localAddress option to override.

* Checking connectivity and SSL configuration...

A new instance will be added to the InnoDB Cluster. Depending on the amount of
data on the cluster this might take from a few seconds to several hours.

Adding instance to the cluster...

Monitoring recovery process of the new cluster member. Press ^C to stop monitoring and let it continue in background.
State recovery already finished for '192.168.200.136:3306'

Traceback (most recent call last):
  File "<string>", line 1, in <module>
RuntimeError: Cluster.add_instance: Unsupported GR member role value: ARBITRATOR

虽然MYSHELL不支持检测仲裁节点。后面我试一下,也无法删除这个仲裁节点。

但用SELECT查询时,却可以看到仲裁节点。
我认为是不是只有用社区的greatsql-shell-8.0.32-25-glibc2.28-x86_64.tar.xz才支持MYSHELL方式添加仲裁节点。

全部回复(2)
yejr 2024-5-26 16:13:52
是的,仲裁节点是在GreatSQL中才有的,MySQL社区版是没有的,因此MySQL Shell自然也不支持,需要用GreatSQL Shell

- 关于仲裁节点 https://greatsql.cn/docs/8.0.32- ... mgr-arbitrator.html
- 关于GreatSQL Shell https://gitee.com/GreatSQL/Great ... ster/GreatSQL-Shell
reddey 2024-5-26 16:48:41
yejr 发表于 2024-5-26 16:13
是的,仲裁节点是在GreatSQL中才有的,MySQL社区版是没有的,因此MySQL Shell自然也不支持,需要用GreatSQL ...

好的,谢谢。
一个学艺不精的国产数据库爱好者
reddey

28

主题

50

博客

945

贡献

金牌会员

Rank: 6Rank: 6

积分
1231

勤学好问(铜)中肯点评(铜)解惑专家(铜)助人雷锋分享达人

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-10-18 15:14 , Processed in 0.027972 second(s), 17 queries , Redis On.
快速回复 返回顶部 返回列表