<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Answering Vadim&#8217;s .ibd Recovery Challenge</title>
	<atom:link href="http://www.percona.tv/mysql/answering-vadims-ibd-recovery-challenge/feed" rel="self" type="application/rss+xml" />
	<link>http://www.percona.tv/mysql/answering-vadims-ibd-recovery-challenge</link>
	<description>Performance Is Everything</description>
	<lastBuildDate>Mon, 30 Aug 2010 02:12:25 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Vadim</title>
		<link>http://www.percona.tv/mysql/answering-vadims-ibd-recovery-challenge/comment-page-1#comment-63</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Thu, 02 Jul 2009 17:19:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.percona.tv/?p=13#comment-63</guid>
		<description>Gavin,

You may see see that different KEY_BLOCK_SIZE needed (and therefore Barracuda format) by initial  file size of table. Usually empty InnoDB table takes 92K, but file I proposed was 64K</description>
		<content:encoded><![CDATA[<p>Gavin,</p>
<p>You may see see that different KEY_BLOCK_SIZE needed (and therefore Barracuda format) by initial  file size of table. Usually empty InnoDB table takes 92K, but file I proposed was 64K</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gavin Towey</title>
		<link>http://www.percona.tv/mysql/answering-vadims-ibd-recovery-challenge/comment-page-1#comment-58</link>
		<dc:creator>Gavin Towey</dc:creator>
		<pubDate>Wed, 01 Jul 2009 18:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.percona.tv/?p=13#comment-58</guid>
		<description>This answer works if you happen to get lucky and guess all the correct options, but how would you know that the file format needs to be Barracuda, and the KEY_BLOCK_SIZE should be 4?

The innodb manual gives some good info for exploring ibd file: http://www.innodb.com/doc/innodb_plugin-1.0/innodb-file-format.html#innodb-file-format-identifying

In particular the command:
od -t x1 -j 54 -N 4 tryme.ibd

The result is:
0000066 00 00 00 27
0000072

The 27 is what you&#039;re looking for, it&#039;s a number that describes the file format and options.

By creating innodb tables with different options, and then running the hex dump on the resulting ibd file, you can find a create table statement that you *know* will match the orhpan .ibd file you have.

Also, don&#039;t forget IMPORT TABLESPACE and DISCARD tablespace.  This is a better way to handle the .ibd file than doing this on the filesystem because this method would only work if this table was the first one you created in innodb (or worse, the Nth)  Using the tablespace commands will give you some additional information in the error logs on failure which will increase your chances of getting it right.</description>
		<content:encoded><![CDATA[<p>This answer works if you happen to get lucky and guess all the correct options, but how would you know that the file format needs to be Barracuda, and the KEY_BLOCK_SIZE should be 4?</p>
<p>The innodb manual gives some good info for exploring ibd file: <a href="http://www.innodb.com/doc/innodb_plugin-1.0/innodb-file-format.html#innodb-file-format-identifying" rel="nofollow">http://www.innodb.com/doc/innodb_plugin-1.0/innodb-file-format.html#innodb-file-format-identifying</a></p>
<p>In particular the command:<br />
od -t x1 -j 54 -N 4 tryme.ibd</p>
<p>The result is:<br />
0000066 00 00 00 27<br />
0000072</p>
<p>The 27 is what you&#8217;re looking for, it&#8217;s a number that describes the file format and options.</p>
<p>By creating innodb tables with different options, and then running the hex dump on the resulting ibd file, you can find a create table statement that you *know* will match the orhpan .ibd file you have.</p>
<p>Also, don&#8217;t forget IMPORT TABLESPACE and DISCARD tablespace.  This is a better way to handle the .ibd file than doing this on the filesystem because this method would only work if this table was the first one you created in innodb (or worse, the Nth)  Using the tablespace commands will give you some additional information in the error logs on failure which will increase your chances of getting it right.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
