Rebase XtraBackup on server version where bug #1080741 is fixed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Medium
|
Alexey Kopytov | ||
2.0 |
Won't Fix
|
Medium
|
Unassigned | ||
2.1 |
Fix Released
|
Medium
|
Alexey Kopytov |
Bug Description
When trying to run a backup using xtrabackup_55 I get a crash almost immediately after starting:
# xtrabackup_55 --backup
xtrabackup_55 version 2.0.3 for Percona Server 5.5.16 Linux (x86_64) (revision id: 470)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /mysqlroot/
xtrabackup: Target instance is assumed as followings.
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
121113 10:54:10 InnoDB: Using Linux native AIO
xtrabackup: using ALL_O_DIRECT
121113 10:54:11 InnoDB: Warning: io_setup() failed with EAGAIN. Will make 5 attempts before giving up.
InnoDB: Warning: io_setup() attempt 1 failed.
InnoDB: Warning: io_setup() attempt 2 failed.
InnoDB: Warning: io_setup() attempt 3 failed.
InnoDB: Warning: io_setup() attempt 4 failed.
InnoDB: Warning: io_setup() attempt 5 failed.
121113 10:54:13 InnoDB: Error: io_setup() failed with EAGAIN after 5 attempts.
InnoDB: You can disable Linux Native AIO by setting innodb_native_aio = off in my.cnf
Segmentation fault (core dumped)
Just running 'xtrabackup --backup' correctly starts a backup.
I've attached the my.cnf and core file.
Related branches
- Laurynas Biveinis (community): Approve
-
Diff: 4471 lines (+762/-724)12 files modifiedMakefile (+9/-39)
patches/innodb51.patch (+87/-88)
patches/innodb55.patch (+99/-92)
patches/innodb56.patch (+70/-67)
patches/xtradb51.patch (+114/-119)
patches/xtradb55.patch (+238/-228)
src/Makefile (+1/-1)
src/compact.cc (+1/-1)
src/innodb_int.cc (+58/-2)
src/innodb_int.h (+52/-2)
src/xtrabackup.cc (+8/-12)
utils/build.sh (+25/-73)
Dan,
It is an InnoDB bug: http:// bugs.mysql. com/bug. php?id= 61575
The workaround is to set /proc/sys/ fs/aio- max-nr to a higher value according to http:// dev.mysql. com/doc/ innodb/ 1.1/en/ innodb- performance- aio-linux. html
In XtraBackup 2.0.4 (with bug #1068459 fixed) it will also be possible to disable native AIO, as it is not actually used at the --backup stage anyway.