Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql PXC节点在与施主完全同步后仍无法启动_Mysql_Percona_Galera - Fatal编程技术网

Mysql PXC节点在与施主完全同步后仍无法启动

Mysql PXC节点在与施主完全同步后仍无法启动,mysql,percona,galera,Mysql,Percona,Galera,我在PXC中有一个节点停止了,现在在施主完全同步之后,它仍然没有启动。下面提供了来自捐赠者的错误日志消息: 当我在施主节点上运行“show status like'wsrep%'\G”时,它显示wsrep_local_state_注释从施主/取消同步更改为同步。我相信这表明完全同步已经完成。但是我不确定为什么节点不能启动 2015-10-17 16:26:46 13833 [Note] WSREP: STATE EXCHANGE: got state msg: cda64f2b-74a8-11

我在PXC中有一个节点停止了,现在在施主完全同步之后,它仍然没有启动。下面提供了来自捐赠者的错误日志消息:

当我在施主节点上运行“show status like'wsrep%'\G”时,它显示wsrep_local_state_注释从施主/取消同步更改为同步。我相信这表明完全同步已经完成。但是我不确定为什么节点不能启动

 2015-10-17 16:26:46 13833 [Note] WSREP: STATE EXCHANGE: got state msg: cda64f2b-74a8-11e5-b965-36b9ac108f08 from 9 (db-kdb-5-2)

2015-10-17 16:26:46 13833 [Note] WSREP: Quorum results:

        version    = 3,

        component  = PRIMARY,

        conf_id    = 101,

        members    = 10/11 (joined/total),

        act_id     = 4281851091,

        last_appl. = 4281850971,

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

        group UUID = 3248f155-08ac-11e4-a36a-1347fdb518d6

2015-10-17 16:26:46 13833 [Note] WSREP: Flow-control interval: [53, 53]

2015-10-17 16:26:46 13833 [Note] WSREP: New cluster view: global state: 3248f155-08ac-11e4-a36a-1347fdb518d6:4281851091, view# 102: Primary, number of nodes: 11, my index: 0, protocol version 3

2015-10-17 16:26:46 13833 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.

2015-10-17 16:26:46 13833 [Note] WSREP: REPL Protocols: 7 (3, 2)

2015-10-17 16:26:46 13833 [Note] WSREP: Service thread queue flushed.

2015-10-17 16:26:46 13833 [Note] WSREP: Assign initial position for certification: 4281851091, protocol version: 3

2015-10-17 16:26:46 13833 [Note] WSREP: Service thread queue flushed.

2015-10-17 16:26:46 13833 [Note] WSREP: Member 9.0 (db-node-1) requested state transfer from ‘db-node1'. Selected 0.0 (db-node-1)(SYNCED) as donor.

2015-10-17 16:26:46 13833 [Note] WSREP: Shifting SYNCED -> DONOR/DESYNCED (TO: 4281851185)

2015-10-17 16:26:46 13833 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.

2015-10-17 16:26:46 13833 [Note] WSREP: Running: 'wsrep_sst_xtrabackup-v2 --role 'donor' --address ‘192.168.2.51:4444/xtrabackup_sst//1' --auth ‘user:pass' --socket '/var/run/mysqld/mysqld.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/mysql/my.cnf' --defaults-group-suffix ''   '' --gtid '3248f155-08ac-11e4-a36a-1347fdb518d6:4281851185''

2015-10-17 16:26:47 13833 [Note] WSREP: sst_donor_thread signaled with 0

WSREP_SST: [INFO] Streaming with xbstream (20151017 16:26:47.542)

WSREP_SST: [INFO] Using socat as streamer (20151017 16:26:47.546)

WSREP_SST: [INFO] Using /tmp/tmp.ZQBX8Kolho as innobackupex temporary directory (20151017 16:26:47.560)

WSREP_SST: [INFO] Streaming GTID file before SST (20151017 16:26:47.567)

WSREP_SST: [INFO] Evaluating xbstream -c ${INFO_FILE} | socat -u stdio TCP:10.1.5.51:4444; RC=( ${PIPESTATUS[@]} ) (20151017 16:26:47.570)

WSREP_SST: [INFO] Sleeping before data transfer for SST (20151017 16:26:47.577)

