MariaDB Galera Cluster启动失败

发布于 2022-03-06 21:49:25 字数 4386 浏览 812 评论 1

MariaDB Galera Cluster部署在两个节点,做双主。mysql启动时报错,希望各位大神帮忙看看什么问题?

日志信息如下所示

150714 11:01:21 [Note] WSREP: Tables flushed.

rsync: failed to connect to 192.168.1.102 (192.168.1.102): No route to host (113)

rsync error: error in socket IO (code 10) at clientserver.c(122) [sender=3.0.9]

WSREP_SST: [ERROR] rsync returned code 10: (20150714 11:01:22.059)

150714 11:01:22 [ERROR] WSREP: Failed to read from: wsrep_sst_rsync --role 'donor' --address '192.168.1.102:4444/rsync_sst' --auth 'sst:Mandofin123' --socket '/var/lib/mysql/mysql.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix ''   '' --gtid 'c409ed77-2957-11e5-9447-a6420e2c9010:0'

150714 11:01:22 [ERROR] WSREP: Process completed with error: wsrep_sst_rsync --role 'donor' --address '192.168.1.102:4444/rsync_sst' --auth 'sst:Mandofin123' --socket '/var/lib/mysql/mysql.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix ''   '' --gtid 'c409ed77-2957-11e5-9447-a6420e2c9010:0': 255 (Unknown error 255)

150714 11:01:22 [Note] WSREP: resuming provider at 17

150714 11:01:22 [Note] WSREP: Provider resumed.

150714 11:01:22 [ERROR] WSREP: Command did not run: wsrep_sst_rsync --role 'donor' --address '192.168.1.102:4444/rsync_sst' --auth 'sst:Mandofin123' --socket '/var/lib/mysql/mysql.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix ''   '' --gtid 'c409ed77-2957-11e5-9447-a6420e2c9010:0'

150714 11:01:22 [Warning] WSREP: 1.0 (master): State transfer to 0.0 (slave) failed: -255 (Unknown error 255)

150714 11:01:22 [Note] WSREP: Shifting DONOR/DESYNCED -> JOINED (TO: 0)

150714 11:01:23 [Note] WSREP: forgetting 9e032949 (tcp://192.168.1.102:4567)

150714 11:01:23 [Note] WSREP: Node a2a96332 state prim

150714 11:01:23 [Note] WSREP: view(view_id(PRIM,a2a96332,7) memb {

        a2a96332,0

} joined {

} left {

} partitioned {

        9e032949,0

})

150714 11:01:23 [Note] WSREP: save pc into disk

150714 11:01:23 [Note] WSREP: forgetting 9e032949 (tcp://192.168.1.102:4567)

150714 11:01:23 [Note] WSREP: Member 1.0 (master) synced with group.

150714 11:01:23 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 0)

150714 11:01:23 [Note] WSREP: New COMPONENT: primary = yes, bootstrap = no, my_idx = 0, memb_num = 1

150714 11:01:23 [Note] WSREP: STATE_EXCHANGE: sent state UUID: 9befb3db-29d4-11e5-bba8-ee0ac86e43b2

150714 11:01:23 [Note] WSREP: STATE EXCHANGE: sent state msg: 9befb3db-29d4-11e5-bba8-ee0ac86e43b2

150714 11:01:23 [Note] WSREP: STATE EXCHANGE: got state msg: 9befb3db-29d4-11e5-bba8-ee0ac86e43b2 from 0 (master)

150714 11:01:23 [Note] WSREP: Quorum results:

        version    = 3,

        component  = PRIMARY,

        conf_id    = 6,

        members    = 1/1 (joined/total),

        act_id     = 0,

        last_appl. = 0,

        protocols  = 0/7/3 (gcs/repl/appl),

        group UUID = c409ed77-2957-11e5-9447-a6420e2c9010

150714 11:01:23 [Note] WSREP: Flow-control interval: [16, 16]

150714 11:01:23 [Note] WSREP: Synchronized with group, ready for connections

150714 11:01:23 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.

150714 11:01:23 [Note] WSREP: New cluster view: global state: c409ed77-2957-11e5-9447-a6420e2c9010:0, view# 7: Primary, number of nodes: 1, my index: 0, protocol version 3

150714 11:01:23 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.

150714 11:01:23 [Note] WSREP: REPL Protocols: 7 (3, 2)

150714 11:01:23 [Note] WSREP: Service thread queue flushed.

150714 11:01:23 [Note] WSREP: Assign initial position for certification: 0, protocol version: 3

150714 11:01:23 [Note] WSREP: Service thread queue flushed.

150714 11:01:24 [Note] WSREP: (a2a96332, 'tcp://0.0.0.0:4567') turning message relay requesting off

150714 11:01:28 [Note] WSREP:  cleaning up 9e032949 (tcp://192.168.1.102:4567)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

已下线请稍等 2022-03-10 06:58:17

双主容易脑裂,三主会好一些。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文