Hi,
I’m currently testing Percona Cluster so I setup it like this:
{ One of current MySQL cluster server } is replicating to one of Percona nodes (galera01). I managed to add couple Percona’s nodes with SST and wsrep_sst_donor = ‘galera01’. But when I’m using any other node as wsrep_sst_donor or xtrabackup to use IST it always fail with error like this:
2014-06-10 18:51:59 28598 [Note] WSREP: New cluster view: global state: d8b28d3b-a321-11e3-94dd-6ac079041663:26810684, view# 136: Primary, number of nodes: 5, my index: 1, protocol version 2
2014-06-10 18:51:59 28598 [Warning] WSREP: Gap in state sequence. Need state transfer.
2014-06-10 18:52:01 28598 [Note] WSREP: Running: 'wsrep_sst_xtrabackup --role ‘joiner’ --address ‘<external_ip>’ --auth ‘root:’ --datadir ‘/var/lib/mysql/’ --defaults-file ‘/etc/mysql/my.cnf’ --parent ‘28598’ ‘’ ’
WSREP_SST: [INFO] Streaming with tar (20140610 18:52:01.810)
WSREP_SST: [INFO] Using socat as streamer (20140610 18:52:01.814)
WSREP_SST: [INFO] Evaluating socat -u TCP-LISTEN:4444,reuseaddr stdio | tar xfi - --recursive-unlink -h; RC=( ${PIPESTATUS[@]} ) (20140610 18:52:01.978)
2014-06-10 18:52:02 28598 [Note] WSREP: Prepared SST request: xtrabackup|<external_ip>:4444/xtrabackup_sst
2014-06-10 18:52:02 28598 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2014-06-10 18:52:02 28598 [Note] WSREP: REPL Protocols: 5 (3, 1)
2014-06-10 18:52:02 28598 [Note] WSREP: Service thread queue flushed.
2014-06-10 18:52:02 28598 [Note] WSREP: Assign initial position for certification: 26810684, protocol version: 3
2014-06-10 18:52:02 28598 [Note] WSREP: Service thread queue flushed.
2014-06-10 18:52:02 28598 [Note] WSREP: Prepared IST receiver, listening at: tcp://<internal_ip>:4568
2014-06-10 18:52:02 28598 [Note] WSREP: Member 1.0 (galera03) requested state transfer from ‘galera04’. Selected 2.0 (galera04)(SYNCED) as donor.
2014-06-10 18:52:02 28598 [Note] WSREP: Shifting PRIMARY → JOINER (TO: 26810696)
2014-06-10 18:52:02 28598 [Note] WSREP: Requesting state transfer: success, donor: 2
WSREP_SST: [INFO] xtrabackup_ist received from donor: Running IST (20140610 18:52:03.010)
WSREP_SST: [INFO] Total time on joiner: 0 seconds (20140610 18:52:03.016)
WSREP_SST: [INFO] Removing the sst_in_progress file (20140610 18:52:03.020)
2014-06-10 18:52:03 28598 [Note] WSREP: SST complete, seqno: 26540326
2014-06-10 18:52:03 28598 [Warning] Using unique option prefix myisam_recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
2014-06-10 18:52:03 28598 [Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future release. Please use the full name instead.
2014-06-10 18:52:03 28598 [Note] Plugin ‘FEDERATED’ is disabled.
2014-06-10 18:52:03 28598 [Note] InnoDB: The InnoDB memory heap is disabled
2014-06-10 18:52:03 28598 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-06-10 18:52:03 28598 [Note] InnoDB: Compressed tables use zlib 1.2.3.4
2014-06-10 18:52:03 28598 [Note] InnoDB: Using Linux native AIO
2014-06-10 18:52:03 28598 [Note] InnoDB: Using CPU crc32 instructions
2014-06-10 18:52:03 28598 [Note] InnoDB: Initializing buffer pool, size = 45.0G
2014-06-10 18:52:07 28598 [Note] InnoDB: Completed initialization of buffer pool
2014-06-10 18:52:07 28598 [Note] InnoDB: Highest supported file format is Barracuda.
2014-06-10 18:56:37 28598 [Note] InnoDB: 128 rollback segment(s) are active.
2014-06-10 18:56:37 28598 [Note] InnoDB: Waiting for purge to start
2014-06-10 18:56:37 28598 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.15-rel63.0 started; log sequence number 861369093072
/usr/sbin/mysqld: File ‘/var/lib/mysql/mysql-bin.000024’ not found (Errcode: 2 - No such file or directory)
2014-06-10 18:56:37 28598 [ERROR] Failed to open log (file ‘/var/lib/mysql/mysql-bin.000024’, errno 2)
2014-06-10 18:56:37 28598 [ERROR] Could not open log file
2014-06-10 18:56:37 28598 [ERROR] Can’t init tc log
2014-06-10 18:56:37 28598 [ERROR] Aborting
Here are my questions:
- Why does it try to read /var/lib/mysql/mysql-bin.000024 which is not on galera01 either?
- What is a proper way to add new Percona node and avoid SST?
- How to recover from the error above?
Thanks.