Bug #65181 | The tablespace free space info is corrupt | ||
---|---|---|---|
Submitted: | 2 May 2012 13:43 | Modified: | 22 May 2012 17:59 |
Reporter: | Alex | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.1.41-3ubuntu12 | OS: | Linux (Ubuntu 10.04 LTS) |
Assigned to: | CPU Architecture: | Any |
[2 May 2012 13:43]
Alex
[2 May 2012 13:45]
Alex
mysql configuration file
Attachment: my.cnf (application/octet-stream, text), 3.64 KiB.
[2 May 2012 13:46]
Alex
mysql error log file
Attachment: error.log (application/octet-stream, text), 452.11 KiB.
[2 May 2012 13:48]
Alex
I want to mention that InnoDB data is stored on raw partitions: [mysqld] .......... innodb_data_home_dir = innodb_data_file_path = /dev/sda9:1Graw innodb_file_per_table = 0 ...........
[2 May 2012 14:53]
Alex
After setting innodb_force_recovery = 2 in my.cnf I tried to make a dump of our databases but with no success. Output of mysqldump: mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `SystemEvents` at row: 384281 and when setting innodb_force_recovery = 4 the error was: mysqldump: Got error: 2013: Lost connection to MySQL server during query when using LOCK TABLES
[2 May 2012 19:30]
Sveta Smirnova
Thank you for the report. I doubt this is Bug #55284: that bug hit assertion in another place. In your case problem is dataspace corruption. Does innodb_force_recovery allows to make dump? Please also check operating system logs in case if there was disk failure.
[3 May 2012 8:49]
Alex
No, we are not able to make a dump using mysqldump. Here are the test we did: innodb_force_recovery = 2 in my.cnf I tried to make a dump of our databases but with no success. Output of mysqldump: mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `SystemEvents` at row: 384281 and when setting innodb_force_recovery = 4 the error was: mysqldump: Got error: 2013: Lost connection to MySQL server during query when using LOCK TABLES There was no disk failure.
[3 May 2012 20:00]
Sveta Smirnova
Thank you for the feedback. But what did you get with innodb_force_recovery = 6?
[9 May 2012 11:41]
Alex
Setting innodb_force_recovery = 6 didn't changed anything. Mysql is starting but I'm not able to make a dump of the database. I'll attache the log file.
[9 May 2012 11:42]
Alex
Log file when setting innodb_force_recovery = 6
Attachment: error2.log (application/octet-stream, text), 3.81 KiB.
[10 May 2012 15:26]
Sveta Smirnova
Thank you for the feedback. I assume mysqldump with default options is not good tool to make backup of corrupted table. Try to use SELECT * INTO OUTFILE
[21 May 2012 7:19]
Alex
After a re-install I was not able to reproduce the problem... even having a dd image of the partition used to store innodb data. I forget to also make a backup of /var/lib/mysql and because of this (I suppose) I'm not able to start mysql not even with innodb_force_recovery = 6 But beside the fact I'm not able to make a dump of mysql data, is the problem reported initially a bug? Thx, Alex
[22 May 2012 17:59]
Sveta Smirnova
Thank you for the feedback. > But beside the fact I'm not able to make a dump of mysql data, is the problem reported initially a bug? In the initial description you wrote: > During a long query I hard stopped the machine on which mysql server was running. If you hard stopped the machine mysqld could not close all used files properly, therefore it is not a bug it could not stopped, because corruption. You should do InnoDB Force Recovery. So this is not a bug since force recovery works.