May 24, 2012

Comment: How to recover a single InnoDB table from a Full Backup

… following errors InnoDB: Import: The extended import of data is being started. InnoDB: Import: 9 indexes have been detected. InnoDB: Progress in %: … 6087296438643. InnoDB: Your database may be corrupt or you may have copied the InnoDB InnoDB: tablespace but not the InnoDB log files. See InnoDB: …

Post: Recovering Innodb table Corruption

…in Innodb tablespace got corrupted. In such cases Innodb will typically print something like this: InnoDB: Database page corruption on disk or a failed InnoDB: …- when page in clustered key index is corrupted. It is worse compared to having data corrupted in secondary indexes, in which case simple…

Post: Data Corruption, DRBD and story of bug

… the tablespace! InnoDB: The tablespace free space info is corrupt. InnoDB: You may need to dump your InnoDB tables and recreate the whole InnoDB: database! Trash state means that InnoDB won’t… basically can’t help if there is possibility that application corrupts data by itself. For this case regular Master-Slave setup (in…

Post: How Percona Server handles data corruption more gracefully

… a question a while ago about how Percona Server handles corrupted data more gracefully than the standard MySQL server from Oracle. The… standard MySQL from Oracle, if any page of data in InnoDB is found to be corrupt, the entire instance will crash forcefully. This is a good policy if you want to treat your entire data set…

Post: Innodb Undelete and Sphinx Support

… last year and a bit. We had to recover data using query log, corrupted binary log and dig into MyISAM tables. You… important data is stored on RAID or at least replicated. Alexey also has a task to write more details about Innodb data recovery process and release code for our innodb recovery toolset, so you can recover your data for free if…

Post: Heikki Tuuri answers to Innodb questions, Part II

… performance (keeping data smaller) or can a bit slow it down. Plus there were bunch of micro optimizations in Innodb in 5… switch to Oracle? HT: You are right, bugs that cause data corruption, crashes, or wrong query results get the highest priority. We… not showed up in “show innodb status”. select * from table where id=5 show innodb status: Hash table size 10624987, used…

Post: Innodb Double Write

One of very interesting techniques Innodb uses is technique called “doublewrite” It means Innodb will write data twice when it performs table space… needed ? It is needed to archive data safety in case of partial page writes. Innodb does not log full pages to the… know they tend to happen and before Innodb doublewirite was implemented I had couple of data corruptions due to it. So how does…

Post: Innodb Recovery Update - The tricks what failed.

… had been recovering corrupted Innodb Tablespace and it is finally done now. As this was over than 1TB worth of data we really… some impact. Innodb tables rarely become corrupt Indeed even if you leave out crashes in my experience Innodb tables become corrupted more seldom than MyISAM. Thanks to checksums and crashing in case of corruptions and a lot…

Post: Magic Innodb Recovery self healing

… dump potentially corrupted tables (in this particular corruption instance Innodb did not print table name in question), drop tables, restart Innodb without innodb_force_recovery… recovery setting as it may allow you to recover more data or avoid full dump and restore. Another trick which helped…

Post: Using MyISAM in production

… application (storing billions of rows in tens of thousands tables) Innodb was better choice mainly because of thouse other behaviors … well… with MyISAM storage engine. This hidden corruption may later cause crashes wrong query results and further data corruption. Partial updates. MyISAM is does…