I am currently trying to setup an XdraDB Cluster using the xtrabackup transfer method, however it just doesn’t work out for me. Here is what I get in the innobackup.backup.log of the donor:
innobackupex: Created backup directory /var/lib/mysql
tar: -: Cannot write: Broken pipe
tar: Error is not recoverable: exiting now
innobackupex: Error: Failed to stream ‘backup-my.cnf’: Inappropriate ioctl for device at /usr/local/mysql//bin/innobackupex line 381.
I’ve already changed the hardcoded value for the TMPDIR, however that doesn’t work either, tough the mysql user has full permissions on that directory. I’ve also specified tmpdir=/var/lib/mysql in the [mysqld] and [xtrabackup] section of the donors and joiners my.cnf file.
Any other ideas why the second node my fail to join the cluster?
I’ve compiled Percona-XtraDB-Cluster 5.5.30-23.7.4 and Percona-Xtrabackup-2.0.6 from the source on a Gentoo 64-bit system.
Here is the donors log:
130427 14:20:38 [Note] WSREP: New COMPONENT: primary = yes, bootstrap = no, my_idx = 0, memb_num = 1
130427 14:20:38 [Note] WSREP: STATE_EXCHANGE: sent state UUID: dea22da6-af34-11e2-0800-54545e34a8dc
130427 14:20:38 [Note] WSREP: STATE EXCHANGE: sent state msg: dea22da6-af34-11e2-0800-54545e34a8dc
130427 14:20:38 [Note] WSREP: STATE EXCHANGE: got state msg: dea22da6-af34-11e2-0800-54545e34a8dc from 0 (atlantia)
130427 14:20:38 [Note] WSREP: Quorum results:
version = 2,
component = PRIMARY,
conf_id = 6,
members = 1/1 (joined/total),
act_id = 7,
last_appl. = 0,
protocols = 0/4/2 (gcs/repl/appl),
group UUID = bda9abb9-ae84-11e2-0800-514b0920452c
130427 14:20:38 [Note] WSREP: Flow-control interval: [16, 16]
130427 14:20:38 [Note] WSREP: New cluster view: global state: bda9abb9-ae84-11e2-0800-514b0920452c:7, view# 7: Primary, number of nodes: 1, my index: 0, protocol version 2
130427 14:20:38 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
130427 14:20:38 [Note] WSREP: Assign initial position for certification: 7, protocol version: 2
WSREP_SST: [ERROR] innobackupex finished with error: 25. Check /var/lib/mysql//innobackup.backup.log (20130427 14:20:41.414)
130427 14:20:41 [ERROR] WSREP: Failed to read from: wsrep_sst_xtrabackup --role ‘donor’ --address ‘joiner.example.com:4444/xtrabackup_sst’ --auth ‘backup:password’ --socket '/var/run/mysqld$
130427 14:20:41 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup --role ‘donor’ --address ‘joiner.example.com:4444/xtrabackup_sst’ --auth ‘backup:.Riptide!’ --socket '/var/r$
130427 14:20:41 [Warning] WSREP: Could not find peer: d48f40ba-af34-11e2-0800-68c73681a738
130427 14:20:41 [Warning] WSREP: 0 (atlantia): State transfer to -1 (left the group) failed: -1 (Operation not permitted)
130427 14:20:41 [Note] WSREP: Shifting DONOR/DESYNCED → JOINED (TO: 7)
130427 14:20:41 [Note] WSREP: Member 0 (donor) synced with group.
130427 14:20:41 [Note] WSREP: Shifting JOINED → SYNCED (TO: 7)
130427 14:20:41 [Note] WSREP: Synchronized with group, ready for connections
130427 14:20:41 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
130427 14:20:43 [Note] WSREP: cleaning up d48f40ba-af34-11e2-0800-68c73681a738 (tcp://xxx.xxx.xxx.xxx:4567)
Any ideas?