innobackupex stream corrupted "xb_stream_read_chunk(): wrong chunk magic at offset 0x0"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Invalid
|
Undecided
|
Unassigned | ||
2.2 |
Fix Released
|
Medium
|
Sergei Glushchenko | ||
2.3 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
version : 2.2.5 above
Problem : do not pass chunk magic test
Error Message : xb_stream_
Command : xbstream -x < backup.xbs -C /backup2
backup option : using xstream option
[mysqld]
datadir = /data/mysql
tmpdir = /data/mytmp
innodb_
innodb_
innodb_
........
We do not have set innodb_
Restore database using backup set that innodbex with xstream option.
I dug into xbstream source code and find to check chunk magic value. So I open the backup file.
The file start with
"innobackupex:: Warning: Ignored unrecognized line 5 in options : 'innodb_
'"
It make trouble. anyway I solve this cause.
Solution is modified innobackupex perl script
AS-IS
# unknown
print("$prefix: Warning: Ignored unrecognized line ",
$i + 1,
" in options : '${lines[$i]}'\n"
);
=>
# unknown
print ("$prefix: Warning: Ignored unrecognized line ",
$i + 1,
" in options : '${lines[$i]}'\n"
);
To-BE
# unknown
print("$prefix: Warning: Ignored unrecognized line ",
$i + 1,
" in options : '${lines[$i]}'\n"
);
=>
# unknown
print STDERR ("$prefix: Warning: Ignored unrecognized line ",
$i + 1,
" in options : '${lines[$i]}'\n"
);
tags: | added: innobackupex |
Changed in percona-xtradb-cluster: | |
assignee: | nobody → orakenneth@gmail.com (orakenneth) |
affects: | percona-xtradb-cluster → percona-xtrabackup |
Changed in percona-xtrabackup: | |
assignee: | orakenneth@gmail.com (orakenneth) → nobody |
summary: |
- innobackup stream backup dose not passed Chunk magic value + innobackup stream stream corrupted "xb_stream_read_chunk(): wrong chunk + magic at offset 0x0" |
summary: |
- innobackup stream stream corrupted "xb_stream_read_chunk(): wrong chunk - magic at offset 0x0" + innobackupex stream stream corrupted "xb_stream_read_chunk(): wrong + chunk magic at offset 0x0" |
summary: |
- innobackupex stream stream corrupted "xb_stream_read_chunk(): wrong - chunk magic at offset 0x0" + innobackupex stream corrupted "xb_stream_read_chunk(): wrong chunk magic + at offset 0x0" |
version_check may also cause trouble