innobackupex:Error:xtrabackup child process has died at /usr/bin/innobackupex
使用innobackupex進行資料庫備份,報如下錯誤:
innobackupex --compress --parallel=4 --user=root --password=yoon /export/backup/
xtrabackup_56 version 2.1.9 for MySQL server 5.6.17 Linux (x86_64) (revision id: 744)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /var/lib/mysql
xtrabackup: open files limit requested 0, set to 1024
xtrabackup: using the following InnoDB configuration:
xtrabackup: innodb_data_home_dir = ./
xtrabackup: innodb_data_file_path = ibdata1:10M:autoextend
xtrabackup: innodb_log_group_home_dir = ./
xtrabackup: innodb_log_files_in_group = 2
xtrabackup: innodb_log_file_size = 50331648
2016-01-21 21:41:29 7f343333b720 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: File ./ib_logfile0: 'open' returned OS error 71. Cannot continue operation
innobackupex: Error: The xtrabackup child process has died at /usr/bin/innobackupex line 2622.
在生產庫備份沒問題,在虛擬機器備份就出問題!
percona說修改配置檔案路徑許可權:
https://www.percona.com/forums/questions-discussions/percona-xtrabackup/13396-file-name-ib_logfile0-innodb-file-operation-call-open-returned-os-error-71
[root@hank-yoon mysql]# ls -ltr
total 180
-rw-r--r--. 1 root root 2496 Jul 15 2015 README
-rw-r--r--. 1 root root 17987 Jul 15 2015 COPYING
-rw-r--r--. 1 root root 104897 Jul 15 2015 INSTALL-BINARY
drwxr-xr-x. 2 root root 4096 Dec 19 18:39 docs
drwxr-xr-x. 3 root root 4096 Dec 19 18:39 include
drwxr-xr-x. 4 root root 4096 Dec 19 18:39 man
drwxr-xr-x. 3 root root 4096 Dec 19 18:39 data
drwxr-xr-x. 3 root root 4096 Dec 19 18:39 lib
drwxr-xr-x. 2 root root 4096 Dec 19 18:39 scripts
drwxr-xr-x. 2 root root 4096 Dec 19 18:39 bin
drwxr-xr-x. 10 root root 4096 Dec 19 18:39 mysql-test
drwxr-xr-x. 2 root root 4096 Dec 19 18:39 support-files
drwxr-xr-x. 28 root root 4096 Dec 19 18:39 share
drwxr-xr-x. 4 root root 4096 Dec 19 18:39 sql-bench
-rw-r--r--. 1 root root 943 Dec 19 18:39 my.cnf
drwxr-xr-x. 2 root root 4096 Dec 19 18:40 etc
[root@hank-yoon mysql]# chown -R mysql.mysql etc/ 問題依舊!
報錯總是提示ib_logfile0,在配置檔案中ib_logfile引數是存在的:
InnoDB: File ./ib_logfile0: 'open' returned OS error 71. Cannot continue operation
重新備份指定引數檔案:
[root@hank-yoon backup]# innobackupex --compress --parallel=4 --defaults-file=/export/servers/mysql/etc/my.cnf --user=root --password=yoon /export/backup/
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona LLC and/or its affiliates 2009-2013. All Rights Reserved.
This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
Get the latest version of Percona XtraBackup, documentation, and help resources:
160121 22:12:52 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_file=/export/servers/mysql/etc/my.cnf;mysql_read_default_group=xtrabackup' as 'root' (using password: YES).
160121 22:12:52 innobackupex: Connected to MySQL server
160121 22:12:52 innobackupex: Executing a version check against the server...
160121 22:12:52 innobackupex: Done.
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
innobackupex: Using mysql server version 5.6.26-log
innobackupex: Created backup directory /export/backup/2016-01-21_22-12-52
160121 22:12:52 innobackupex: Starting ibbackup with command: xtrabackup_56 --defaults-file="/export/servers/mysql/etc/my.cnf" --defaults-group="mysqld" --backup --suspend-at-end --target-dir=/export/backup/2016-01-21_22-12-52 --tmpdir=/export/data/mysql/tmp --compress --compress-threads=1 --parallel=4
innobackupex: Waiting for ibbackup (pid=5476) to suspend
innobackupex: Suspend file '/export/backup/2016-01-21_22-12-52/xtrabackup_suspended_2'
xtrabackup_56 version 2.1.9 for MySQL server 5.6.17 Linux (x86_64) (revision id: 744)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /export/data/mysql/data/
xtrabackup: open files limit requested 65535, set to 65535
xtrabackup: using the following InnoDB configuration:
xtrabackup: innodb_data_home_dir = /export/data/mysql/data
xtrabackup: innodb_data_file_path = ibdata1:2G;ibdata2:2G:autoextend
xtrabackup: innodb_log_group_home_dir = /export/data/mysql/data
xtrabackup: innodb_log_files_in_group = 3
xtrabackup: innodb_log_file_size = 268435456
2016-01-21 22:12:52 7fa03bee9720 InnoDB: Using Linux native AIO
xtrabackup: using O_DIRECT
>> log scanned up to (1510934)
InnoDB: Opened 4 undo tablespaces
xtrabackup: Starting 4 threads for parallel data files transfer
[04] Compressing /export/data/mysql/data/ibdata1 to /export/backup/2016-01-21_22-12-52/ibdata1.qp
[03] Compressing /export/data/mysql/data/ibdata2 to /export/backup/2016-01-21_22-12-52/ibdata2.qp
[02] Compressing /export/data/mysql/undo/undo001 to /export/backup/2016-01-21_22-12-52/undo001.qp
[01] Compressing /export/data/mysql/undo/undo002 to /export/backup/2016-01-21_22-12-52/undo002.qp
[02] ...done
[01] ...done
>> log scanned up to (1510934)
[01] Compressing /export/data/mysql/undo/undo003 to /export/backup/2016-01-21_22-12-52/undo003.qp
[02] Compressing /export/data/mysql/undo/undo004 to /export/backup/2016-01-21_22-12-52/undo004.qp
[02] ...done
[01] ...done
[02] Compressing ./mysql/innodb_index_stats.ibd to /export/backup/2016-01-21_22-12-52/mysql/innodb_index_stats.ibd.qp
[02] ...done
[01] Compressing ./mysql/innodb_table_stats.ibd to /export/backup/2016-01-21_22-12-52/mysql/innodb_table_stats.ibd.qp
[01] ...done
[02] Compressing ./mysql/slave_master_info.ibd to /export/backup/2016-01-21_22-12-52/mysql/slave_master_info.ibd.qp
[02] ...done
>> log scanned up to (1510934)
[01] Compressing ./mysql/slave_relay_log_info.ibd to /export/backup/2016-01-21_22-12-52/mysql/slave_relay_log_info.ibd.qp
[01] ...done
[02] Compressing ./mysql/slave_worker_info.ibd to /export/backup/2016-01-21_22-12-52/mysql/slave_worker_info.ibd.qp
[02] ...done
>> log scanned up to (1510934)
>> log scanned up to (1510934)
>> log scanned up to (1510934)
>> log scanned up to (1510934)
[04] ...done
[03] ...done
xtrabackup: Creating suspend file '/export/backup/2016-01-21_22-12-52/xtrabackup_suspended_2' with pid '5476'
160121 22:12:59 innobackupex: Continuing after ibbackup has suspended
160121 22:12:59 innobackupex: Starting to lock all tables...
160121 22:12:59 innobackupex: All tables locked and flushed to disk
160121 22:12:59 innobackupex: Starting to backup non-InnoDB tables and files
innobackupex: in subdirectories of '/export/data/mysql/data/'
innobackupex: Backing up files '/export/data/mysql/data//mysql/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (74 files)
>> log scanned up to (1510934)
innobackupex: Backing up files '/export/data/mysql/data//performance_schema/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (53 files)
160121 22:13:00 innobackupex: Finished backing up non-InnoDB tables and files
160121 22:13:00 innobackupex: Waiting for log copying to finish
xtrabackup: The latest check point (for incremental): '1510934'
xtrabackup: Stopping log copying thread.
.>> log scanned up to (1510934)
xtrabackup: Creating suspend file '/export/backup/2016-01-21_22-12-52/xtrabackup_log_copied' with pid '5476'
xtrabackup: Transaction log of lsn (1510934) to (1510934) was copied.
160121 22:13:01 innobackupex: All tables unlocked
innobackupex: Backup created in directory '/export/backup/2016-01-21_22-12-52'
innobackupex: MySQL binlog position: filename 'mysql-bin.000007', position 120
160121 22:13:01 innobackupex: Connection to database server closed
160121 22:13:01 innobackupex: completed OK!
innobackupex --compress --parallel=4 --user=root --password=yoon /export/backup/
xtrabackup_56 version 2.1.9 for MySQL server 5.6.17 Linux (x86_64) (revision id: 744)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /var/lib/mysql
xtrabackup: open files limit requested 0, set to 1024
xtrabackup: using the following InnoDB configuration:
xtrabackup: innodb_data_home_dir = ./
xtrabackup: innodb_data_file_path = ibdata1:10M:autoextend
xtrabackup: innodb_log_group_home_dir = ./
xtrabackup: innodb_log_files_in_group = 2
xtrabackup: innodb_log_file_size = 50331648
2016-01-21 21:41:29 7f343333b720 InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: File ./ib_logfile0: 'open' returned OS error 71. Cannot continue operation
innobackupex: Error: The xtrabackup child process has died at /usr/bin/innobackupex line 2622.
在生產庫備份沒問題,在虛擬機器備份就出問題!
percona說修改配置檔案路徑許可權:
https://www.percona.com/forums/questions-discussions/percona-xtrabackup/13396-file-name-ib_logfile0-innodb-file-operation-call-open-returned-os-error-71
[root@hank-yoon mysql]# ls -ltr
total 180
-rw-r--r--. 1 root root 2496 Jul 15 2015 README
-rw-r--r--. 1 root root 17987 Jul 15 2015 COPYING
-rw-r--r--. 1 root root 104897 Jul 15 2015 INSTALL-BINARY
drwxr-xr-x. 2 root root 4096 Dec 19 18:39 docs
drwxr-xr-x. 3 root root 4096 Dec 19 18:39 include
drwxr-xr-x. 4 root root 4096 Dec 19 18:39 man
drwxr-xr-x. 3 root root 4096 Dec 19 18:39 data
drwxr-xr-x. 3 root root 4096 Dec 19 18:39 lib
drwxr-xr-x. 2 root root 4096 Dec 19 18:39 scripts
drwxr-xr-x. 2 root root 4096 Dec 19 18:39 bin
drwxr-xr-x. 10 root root 4096 Dec 19 18:39 mysql-test
drwxr-xr-x. 2 root root 4096 Dec 19 18:39 support-files
drwxr-xr-x. 28 root root 4096 Dec 19 18:39 share
drwxr-xr-x. 4 root root 4096 Dec 19 18:39 sql-bench
-rw-r--r--. 1 root root 943 Dec 19 18:39 my.cnf
drwxr-xr-x. 2 root root 4096 Dec 19 18:40 etc
[root@hank-yoon mysql]# chown -R mysql.mysql etc/ 問題依舊!
報錯總是提示ib_logfile0,在配置檔案中ib_logfile引數是存在的:
InnoDB: File ./ib_logfile0: 'open' returned OS error 71. Cannot continue operation
重新備份指定引數檔案:
[root@hank-yoon backup]# innobackupex --compress --parallel=4 --defaults-file=/export/servers/mysql/etc/my.cnf --user=root --password=yoon /export/backup/
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona LLC and/or its affiliates 2009-2013. All Rights Reserved.
This software is published under
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.
Get the latest version of Percona XtraBackup, documentation, and help resources:
160121 22:12:52 innobackupex: Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_file=/export/servers/mysql/etc/my.cnf;mysql_read_default_group=xtrabackup' as 'root' (using password: YES).
160121 22:12:52 innobackupex: Connected to MySQL server
160121 22:12:52 innobackupex: Executing a version check against the server...
160121 22:12:52 innobackupex: Done.
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
innobackupex: Using mysql server version 5.6.26-log
innobackupex: Created backup directory /export/backup/2016-01-21_22-12-52
160121 22:12:52 innobackupex: Starting ibbackup with command: xtrabackup_56 --defaults-file="/export/servers/mysql/etc/my.cnf" --defaults-group="mysqld" --backup --suspend-at-end --target-dir=/export/backup/2016-01-21_22-12-52 --tmpdir=/export/data/mysql/tmp --compress --compress-threads=1 --parallel=4
innobackupex: Waiting for ibbackup (pid=5476) to suspend
innobackupex: Suspend file '/export/backup/2016-01-21_22-12-52/xtrabackup_suspended_2'
xtrabackup_56 version 2.1.9 for MySQL server 5.6.17 Linux (x86_64) (revision id: 744)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /export/data/mysql/data/
xtrabackup: open files limit requested 65535, set to 65535
xtrabackup: using the following InnoDB configuration:
xtrabackup: innodb_data_home_dir = /export/data/mysql/data
xtrabackup: innodb_data_file_path = ibdata1:2G;ibdata2:2G:autoextend
xtrabackup: innodb_log_group_home_dir = /export/data/mysql/data
xtrabackup: innodb_log_files_in_group = 3
xtrabackup: innodb_log_file_size = 268435456
2016-01-21 22:12:52 7fa03bee9720 InnoDB: Using Linux native AIO
xtrabackup: using O_DIRECT
>> log scanned up to (1510934)
InnoDB: Opened 4 undo tablespaces
xtrabackup: Starting 4 threads for parallel data files transfer
[04] Compressing /export/data/mysql/data/ibdata1 to /export/backup/2016-01-21_22-12-52/ibdata1.qp
[03] Compressing /export/data/mysql/data/ibdata2 to /export/backup/2016-01-21_22-12-52/ibdata2.qp
[02] Compressing /export/data/mysql/undo/undo001 to /export/backup/2016-01-21_22-12-52/undo001.qp
[01] Compressing /export/data/mysql/undo/undo002 to /export/backup/2016-01-21_22-12-52/undo002.qp
[02] ...done
[01] ...done
>> log scanned up to (1510934)
[01] Compressing /export/data/mysql/undo/undo003 to /export/backup/2016-01-21_22-12-52/undo003.qp
[02] Compressing /export/data/mysql/undo/undo004 to /export/backup/2016-01-21_22-12-52/undo004.qp
[02] ...done
[01] ...done
[02] Compressing ./mysql/innodb_index_stats.ibd to /export/backup/2016-01-21_22-12-52/mysql/innodb_index_stats.ibd.qp
[02] ...done
[01] Compressing ./mysql/innodb_table_stats.ibd to /export/backup/2016-01-21_22-12-52/mysql/innodb_table_stats.ibd.qp
[01] ...done
[02] Compressing ./mysql/slave_master_info.ibd to /export/backup/2016-01-21_22-12-52/mysql/slave_master_info.ibd.qp
[02] ...done
>> log scanned up to (1510934)
[01] Compressing ./mysql/slave_relay_log_info.ibd to /export/backup/2016-01-21_22-12-52/mysql/slave_relay_log_info.ibd.qp
[01] ...done
[02] Compressing ./mysql/slave_worker_info.ibd to /export/backup/2016-01-21_22-12-52/mysql/slave_worker_info.ibd.qp
[02] ...done
>> log scanned up to (1510934)
>> log scanned up to (1510934)
>> log scanned up to (1510934)
>> log scanned up to (1510934)
[04] ...done
[03] ...done
xtrabackup: Creating suspend file '/export/backup/2016-01-21_22-12-52/xtrabackup_suspended_2' with pid '5476'
160121 22:12:59 innobackupex: Continuing after ibbackup has suspended
160121 22:12:59 innobackupex: Starting to lock all tables...
160121 22:12:59 innobackupex: All tables locked and flushed to disk
160121 22:12:59 innobackupex: Starting to backup non-InnoDB tables and files
innobackupex: in subdirectories of '/export/data/mysql/data/'
innobackupex: Backing up files '/export/data/mysql/data//mysql/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (74 files)
>> log scanned up to (1510934)
innobackupex: Backing up files '/export/data/mysql/data//performance_schema/*.{frm,isl,MYD,MYI,MAD,MAI,MRG,TRG,TRN,ARM,ARZ,CSM,CSV,opt,par}' (53 files)
160121 22:13:00 innobackupex: Finished backing up non-InnoDB tables and files
160121 22:13:00 innobackupex: Waiting for log copying to finish
xtrabackup: The latest check point (for incremental): '1510934'
xtrabackup: Stopping log copying thread.
.>> log scanned up to (1510934)
xtrabackup: Creating suspend file '/export/backup/2016-01-21_22-12-52/xtrabackup_log_copied' with pid '5476'
xtrabackup: Transaction log of lsn (1510934) to (1510934) was copied.
160121 22:13:01 innobackupex: All tables unlocked
innobackupex: Backup created in directory '/export/backup/2016-01-21_22-12-52'
innobackupex: MySQL binlog position: filename 'mysql-bin.000007', position 120
160121 22:13:01 innobackupex: Connection to database server closed
160121 22:13:01 innobackupex: completed OK!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28939273/viewspace-1980452/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Sub-process /usr/bin/dpkg returned an error codeError
- WSL:Sub-process /usr/bin/dpkg returned an error code (1)Error
- innobackupex遠端備份
- XtraBackup工具詳解 Part 5 使用innobackupex對資料庫進行全備資料庫
- innobackupex全備份流程圖流程圖
- 基於percona xtrabackup之innobackupex實現基於時間點資料庫恢復資料庫
- Git bash Error: Could not fork child process: There are no available terminals (-1)GitErrorAI
- innobackupex 備份MySQL資料庫MySql資料庫
- innobackupex 部分表備份和恢復
- /usr/bin/python與/usr/bin/env python的區別Python
- 利用innobackupex備份集恢復指定庫
- innobackupex命令備份全過程圖解圖解
- python中#!/usr/bin/python與#!/usr/bin/env python的區別Python
- /bin、/sbin、/usr/bin、/usr/sbin、/usr/local/sbin放置可執行檔案的區別
- RuntimeError: An attempt has been made to start a new process before the current process hasError
- 在nodejs中建立child processNodeJS
- /usr/bin/ld: cannot find -lopenblas
- Process object has no attribute '_popen'Object
- -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: b...Framework
- innobackupex備份mysql大資料(全量+增量)操作記錄MySql大資料
- /usr/bin/expect的簡單使用
- 【jenkins】/usr/bin/env: php: No such file or directoryJenkinsPHP
- Innobackupex實現mysql線上搭建master-slave主從複製MySqlAST
- MySQL alter table時執行innobackupex全備再看Seconds_Behind_MasterMySqlAST
- Php cli模式下執行報錯/usr/bin/php: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/bin/php)PHP模式XMLORMAIUI
- Node.js child_process模組解讀Node.js
- You don't have write permissions for the /usr/bin directory.
- Authentication is required to run /usr/bin/x-terminal-emulator as rootUI
- Couldn‘t run wireshark in child process:許可權不夠
- MySQL error log和bin logMySqlError
- 一分鐘看懂頭部 shell #!/usr/bin 命令
- mac下/usr/local/bin No such file or directory問題解決Mac
- frepplectl解決報錯:bash: /usr/bin/frepplectl: Permission denied
- 關於/usr/bin/ld: cannot find -lXX的問題
- win10系統頻繁藍屏critical process died怎麼修復Win10
- Fatal error in launcher: Unable to create process using '"'Error
- [PM2][ERROR] Process XXX not foundError
- code EACCESnpm ERR! syscall renamenpm ERR! path /usr/local/bin/webpack errno -13NPMWeb
- android studio Error:Unable to start the daemon process【轉】AndroidError