Bug #35641 | Accidental rsync of data directory caused innodb data loss, but not myisam | ||
---|---|---|---|
Submitted: | 28 Mar 2008 13:04 | Modified: | 11 May 2008 18:08 |
Reporter: | Basil Revelas | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S4 (Feature request) |
Version: | 5.0.27 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | innodb, rsync, running, server |
[28 Mar 2008 13:04]
Basil Revelas
[3 Apr 2008 10:03]
Susanne Ebrecht
Many thanks for writing a feature request. MySQL 5.0.27 is very old. Please could you test it with newer version. Our newest version is MySQL 5.0.51a. Let us now if you still get these problems with newer version or if all will work fine there.
[3 May 2008 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[11 May 2008 18:08]
Basil Revelas
Sorry for the delay in submitting this feedback. I just tested the scenario I originally described with MySQL 5.0.51a. It does in fact appear that InnoDB now checks for this inconsistency and preserves the data. Too bad I wasn't using the latest version when I corrupted my data directory! For anyone interested, this is what now appears in the logs: InnoDB: ########################################################## InnoDB: WARNING! InnoDB: The log sequence number in ibdata files is higher InnoDB: than the log sequence number in the ib_logfiles! Are you sure InnoDB: you are using the right ib_logfiles to start up the database? InnoDB: Log sequence number in ib_logfiles is 0 45395, log InnoDB: sequence numbers stamped to ibdata file headers are between InnoDB: 0 45624 and 0 45624. InnoDB: ########################################################## InnoDB: The log sequence number in ibdata files does not match InnoDB: the log sequence number in the ib_logfiles! 080511 20:56:11 InnoDB: Database was not shut down normally! InnoDB: Starting crash recovery. InnoDB: Reading tablespace information from the .ibd files... InnoDB: Restoring possible half-written data pages from the doublewrite InnoDB: buffer... 080511 20:56:11 InnoDB: Error: page 5 log sequence number 0 45405 InnoDB: is in the future! Current system log sequence number 0 45395. InnoDB: Your database may be corrupt or you may have copied the InnoDB InnoDB: tablespace but not the InnoDB log files. See InnoDB: http://dev.mysql.com/doc/refman/5.0/en/forcing-recovery.html InnoDB: for more information. 080511 20:56:11 InnoDB: Error: page 45 log sequence number 0 45624 InnoDB: is in the future! Current system log sequence number 0 45395. InnoDB: Your database may be corrupt or you may have copied the InnoDB InnoDB: tablespace but not the InnoDB log files. See InnoDB: http://dev.mysql.com/doc/refman/5.0/en/forcing-recovery.html InnoDB: for more information. 080511 20:56:12 InnoDB: Started; log sequence number 0 45395 080511 20:56:12 [Note] /home/basil/download/mysql-5.0.51a-linux-i686-glibc23/bin/mysqld: ready for connections. Version: '5.0.51a' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL) Thanks, Basil