In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Using innobackupex for database backup, the following error is reported:
Innobackupex-compress-parallel=4-user=root-password=yoon / export/backup/
Xtrabackup_56 version 2.1.9 for MySQL server 5.6.17 Linux (x86x64) (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.
There is no problem in the production library backup, but there is a problem in the virtual machine backup!
Percona said to modify the configuration file path permissions:
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/ problem remains!
The error always prompts ib_logfile0, and the ib_logfile parameter exists in the configuration file:
InnoDB: File. / ib_logfile0: 'open' returned OS error 71. Cannot continue operation
Back up the specified parameter file again:
[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 InnoDB Backup Utility 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:
Http://www.percona.com/xb/p
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-21th 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_56 version 2.1.9 for MySQL server 5.6.17 Linux (x86x64) (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-21A 22-12-52/ibdata1.qp
[03] Compressing / export/data/mysql/data/ibdata2 to / export/backup/2016-01-21A 22-12-52/ibdata2.qp
[02] Compressing / export/data/mysql/undo/undo001 to / export/backup/2016-01-21A 22-12-52/undo001.qp
[01] Compressing / export/data/mysql/undo/undo002 to / export/backup/2016-01-21A 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-21A 22-12-52/undo003.qp
[02] Compressing / export/data/mysql/undo/undo004 to / export/backup/2016-01-21A 22-12-52/undo004.qp
[02]... done
[01]... done
[02] Compressing. / mysql/innodb_index_stats.ibd to / export/backup/2016-01-21A 22-12-52/mysql/innodb_index_stats.ibd.qp
[02]... done
[01] Compressing. / mysql/innodb_table_stats.ibd to / export/backup/2016-01-21A 22-12-52/mysql/innodb_table_stats.ibd.qp
[01]... done
[02] Compressing. / mysql/slave_master_info.ibd to / export/backup/2016-01-21A 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-21A 22-12-52/mysql/slave_relay_log_info.ibd.qp
[01]... done
[02] Compressing. / mysql/slave_worker_info.ibd to / export/backup/2016-01-21A 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 January 22-12-52 * 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 September 22-12-52 use xtrabackupply logically copided '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-2111 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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.