简体   繁体   English

Percona XtraDB集群首次启动时间等待

[英]Percona XtraDB cluster first start time wait

I am trying to start the cluster on three clean centos machines. 我正在尝试在三台干净的centos计算机上启动集群。

I tried to keep this post short, I am not attaching config files becouse I used this guide and the config files are according this: 我试图使这篇文章简短,我没有附加配置文件,因为我使用了本指南,并且配置文件符合以下要求:

https://www.percona.com/doc/percona-xtradb-cluster/5.7/add-node.html#add-node https://www.percona.com/doc/percona-xtradb-cluster/5.7/add-node.html#add-node

Starting first node ok. 启动第一个节点即可。 Starting second node error. 启动第二个节点错误。

Here is the log on second node 这是第二个节点上的登录

2017-09-28T15:05:09.367856Z 0 [Note] WSREP: Initiating SST/IST transfer on JOINER side (wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.14.104' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' --parent '5490' '' ) 2017-09-28T15:05:09.368984Z 0 [ERROR] WSREP: Failed to read 'ready ' from: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.14.104' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' --parent '5490' '' Read: '(null)' 2017-09-28T15:05:09.369064Z 0 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '192.168.14.104' --datadir '/var/lib/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' --parent '5490' '' : 2 (No such file or directory) 2017-09-28T15:05:09.370161Z 2 [ERROR] WSREP: Failed to prepare for 'xtrabackup-v2' SST. 2017-09-28T15:05:09.367856Z 0 [Note] WSREP:在JOINER端启动SST / IST传输(wsrep_sst_xtrabackup-v2 --role'joiner'--address'192.168.14.104'--datadir'/ var / lib / mysql /'--defaults-file'/etc/my.cnf'--defaults-group-suffix''--parent'5490''')2017-09-28T15:05:09.368984Z 0 [错误] WSREP :无法从以下位置读取“就绪”:wsrep_sst_xtrabackup-v2-角色'joiner'-地址'192.168.14.104'--datadir'/ var / lib / mysql /'--defaults-file'/etc/my.cnf '--defaults-group-suffix''--parent'5490'''读取:'(null)'2017-09-28T15:05:09.369064Z 0 [错误] WSREP:进程已完成,但错误:wsrep_sst_xtrabackup-v2- -角色'joiner'-地址'192.168.14.104'--datadir'/ var / lib / mysql /'--defaults-file'/etc/my.cnf'--defaults-group-suffix''--parent '5490''':2(无此类文件或目录)2017-09-28T15:05:09.370161Z 2 [ERROR] WSREP:无法为'xtrabackup-v2'SST做准备。 Unrecoverable. 不可恢复的。 2017-09-28T15:05:09.370192Z 2 [ERROR] Aborting 2017-09-28T15:05:09.370192Z 2 [错误]正在中止

Second node startup is failing because it is unable to perform and SST (full state transfer) from the donor node. 第二个节点启动失败,因为它无法执行施主节点的SST(完全状态传输)。

This is failing because the xtrabackup-v2 is failing. 这是因为xtrabackup-v2出现故障。 You need to check the logs on the donor node to get more idea as to why, but possible reasons include - 您需要检查施主节点上的日志以了解原因,但可能的原因包括-

  • Insufficient memory on donor node 施主节点上的内存不足
  • Syntax error in my.cnf on donor node (xtrabackup is more picky about syntax than normal mysql -- check for duplicate lines, which mysql accepts but xtrabackup doesnt) 施主节点上my.cnf中的语法错误(xtrabackup在语法上比普通mysql更挑剔-检查重复行,mysql接受但xtrabackup不这样做)
  • File permissions 档案权限
  • xtrabackup installed incorrectly, not installed, or wrong version xtrabackup安装不正确,未安装或版本错误
  • mismatch in wsrep configuration between nodes 节点之间的wsrep配置不匹配
  • invalid credentials for wsrep authentication wsrep身份验证的无效凭据

There are several reasons the SST could have failed. SST可能失败的原因有很多。 You need to examine the logs on the first node too. 您还需要检查第一个节点上的日志。 Could be ports blocked, could be no SST user created, wrong SST password, missing xtrabackup software, etc, etc. Impossible to tell from only what you provided. 可能是端口被阻塞,可能不是SST用户创建的,SST密码错误,缺少xtrabackup软件等,等等。无法仅凭您提供的信息来判断。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM