我在将新节点加入 percona xtradbcluster 时遇到问题。
这是我的日志:
我测试了在 honor 上工作的 test_sstuser 没有任何问题。
但在新节点中我得到这些错误:
2014-05-31 04:01:40 2391 [Warning] WSREP: Failed to prepare for incremental state transfer: Local state UUID (00000000-0000-0000-0000-000000000000) does not match group state UUID (02dc9b38-e825-11e3-a67b-4bfddfde0c98): 1 (Operation not permitted)
at galera/src/replicator_str.cpp:prepare_for_IST():447. IST will be unavailable.
WSREP_SST: [ERROR] Error while getting data from donor node: exit codes: 1 0 (20140531 04:01:40.934)
WSREP_SST: [ERROR] Cleanup after exit with status:32 (20140531 04:01:40.936)
2014-05-31 04:01:40 2391 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.0.2' --auth 'test_sstuser:123456' --datadir '/var/lib/mysql/' --defaults-file '/etc/mysql/my.cnf' --parent '2391' '' : 32 (Broken pipe)
2014-05-31 04:01:40 2391 [ERROR] WSREP: Failed to read uuid:seqno from joiner script.
2014-05-31 04:01:40 2391 [ERROR] WSREP: SST failed: 32 (Broken pipe)
2014-05-31 04:01:40 2391 [ERROR] Aborting
2014-05-31 04:01:41 2391 [Warning] WSREP: 1.0 (test.host.com): State transfer to 0.0 (master-2.test.net) failed: -32 (Broken pipe)
2014-05-31 04:01:41 2391 [ERROR] WSREP: gcs/src/gcs_group.c:gcs_group_handle_join_msg():723: Will never receive state. Need to abort.
我该如何解决这个问题?
最好的问候
阿里
最佳答案
我有同样的问题,还有一条消息:
WSREP_SST:[错误] xtrabackup 进程在未创建 '/path/to/mysql/xtrabackup_galera_info' (20150108 13:09:23.012) 时结束
问题是我在 /etc/mysql/my.cnf
中使用的是 xtrabackup 而不是 xtrabackup-v2:
wsrep_sst_method = xtrabackup
将其设置为:
wsrep_sst_method = xtrabackup-v2
解决了这个问题。
有些人建议不要设置这个变量。
关于mysql - Percona Xtradb集群 : Error while getting data from donor node,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23966539/