To back up database data using the INNOBACKUPEX command error message The log file size is inconsistent with the settings in the configuration file workaround

Source: Internet
Author: User

Problem Description:

The following error is prompted when backing up the MARIADB database using the Xtrabackup tool:

InnoDB:Error:log file./ib_logfile0 is of different size 5242880 Bytesinnodb:than specified in the. cnf file 50331648 b Ytes!innobackupex:error:the Xtrabackup child process had died At/usr/bin/innobackupex line 2672.

The database is installed in a common binary format, and the configuration file is the my-large.cnf file in the replicated Support-files directory.

The default innodb_log_file_size size in this profile is 64M, and other types of profiles are different, while there are two ib_logfile in the database data directory, IB_LOGFILE0 and Ib_logfile1, The size of the two file is 5M:

[Email protected] data]# LS-LH ib_logfile0 IB_LOGFILE1-RW-RW----1 Nobody nobody 5.0M Sep 9 00:29 IB_LOGFILE0-RW-RW---- 1 Nobody nobody 5.0M Sep 9 00:29 ib_logfile1

Workaround:

The log file can be rebuilt by backing up the log and removing the log in the data directory, but in order to avoid the hassle of recovering data later, instead of deleting the files in the data directory, the Innodb_log_file_size parameter is set to 5 m in the configuration file, which is not enabled by default. Although not enabled, there is a default value, but the default value is inconsistent with the actual ib_logfile numeric size, causing the Innobackupex command to check for inconsistencies in the setting of these parameters during execution and to abort the backup process. After modifying the configuration file after the parameter is 5M, then perform the backup operation will be smooth.


To back up database data using the INNOBACKUPEX command error message The log file size is inconsistent with the settings in the configuration file workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.