2015-10-17 16:26:47 13833 [Note] WSREP: (1e75ae0c, 'tcp://0.0.0.0:4567') turning message relay requesting off

WSREP_SST: [INFO] Streaming the backup to joiner at 192.168.2.51 4444 (20151017 16:26:57.582)

WSREP_SST: [INFO] Evaluating innobackupex --defaults-file=/etc/mysql/my.cnf  --defaults-group=mysqld --no-version-check  $tmpopts $INNOEXTRA --galera-info --stream=$sfmt $itmpdir 2>${DATA}/innobackup.backup.log | socat -u stdio TCP:192.168.2.51:4444; RC=( ${PIPESTATUS[@]} ) (20151017 16:26:57.586)

2015/10/17 16:26:59 socat[4849] E write(3, 0x17741d0, 8192): Broken pipe

WSREP_SST: [ERROR] innobackupex finished with error: 1.  Check /var/lib/mysql//innobackup.backup.log (20151017 16:26:59.875)

WSREP_SST: [ERROR] Cleanup after exit with status:22 (20151017 16:26:59.879)

WSREP_SST: [INFO] Cleaning up temporary directories (20151017 16:26:59.884)

2015-10-17 16:26:59 13833 [ERROR] WSREP: Failed to read from: wsrep_sst_xtrabackup-v2 --role 'donor' --address ‘192.168.2.51:4444/xtrabackup_sst//1' --auth ‘user:pass' --socket '/var/run/mysqld/mysqld.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/mysql/my.cnf' --defaults-group-suffix ''   '' --gtid '3248f155-08ac-11e4-a36a-1347fdb518d6:4281851185'

2015-10-17 16:26:59 13833 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'donor' --address ‘192.168.2.51:4444/xtrabackup_sst//1' --auth ‘user:pass' --socket '/var/run/mysqld/mysqld.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/mysql/my.cnf' --defaults-group-suffix ''   '' --gtid '3248f155-08ac-11e4-a36a-1347fdb518d6:4281851185': 22 (Invalid argument)

2015-10-17 16:26:59 13833 [ERROR] WSREP: Command did not run: wsrep_sst_xtrabackup-v2 --role 'donor' --address ’192.168.2.51:4444/xtrabackup_sst//1' --auth ‘user:pass' --socket '/var/run/mysqld/mysqld.sock' --datadir '/var/lib/mysql/' --defaults-file '/etc/mysql/my.cnf' --defaults-group-suffix ''   '' --gtid '3248f155-08ac-11e4-a36a-1347fdb518d6:4281851185'

2015-10-17 16:26:59 13833 [Warning] WSREP: 0.0 (db-node-2): State transfer to 9.0 (db-node-1) failed: -22 (Invalid argument)

2015-10-17 16:26:59 13833 [Note] WSREP: Shifting DONOR/DESYNCED -> JOINED (TO: 4281853007)

2015-10-17 16:26:59 13833 [Note] WSREP: (1e75ae0c, 'tcp://0.0.0.0:4567') address 'tcp://192.168.1.4:4567' pointing to uuid 1e75ae0c is blacklisted, skipping

2015-10-17 16:26:59 13833 [Note] WSREP: (1e75ae0c, 'tcp://0.0.0.0:4567') address 'tcp://192.168.1.4.:4567' pointing to uuid 1e75ae0c is blacklisted, skipping

2015-10-17 16:26:59 13833 [Note] WSREP: (1e75ae0c, 'tcp://0.0.0.0:4567') address 'tcp://192.168.1.4:4567' pointing to uuid 1e75ae0c is blacklisted, skipping

2015-10-17 16:26:59 13833 [Note] WSREP: (1e75ae0c, 'tcp://0.0.0.0:4567') address 'tcp://192.168.1.4:4567' pointing to uuid 1e75ae0c is blacklisted, skipping

再次阅读:2015-10-17 16:26:59 13833[警告]WSREP:0.0(db-node-2):状态传输到9.0(db-node-1)失败:-22(无效参数)施主完成同步是因为它失败,而不是因为它成功。但是为什么SST会失败?我使用的是xtrabackup-v2,看起来好像你没有阅读你发布的内容。WSREP_SST:[错误]innobackupex已完成,但出现错误:1。检查/var/lib/mysql//innobackup.backup.log(20151017 16:26:59.875)检查此日志文件可能会提供可能的解释。