xtrabackup fail in stream mode - The file 'ibdata1' may not be InnoDB datafile or may be corrupted.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Incomplete
|
Medium
|
Unassigned |
Bug Description
Fresh db (Percona-
mysqldump , remove ib* file deleted, mysql restore from mysqldump.
After this i run xtrabackup in streaming mode
innobackupex: Using mysql Ver 14.14 Distrib 5.1.47, for unknown-linux-gnu (x86_64) using readline 5.1
innobackupex: Using mysql server version Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
innobackupex: Created backup directory /tmp
100828 18:28:03 innobackupex: Starting mysql with options: --password=***** --user=root --unbuffered --
100828 18:28:03 innobackupex: Connected to database with mysql child process (pid=23969)
100828 18:28:11 innobackupex: Connection to database server closed
100828 18:28:11 innobackupex: Starting mysql with options: --password=***** --user=root --unbuffered --
100828 18:28:11 innobackupex: Connected to database with mysql child process (pid=23982)
100828 18:28:15 innobackupex: Connection to database server closed
100828 18:28:15 innobackupex: Starting ibbackup with command: xtrabackup --backup --suspend-at-end --log-stream --target-dir=./ --throttle=50
innobackupex: Waiting for ibbackup (pid=23988) to suspend
innobackupex: Suspend file '/var/lib/
xtrabackup: suspend-at-end is enabled.
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /var/lib/mysql
xtrabackup: Target instance is assumed as followings.
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: Stream mode.
100828 18:28:17 innobackupex: Continuing after ibbackup has suspended
innobackupex: Starting to backup InnoDB tables and indexes
innobackupex: from original InnoDB data directory '/var/lib/mysql'
innobackupex: Backing up as tar stream 'ibdata1'
The file 'ibdata1' may not be InnoDB datafile or may be corrupted.
tar_append_
innobackupex: tar returned with exit code 255.
innobackupex: Error: Failed to stream 'ibdata1': at /usr/bin/
Changed in percona-xtrabackup: | |
assignee: | nobody → Alexey Kopytov (akopytov) |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → 1.6 |
Changed in percona-xtrabackup: | |
status: | Confirmed → New |
After some talking with Peter Zaitsev we found that in nonstream mode backup work properly, but with these message
xtrabackup: innodb_ log_file_ size = 1073741824 2010-11- 06_21-14- 07/ibdata1
>> log scanned up to (258630780823)
Copying ./ibdata1
to /home/backup/
xtrabackup: Page 64 seems double write buffer. passing the check.
xtrabackup: Page 65 seems double write buffer. passing the check.
...
xtrabackup: Page 191 seems double write buffer. passing the check.
>> log scanned up to (258630816455)
in stream mode tar4ibd stop read data file after 67 x 16K read,
strace 300\0\0\ 0>\0\0\ 7\0\0\0\ 4\36\0\ 0\0;C+\ 362/E\277\ 0\0\0\0\ 0\0"... , 16384) = 16384 300\0\0\ 0>\0\0\ 7\0\0\0\ 4\36\0\ 0\0;C+\ 362/E\277\ 0\0\0\0\ 0\0"... , 512) = 512
...
read(3, "1C\341\
write(1, "1C\341\
....
write(1, "\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0"..., 512) = 512 375W\0\ f\0\1\0\ 0\0\0\0\ 0\0\0\0\ 0\0<\\\ 226\204\ 326\0\5\ 0\0\0\0\ 0\0"... , 16384) = 16384 375W\0\ f\0\1\0\ 0\0\0\0\ 0\0\0\0\ 0\0<\\\ 226\204\ 326\0\5\ 0\0\0\0\ 0\0"... , 16384) = 16384 375W\0\ f\0\1\0\ 0\0\0\0\ 0\0\0\0\ 0\0<\\\ 226\204\ 326\0\5\ 0\0\0\0\ 0\0"... , 16384) = 16384 375W\0\ f\0\1\0\ 0\0\0\0\ 0\0\0\0\ 0\0<\\\ 226\204\ 326\0\5\ 0\0\0\0\ 0\0"... , 16384) = 16384 375W\0\ f\0\1\0\ 0\0\0\0\ 0\0\0\0\ 0\0<\\\ 226\204\ 326\0\5\ 0\0\0\0\ 0\0"... , 16384) = 16384 375W\0\ f\0\1\0\ 0\0\0\0\ 0\0\0\0\ 0\0<\\\ 226\204\ 326\0\5\ 0\0\0\0\ 0\0"... , 16384) = 16384 375W\0\ f\0\1\0\ 0\0\0\0\ 0\0\0\0\ 0\0<\\\ 226\204\ 326\0\5\ 0\0\0\0\ 0\0"... , 16384) = 16384 375W\0\ f\0\1\0\ 0\0\0\0\ 0\0\0\0\ 0\0<\\\ 226\204\ 326\0\5\ 0\0\0\0\ 0\0"... , 16384) = 16384 375W\0\ f\0\1\0\ 0\0\0\0\ 0\0\0\0\ 0\0<\\\ 226\204\ 326\0\5\ 0\0\0\0\ 0\0"... , 16384) = 16384 375W\0\ f\0\1\0\ 0\0\0\0\ 0\0\0\0\ 0\0<\\\ 226\204\ 326\0\5\ 0\0\0\0\ 0\0"... , 16384) = 16384 375W\0\ f\0\1\0\ 0\0\0\0\ 0\0\0\0\ 0\0<\\\ 226\204\ 326\0\5\ 0\0\0\0\ 0\0"... , 16384) = 16384 tree(\" ibdata1\ ", \"ibda"..., 58) = 58
read(3, "'\361\
lseek(3, -16384, SEEK_CUR) = 1048576
read(3, "'\361\
lseek(3, -16384, SEEK_CUR) = 1048576
read(3, "'\361\
lseek(3, -16384, SEEK_CUR) = 1048576
read(3, "'\361\
lseek(3, -16384, SEEK_CUR) = 1048576
read(3, "'\361\
lseek(3, -16384, SEEK_CUR) = 1048576
read(3, "'\361\
lseek(3, -16384, SEEK_CUR) = 1048576
read(3, "'\361\
lseek(3, -16384, SEEK_CUR) = 1048576
read(3, "'\361\
lseek(3, -16384, SEEK_CUR) = 1048576
read(3, "'\361\
lseek(3, -16384, SEEK_CUR) = 1048576
read(3, "'\361\
lseek(3, -16384, SEEK_CUR) = 1048576
read(3, "'\361\
write(2, "The file 'ibdata1' may not be In"..., 67) = 67
write(2, "tar_append_