Unjust "Too many open files"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Fix Released
|
Medium
|
Hrvoje Matijakovic | ||
2.0 |
Fix Released
|
Medium
|
Hrvoje Matijakovic | ||
2.1 |
Fix Released
|
Medium
|
Hrvoje Matijakovic | ||
2.2 |
Fix Released
|
Medium
|
Hrvoje Matijakovic |
Bug Description
After upgrading from xtrabackup 2.0.7 to 2.1.3 backups fail.
The 2.1.3 error output is below. However, the mentioned databasename/
Downgrading to 2.0.7 allows me to make a backup again. I tried to start a new slave of this backup, and that works fine.
xtrabackup: Target instance is assumed as followings.
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: innodb_
xtrabackup: using O_DIRECT
130523 13:33:54 InnoDB: Warning: allocated tablespace 10, old maximum was 9
130523 13:33:54 InnoDB: Operating system error number 24 in a file operation.
InnoDB: Error number 24 means 'Too many open files'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://
InnoDB: Error: could not open single-table tablespace file
InnoDB: ./<databasename
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_
InnoDB: and force InnoDB to continue crash recovery here.
Related branches
- Alexey Kopytov (community): Approve
-
Diff: 260 lines (+54/-31)11 files modifieddoc/source/faq.rst (+5/-0)
doc/source/glossary.rst (+1/-1)
doc/source/howtos/recipes_ibkx_partition.rst (+4/-3)
doc/source/index.rst (+3/-3)
doc/source/innobackupex/innobackupex_script.rst (+1/-1)
doc/source/innobackupex/partial_backups_innobackupex.rst (+3/-3)
doc/source/innobackupex/restoring_individual_tables_ibk.rst (+24/-11)
doc/source/percona-theme/layout.html (+1/-1)
doc/source/xtrabackup_bin/restoring_individual_tables.rst (+10/-6)
doc/source/xtrabackup_bin/xbk_option_reference.rst (+1/-1)
doc/source/xtrabackup_bin/xtrabackup_binary.rst (+1/-1)
- Alexey Kopytov (community): Approve
-
Diff: 247 lines (+53/-30)10 files modifieddoc/source/faq.rst (+5/-0)
doc/source/glossary.rst (+1/-1)
doc/source/howtos/recipes_ibkx_partition.rst (+4/-3)
doc/source/index.rst (+3/-3)
doc/source/innobackupex/innobackupex_script.rst (+1/-1)
doc/source/innobackupex/partial_backups_innobackupex.rst (+3/-3)
doc/source/innobackupex/restoring_individual_tables_ibk.rst (+24/-11)
doc/source/xtrabackup_bin/restoring_individual_tables.rst (+10/-6)
doc/source/xtrabackup_bin/xbk_option_reference.rst (+1/-1)
doc/source/xtrabackup_bin/xtrabackup_binary.rst (+1/-1)
- Alexey Kopytov (community): Approve
-
Diff: 247 lines (+53/-30)10 files modifiedxtrabackup/doc/source/faq.rst (+5/-0)
xtrabackup/doc/source/glossary.rst (+1/-1)
xtrabackup/doc/source/howtos/recipes_ibkx_partition.rst (+4/-3)
xtrabackup/doc/source/index.rst (+3/-3)
xtrabackup/doc/source/innobackupex/innobackupex_script.rst (+1/-1)
xtrabackup/doc/source/innobackupex/partial_backups_innobackupex.rst (+3/-3)
xtrabackup/doc/source/innobackupex/restoring_individual_tables_ibk.rst (+24/-11)
xtrabackup/doc/source/xtrabackup_bin/restoring_individual_tables.rst (+10/-6)
xtrabackup/doc/source/xtrabackup_bin/xbk_option_reference.rst (+1/-1)
xtrabackup/doc/source/xtrabackup_bin/xtrabackup_binary.rst (+1/-1)
The reason is that with the fix for bug #1079700 XtraBackup does not reuse file descriptors for multiple tablespaces and keeps them open until the corresponding tablespaces are copied into the backup.
This is the only reliable way to fix bug #1079700 and similar ones. The downside is that the operating system limit on the number of open files for the user under which xtrabackup is running must be high enough to allow opening all tablespaces simultaneously.
We should document this for both 2.0 (when the fix for bug #1079700 is released in 2.0.8) and 2.1. Converting to a doc request.