GreatSQL社区

搜索

[已解决] 33061端口没有监听

293 4 2024-9-23 14:40
linux系统:
almalinux9.4

软件:
GreatSQL-8.0.32-26-Linux-glibc2.28-x86_64

在/etc/my.cnf文件中,配置了MGR参数,如下格式:



# MGR
loose-plugin_load_add = 'mysql_clone.so'
loose-plugin_load_add = 'group_replication.so'
loose-group_replication_group_name = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa1"
loose-group_replication_local_address = "192.160.0.23:33061"
loose-group_replication_group_seeds = "192.160.0.23:33061,192.160.0.24:33061,192.160.0.25:33061"
loose-group_replication_communication_stack = "XCOM"
loose-group_replication_recovery_use_ssl = OFF


启动GreatSql库,没有任何报错。

故障:
查系统监听端口,没有33061。



问题:求解?

全部回复(4)
KAiTO 2024-9-23 14:48:09
MGR要启动起来才会监听33061端口

KAiTO 2024-9-23 14:54:52
部署MGR请跟着这份手册走 https://greatsql.cn/docs/8.0.32- ... install-deploy.html 有问题提供错误日志等
my666666 2024-9-23 15:03:11
KAiTO 发表于 2024-9-23 14:54
部署MGR请跟着这份手册走 https://greatsql.cn/docs/8.0.32-26/8-mgr/2-mgr-install-deploy.html 有问题提 ...

主库start group_replication;成功。
从库start group_replication;失败。
ERROR 3092 (HY000): The server is not configured properly to be an active member of the group. Please see more details on error log.

主要日志错误:
.。。。
2024-09-23T15:00:47.259201+08:00 0 [ERROR] [MY-011526] [Repl] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: 98425a04-795d-11ef-b785-000c29a17bea:1 > Group transactions: aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa1:1-3, d8a7617e-7955-11ef-976d-000c298411fc:1'
2024-09-23T15:00:47.259257+08:00 0 [ERROR] [MY-011522] [Repl] Plugin group_replication reported: 'The member contains transactions not present in the group. The member will now exit the group.'

。。。
KAiTO 2024-9-23 15:38:06
my666666 发表于 2024-9-23 15:03
主库start group_replication;成功。
从库start group_replication;失败。
ERROR 3092 (HY000): The serv ...

报错很明显了,看错误日志显示“此成员执行的事务比组中存在的事务多”[1]
在操作的时候,手册操作中有使用 set session sql_log_bin=0; 目的就是为了防止这个问题。
解决方法
如果都是空实例
直接清空PRIMARY 和 SECONDARY 节点 reset master
然后PRIMARY 节点在起set global group_replication_bootstrap_group=ON;  start group_replication;
接着SECONDARY 节点start group_replication;

如果有数据,要用克隆的方式解决

[1]:FAQ - MGR运维部署 | GreatSQL用户手册

my666666

1

主题

0

博客

3

贡献

新手上路

Rank: 1

积分
5

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

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