mariadb,添加第4个galera节点失败

cnjp1d6j  于 2021-06-21  发布在  Mysql
关注(0)|答案(0)|浏览(673)

我有三个 node 在过去的几个月里,安装和运行都很完美。最近我想再加一个 node 在另一个地方,但不知怎的,我不断得到错误。
一开始,我只是在学习这个教程(几个月前我第一次在这里安装)https://www.howtoforge.com/tutorial/how-to-install-and-configure-galera-cluster-on-ubuntu-1604/ 我没有从头开始重新启动所有的节点,我只需要找到 /mysql/conf.d/galera.cnf 在另外三个 nodes 我添加了新的 nodes ip变成了前三个。所以第四次我有 /etc/mysql/conf.d/galera.cnf 设置为。。。

[mysqld]
binlog_format=ROW
default-storage-engine=innodb
innodb_autoinc_lock_mode=2
bind-address=0.0.0.0

# Galera Provider Configuration

wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so

# Galera Cluster Configuration

wsrep_cluster_name="galera_cluster"
wsrep_cluster_address="gcomm://node1_ip,node2_ip,node3_ip,node4_ip"

# Galera Synchronization Configuration

wsrep_sst_method=rsync

# Galera Node Configuration

wsrep_node_address="xx.xx.xxx.xxx"
wsrep_node_name="Node4"

不知怎的我犯了个大错误,

Group state: e3ade7e7-e682-11e7-8d16-be7d28cda90e:36273
         Local state: 00000000-0000-0000-0000-000000000000:-1
  [Note] WSREP: New cluster view: global state: e3ade7e7-e682-11e7-8d16-be7d28cda90e:36273, view# 122: Primary, number of nodes: 4, my
  [Warning] WSREP: Gap in state sequence. Need state transfer.
  [Note] WSREP: Running: 'wsrep_sst_rsync --role 'joiner' --address 'xxx.node.4.ip' --datadir '/var/lib/mysql/'   --parent '22828'  ''
 rsyncd version 3.1.1 starting, listening on port 4444
  [Note] WSREP: Prepared SST request: rsync|xxx.node.4.ip:4444/rsync_sst
  [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
  [Note] WSREP: REPL Protocols: 7 (3, 2)
  [Note] WSREP: Assign initial position for certification: 36273, protocol version: 3
  [Note] WSREP: Service thread queue flushed.
  [Warning] WSREP: Failed to prepare for incremental state transfer: Local state UUID (00000000-0000-0000-0000-000000000000) does not
          at galera/src/replicator_str.cpp:prepare_for_IST():482. IST will be unavailable.
  [Note] WSREP: Member 0.0 (Node4) requested state transfer from '*any*'. Selected 1.0 (Node1)(SYNCED) as donor.
  [Note] WSREP: Shifting PRIMARY -> JOINER (TO: 36273)
  [Note] WSREP: Requesting state transfer: success, donor: 1
  [Note] WSREP: GCache history reset: 00000000-0000-0000-0000-000000000000:0 -> e3ade7e7-e682-11e7-8d16-be7d28cda90e:36273
 [Note] WSREP: (7642cf37, 'tcp://0.0.0.0:4567') connection to peer 7642cf37 with addr tcp://xxx.node.4.ip:4567 timed out, no messages
 [Note] WSREP: (7642cf37, 'tcp://0.0.0.0:4567') turning message relay requesting off
 mariadb.service: Start operation timed out. Terminating.
 Terminated
 WSREP_SST: [INFO] Joiner cleanup. rsync PID: 22875 
 sent 0 bytes  received 0 bytes  total size 0
 WSREP_SST: [INFO] Joiner cleanup done. 
  [ERROR] WSREP: Process was aborted.
  [ERROR] WSREP: Process completed with error: wsrep_sst_rsync --role 'joiner' --address 'xxx.node.4.ip' --datadir '/var/lib/mysql/'
  [ERROR] WSREP: Failed to read uuid:seqno and wsrep_gtid_domain_id from joiner script.
  [ERROR] WSREP: SST failed: 2 (No such file or directory)
  [ERROR] Aborting
 Error in my_thread_global_end(): 1 threads didn't exit
 mariadb.service: Main process exited, code=exited, status=1/FAILURE
 Failed to start MariaDB 10.1.33 database server.

p、 旧的3节点mariadb版本是10.1.29,新的节点是10.1.33
提前谢谢你的建议。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题