not reading correct innodb_log_file_size in mysql4.0 cnf file

Bug #372054 reported by ts77
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Medium
Fred Linhoss

Bug Description

I've got a mysql-4.0.27 setup on x86_64 which has the following in its my.cnf:
set-variable = innodb_log_file_size=512M
set-variable = innodb_log_files_in_group=2

xtrabackup incorrectly reports:
xtrabackup: innodb_log_files_in_group = 2
xtrabackup: innodb_log_file_size = 5242880
InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0 536870912 bytes
InnoDB: than specified in the .cnf file 0 5242880 bytes!

changing my.cnf to
innodb_log_file_size=512M
innodb_log_files_in_group=2

solves this but I assume, that xtrabackup should read the set-variable settings too as mysql does.

Changed in percona-xtrabackup:
importance: Undecided → Wishlist
Revision history for this message
Robin Bowes (robinbowes) wrote :

I've just hit this - to me it's a definite bug.

xtrabackup should read my.cnf *exactly* like mysql does.

Changed in percona-xtrabackup:
importance: Wishlist → Undecided
assignee: nobody → Aleksandr Kuzminsky (akuzminsky)
milestone: none → release-1.3
Changed in percona-xtrabackup:
milestone: release-1.3 → 1.3
Changed in percona-xtrabackup:
milestone: 1.3.0 → 1.3.1
Revision history for this message
David Stainton (david-spinn3r) wrote :

Greetings,

I noticed xtrabackup exits with an error message which indicates that it isn't picking up my innodb_log_file_size;
My my.cnf had: set-variable = innodb_log_file_size=524288000

This problem went away when I got rid of the "set-variable = " and only specified the variable=value like this:

innodb_log_file_size=524288000

I hope this helps!

Cheers,
David

Revision history for this message
Peter Zaitsev (pz-percona) wrote : Re: [Bug 372054] Re: not reading correct innodb_log_file_size in mysql4.0 cnf file

David,

I think this is item for documentation rather than to fix.
set-variable is not needed since MySQL 4.0 and I always clean up
my.cnf files once I get my hand on them if I see this option used.

On Mon, Nov 8, 2010 at 11:39 AM, David Stainton <email address hidden> wrote:

>
> Greetings,
>
> I noticed xtrabackup exits with an error message which indicates that it
> isn't picking up my innodb_log_file_size;
> My my.cnf had: set-variable = innodb_log_file_size=524288000
>
> This problem went away when I got rid of the "set-variable = " and only
> specified the variable=value like this:
>
> innodb_log_file_size=524288000
>
> I hope this helps!
>
> Cheers,
> David
>
> --
> not reading correct innodb_log_file_size in mysql4.0 cnf file
> https://bugs.launchpad.net/bugs/372054
> You received this bug notification because you are a member of Percona
> developers, which is the registrant for Percona-XtraBackup.
>
> Status in Open source backup tool for InnoDB and XtraDB: New
>
> Bug description:
> I've got a mysql-4.0.27 setup on x86_64 which has the following in its
> my.cnf:
> set-variable = innodb_log_file_size=512M
> set-variable = innodb_log_files_in_group=2
>
> xtrabackup incorrectly reports:
> xtrabackup: innodb_log_files_in_group = 2
> xtrabackup: innodb_log_file_size = 5242880
> InnoDB: Error: log file /var/lib/mysql/ib_logfile0 is of different size 0
> 536870912 bytes
> InnoDB: than specified in the .cnf file 0 5242880 bytes!
>
> changing my.cnf to
> innodb_log_file_size=512M
> innodb_log_files_in_group=2
>
> solves this but I assume, that xtrabackup should read the set-variable
> settings too as mysql does.
>
>
>

--
Peter Zaitsev, CEO, Percona Inc.
Tel: +1 888 401 3401 ext 501 Skype: peter_zaitsev
24/7 Emergency Line +1 888 401 3401 ext 911

Percona Training Workshops
http://www.percona.com/training/

Revision history for this message
Vadim Tkachenko (vadim-tk) wrote :

Assigned to Fred for documentation

Changed in percona-xtrabackup:
status: New → Confirmed
assignee: Aleksandr Kuzminsky (akuzminsky) → Fred Linhoss (fred-linhoss)
importance: Undecided → Medium
milestone: 1.3.1 → 1.5
Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

I am documenting this limitation now.

Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

Fred, I think this is documented -- please check me and close if you want:

http://www.percona.com/docs/wiki/percona-xtrabackup:xtrabackup:limitations
and
http://www.percona.com/docs/wiki/percona-xtrabackup:xtrabackup:configuration

On Tue, Nov 9, 2010 at 2:05 PM, Baron Schwartz <email address hidden> wrote:
> I am documenting this limitation now.

Changed in percona-xtrabackup:
status: Confirmed → Fix Released
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-527

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.