mysql - Percona Xtradb集群 : Error while getting data from donor node

标签 mysql cluster-computing percona xtradb

我在将新节点加入 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/

相关文章:

mysql - UNIQUE + INSERT IGNORE 如何工作?

php - 在 div 中包装文本时出错

r - 是否可以将 Spark 中的 data.table 与 Spark Dataframes 一起使用?

php - MySQL页面访客统计,数据库溢出保护

java - 如果超出特定时区,如何捕获基于 UTC 的事件?

hadoop - 在现有的 Hadoop 集群上运行 Nutch

matlab - 集群环境下运行的Matlab中的随机变量生成器

mysql - 使用默认字符集创建仅整数表,坏主意?

amazon-web-services - 通过 CloudFormation 从 xtrabackup 恢复 AWS RDS

mysql - 有效地选择相关表中存在行的行