<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MySQL Performance Blog &#187; Backups</title>
	<atom:link href="http://www.mysqlperformanceblog.com/category/backups/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 03:11:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Statistics of InnoDB tables and indexes available in xtrabackup</title>
		<link>http://www.mysqlperformanceblog.com/2009/09/14/statistics-of-innodb-tables-and-indexes-available-in-xtrabackup/</link>
		<comments>http://www.mysqlperformanceblog.com/2009/09/14/statistics-of-innodb-tables-and-indexes-available-in-xtrabackup/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 16:52:53 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[Innodb]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1095</guid>
		<description><![CDATA[If you ever wondered how big is that or another index in InnoDB ... you had to calculate it yourself by multiplying size of row (which I should add is harder in the case of a VARCHAR - since you need to estimate average length) on count of records. And it still would be quite [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever wondered how big is that or another index in InnoDB ... you had to calculate it yourself by multiplying size of row (which I should add is harder in the case of a VARCHAR - since you need to estimate average length) on count of records. And it still would be quite inaccurate as secondary indexes  tend to take more space. So we added more detailed index statistics into our xtrabackup utility.  The thanks for this feature goes to a well known Social Network who sponsored the development.</p>
<p>We chose to put this into xtrabackup for a couple of reasons - the first is that running statistics on your backup database does not need to hurt production servers, and the second reason is that running statistic on a stopped database is more accurate than with online (although online is also supported, but you may have inexact results).</p>
<p>Let's see how it works. I have one table with size 13Gb what was filled during about 2.5 years.<br />
The table is:</p>
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showPlainTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">CREATE TABLE `link_out104` <span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `domain_id` int<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span> unsigned NOT NULL,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `link_id` int<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span> unsigned NOT NULL auto_increment,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `url_from` varchar<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">255</span><span style="color:#006600; font-weight:bold;">&#41;</span> NOT NULL,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `url_to` varchar<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">255</span><span style="color:#006600; font-weight:bold;">&#41;</span> NOT NULL,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `anchor` varchar<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">255</span><span style="color:#006600; font-weight:bold;">&#41;</span> NOT NULL,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `from_site_id` int<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span> unsigned NOT NULL,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `from_forum_id` int<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span> unsigned NOT NULL,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `from_author_id` int<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span> unsigned NOT NULL,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `from_message_id` bigint<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">20</span><span style="color:#006600; font-weight:bold;">&#41;</span> unsigned NOT NULL,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `message_published` timestamp NOT NULL default CURRENT_TIMESTAMP,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `kind` enum<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'link'</span>,<span style="color:#CC0000;">'img'</span><span style="color:#006600; font-weight:bold;">&#41;</span> NOT NULL,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `url_title` varchar<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">255</span><span style="color:#006600; font-weight:bold;">&#41;</span> NOT NULL,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `isexternal` tinyint<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span> unsigned NOT NULL,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `revert_domain` varchar<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">255</span><span style="color:#006600; font-weight:bold;">&#41;</span> NOT NULL,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `url_prefix` varchar<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">255</span><span style="color:#006600; font-weight:bold;">&#41;</span> NOT NULL,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `from_domain_id` int<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">10</span><span style="color:#006600; font-weight:bold;">&#41;</span> unsigned NOT NULL,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `ext` varchar<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">25</span><span style="color:#006600; font-weight:bold;">&#41;</span> NOT NULL,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `linktype` enum<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'html'</span>,<span style="color:#CC0000;">'video'</span>,<span style="color:#CC0000;">'mp3'</span>,<span style="color:#CC0000;">'image'</span>,<span style="color:#CC0000;">'pdf'</span>,<span style="color:#CC0000;">'other'</span><span style="color:#006600; font-weight:bold;">&#41;</span> NOT NULL,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `message_day` date NOT NULL,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `mod_is` tinyint<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span> unsigned NOT NULL default <span style="color:#CC0000;">'0'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; `is_adult` tinyint<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span> unsigned NOT NULL default <span style="color:#CC0000;">'0'</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; PRIMARY KEY&nbsp; <span style="color:#006600; font-weight:bold;">&#40;</span>`link_id`<span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; UNIQUE KEY `domain_id_2` <span style="color:#006600; font-weight:bold;">&#40;</span>`domain_id`,`link_id`<span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; KEY `domain_id` <span style="color:#006600; font-weight:bold;">&#40;</span>`domain_id`,`from_site_id`,`message_published`<span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; KEY `revert_domain` <span style="color:#006600; font-weight:bold;">&#40;</span>`revert_domain`,`url_prefix`<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">80</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; KEY `from_site_id` <span style="color:#006600; font-weight:bold;">&#40;</span>`from_site_id`,`message_published`<span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; KEY `site_message` <span style="color:#006600; font-weight:bold;">&#40;</span>`from_site_id`,`message_day`,`isexternal`<span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; KEY `from_message_id` <span style="color:#006600; font-weight:bold;">&#40;</span>`from_message_id`,`link_id`<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#41;</span> ENGINE=InnoDB AUTO_INCREMENT=<span style="color:#800000;color:#800000;">26141165</span> DEFAULT CHARSET=utf8; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>And size of file is about 12.88 GB<br />
<code><br />
-rw-r--r-- 1 root root 13832814592 Sep 10 14:41 link_out104.ibd<br />
</code></p>
<p>So to get statistics we run:</p>
<p><code>xtrabackup --stats --tables=art.link* --datadir=/mnt/data/mysql/</code></p>
<p>which will show something like this:</p>
<div class="igBar"><span id="lcode-7"><a href="#" onclick="javascript:showPlainTxt('code-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-7">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;INDEX STATISTICS&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; table: art/link_out104, index: PRIMARY, space id: <span style="color:#800000;color:#800000;">12</span>, root page <span style="color:#800000;color:#800000;">3</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; estimated statistics in dictionary:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; key vals: <span style="color:#800000;color:#800000;">25265338</span>, leaf pages <span style="color:#800000;color:#800000;">497839</span>, size pages <span style="color:#800000;color:#800000;">498304</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; real statistics:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">2</span> pages: pages=<span style="color:#800000;color:#800000;">1</span>, data=<span style="color:#800000;color:#800000;">5395</span> bytes, data/pages=<span style="color:#800000;color:#800000;">32</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">1</span> pages: pages=<span style="color:#800000;color:#800000;">415</span>, data=<span style="color:#800000;color:#800000;">6471907</span> bytes, data/pages=<span style="color:#800000;color:#800000;">95</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; leaf pages: recs=<span style="color:#800000;color:#800000;">25958413</span>, pages=<span style="color:#800000;color:#800000;">497839</span>, data=<span style="color:#800000;color:#800000;">7492026403</span> bytes, data/pages=<span style="color:#800000;color:#800000;">91</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; table: art/link_out104, index: domain_id_2, space id: <span style="color:#800000;color:#800000;">12</span>, root page <span style="color:#800000;color:#800000;">4</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; estimated statistics in dictionary:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; key vals: <span style="color:#800000;color:#800000;">27755790</span>, leaf pages <span style="color:#800000;color:#800000;">23125</span>, size pages <span style="color:#800000;color:#800000;">26495</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; real statistics:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">2</span> pages: pages=<span style="color:#800000;color:#800000;">1</span>, data=<span style="color:#800000;color:#800000;">510</span> bytes, data/pages=<span style="color:#800000;color:#800000;">3</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">1</span> pages: pages=<span style="color:#800000;color:#800000;">30</span>, data=<span style="color:#800000;color:#800000;">393125</span> bytes, data/pages=<span style="color:#800000;color:#800000;">79</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; leaf pages: recs=<span style="color:#800000;color:#800000;">25958413</span>, pages=<span style="color:#800000;color:#800000;">23125</span>, data=<span style="color:#800000;color:#800000;">337459369</span> bytes, data/pages=<span style="color:#800000;color:#800000;">89</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; table: art/link_out104, index: domain_id, space id: <span style="color:#800000;color:#800000;">12</span>, root page <span style="color:#800000;color:#800000;">5</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; estimated statistics in dictionary:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; key vals: <span style="color:#800000;color:#800000;">3006231</span>, leaf pages <span style="color:#800000;color:#800000;">43255</span>, size pages <span style="color:#800000;color:#800000;">49600</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; real statistics:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">2</span> pages: pages=<span style="color:#800000;color:#800000;">1</span>, data=<span style="color:#800000;color:#800000;">2850</span> bytes, data/pages=<span style="color:#800000;color:#800000;">17</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">1</span> pages: pages=<span style="color:#800000;color:#800000;">114</span>, data=<span style="color:#800000;color:#800000;">1081375</span> bytes, data/pages=<span style="color:#800000;color:#800000;">57</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; leaf pages: recs=<span style="color:#800000;color:#800000;">25953873</span>, pages=<span style="color:#800000;color:#800000;">43255</span>, data=<span style="color:#800000;color:#800000;">545031333</span> bytes, data/pages=<span style="color:#800000;color:#800000;">76</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; table: art/link_out104, index: revert_domain, space id: <span style="color:#800000;color:#800000;">12</span>, root page <span style="color:#800000;color:#800000;">6</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; estimated statistics in dictionary:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; key vals: <span style="color:#800000;color:#800000;">1204830</span>, leaf pages <span style="color:#800000;color:#800000;">133869</span>, size pages <span style="color:#800000;color:#800000;">153984</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; real statistics:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">3</span> pages: pages=<span style="color:#800000;color:#800000;">1</span>, data=<span style="color:#800000;color:#800000;">373</span> bytes, data/pages=<span style="color:#800000;color:#800000;">2</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">2</span> pages: pages=<span style="color:#800000;color:#800000;">6</span>, data=<span style="color:#800000;color:#800000;">58143</span> bytes, data/pages=<span style="color:#800000;color:#800000;">59</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">1</span> pages: pages=<span style="color:#800000;color:#800000;">832</span>, data=<span style="color:#800000;color:#800000;">9146283</span> bytes, data/pages=<span style="color:#800000;color:#800000;">67</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; leaf pages: recs=<span style="color:#800000;color:#800000;">25839414</span>, pages=<span style="color:#800000;color:#800000;">133869</span>, data=<span style="color:#800000;color:#800000;">1566961607</span> bytes, data/pages=<span style="color:#800000;color:#800000;">71</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; table: art/link_out104, index: from_site_id, space id: <span style="color:#800000;color:#800000;">12</span>, root page <span style="color:#800000;color:#800000;">7</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; estimated statistics in dictionary:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; key vals: <span style="color:#800000;color:#800000;">330426</span>, leaf pages <span style="color:#800000;color:#800000;">33889</span>, size pages <span style="color:#800000;color:#800000;">38848</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; real statistics:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">2</span> pages: pages=<span style="color:#800000;color:#800000;">1</span>, data=<span style="color:#800000;color:#800000;">1764</span> bytes, data/pages=<span style="color:#800000;color:#800000;">10</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">1</span> pages: pages=<span style="color:#800000;color:#800000;">84</span>, data=<span style="color:#800000;color:#800000;">711669</span> bytes, data/pages=<span style="color:#800000;color:#800000;">51</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; leaf pages: recs=<span style="color:#800000;color:#800000;">25956416</span>, pages=<span style="color:#800000;color:#800000;">33889</span>, data=<span style="color:#800000;color:#800000;">441259072</span> bytes, data/pages=<span style="color:#800000;color:#800000;">79</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; table: art/link_out104, index: site_message, space id: <span style="color:#800000;color:#800000;">12</span>, root page <span style="color:#800000;color:#800000;">8</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; estimated statistics in dictionary:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; key vals: <span style="color:#800000;color:#800000;">1399286</span>, leaf pages <span style="color:#800000;color:#800000;">32260</span>, size pages <span style="color:#800000;color:#800000;">36992</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; real statistics:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">2</span> pages: pages=<span style="color:#800000;color:#800000;">1</span>, data=<span style="color:#800000;color:#800000;">1680</span> bytes, data/pages=<span style="color:#800000;color:#800000;">10</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">1</span> pages: pages=<span style="color:#800000;color:#800000;">80</span>, data=<span style="color:#800000;color:#800000;">677460</span> bytes, data/pages=<span style="color:#800000;color:#800000;">51</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; leaf pages: recs=<span style="color:#800000;color:#800000;">25956043</span>, pages=<span style="color:#800000;color:#800000;">32260</span>, data=<span style="color:#800000;color:#800000;">441252731</span> bytes, data/pages=<span style="color:#800000;color:#800000;">83</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; table: art/link_out104, index: from_message_id, space id: <span style="color:#800000;color:#800000;">12</span>, root page <span style="color:#800000;color:#800000;">9</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; estimated statistics in dictionary:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; key vals: <span style="color:#800000;color:#800000;">25964521</span>, leaf pages <span style="color:#800000;color:#800000;">27979</span>, size pages <span style="color:#800000;color:#800000;">28160</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; real statistics:</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">2</span> pages: pages=<span style="color:#800000;color:#800000;">1</span>, data=<span style="color:#800000;color:#800000;">798</span> bytes, data/pages=<span style="color:#800000;color:#800000;">4</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">1</span> pages: pages=<span style="color:#800000;color:#800000;">38</span>, data=<span style="color:#800000;color:#800000;">587559</span> bytes, data/pages=<span style="color:#800000;color:#800000;">94</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; leaf pages: recs=<span style="color:#800000;color:#800000;">25958413</span>, pages=<span style="color:#800000;color:#800000;">27979</span>, data=<span style="color:#800000;color:#800000;">441293021</span> bytes, data/pages=<span style="color:#800000;color:#800000;">96</span>% </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The output is  intensive, let me highlight some points:</p>
<div class="igBar"><span id="lcode-8"><a href="#" onclick="javascript:showPlainTxt('code-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">table: art/link_out104, index: PRIMARY, space id: <span style="color:#800000;color:#800000;">12</span>, root page <span style="color:#800000;color:#800000;">3</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; leaf pages: recs=<span style="color:#800000;color:#800000;">25958413</span>, pages=<span style="color:#800000;color:#800000;">497839</span>, data=<span style="color:#800000;color:#800000;">7492026403</span> bytes, data/pages=<span style="color:#800000;color:#800000;">91</span>% </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>It says that PRIMARY key (which is the table by itself, as InnoDB is clustering data by primary key) takes <strong>497839</strong> pages ( 16KB each) and size of data <strong>7492026403</strong> bytes or (6.98 GB). And density ( fitting data into pages) is quite good - 91%. But it was expected, as table is really mostly inserted in, updates and deletes are rare).</p>
<p>And let's take index <strong>domain_id</strong></p>
<div class="igBar"><span id="lcode-9"><a href="#" onclick="javascript:showPlainTxt('code-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-9">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">table: art/link_out104, index: domain_id, space id: <span style="color:#800000;color:#800000;">12</span>, root page <span style="color:#800000;color:#800000;">5</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; leaf pages: recs=<span style="color:#800000;color:#800000;">25953873</span>, pages=<span style="color:#800000;color:#800000;">43255</span>, data=<span style="color:#800000;color:#800000;">545031333</span> bytes, data/pages=<span style="color:#800000;color:#800000;">76</span>% </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>you can see the allocated pages (43255 pages or 708689920 bytes) are filled only by 76% ( data takes 545031333 bytes). And that means that 150MB are just waste of space. Which is really even worse for key <strong>revert_domain</strong></p>
<p><code>   leaf pages: recs=25839414, pages=133869, data=1566961607 bytes, data/pages=71%<br />
</code>.</p>
<p>For this key about 600MB is empty. </p>
<p>This needs a bit of explaining:<br />
This does not have as good efficiency as the primary key, but a lot of this is to be expected.  In a lot of cases we insert into the primary key in order which makes things very predictable, but the inserts into the secondary key index are random - which leads to a lot of page splits.</p>
<p>One helpful new feature to address this is in XtraDB/InnoDB plugin - fast index creation.  With this feature, InnoDB creates indexes by sort, so page fill factor should be quite good.</p>
<p>To check that, there is xtrabackup --stats for index  <strong>domain_id</strong> created for table in Barracuda format with Fast creation method:</p>
<div class="igBar"><span id="lcode-10"><a href="#" onclick="javascript:showPlainTxt('code-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-10">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">table: art/link_out104, index: domain_id, space id: <span style="color:#800000;color:#800000;">15</span>, root page <span style="color:#800000;color:#800000;">49160</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; estimated statistics in dictionary:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; key vals: <span style="color:#800000;color:#800000;">5750565</span>, leaf pages <span style="color:#800000;color:#800000;">34383</span>, size pages <span style="color:#800000;color:#800000;">34496</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; real statistics:</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">2</span> pages: pages=<span style="color:#800000;color:#800000;">1</span>, data=<span style="color:#800000;color:#800000;">1375</span> bytes, data/pages=<span style="color:#800000;color:#800000;">8</span>%</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;level <span style="color:#800000;color:#800000;">1</span> pages: pages=<span style="color:#800000;color:#800000;">55</span>, data=<span style="color:#800000;color:#800000;">859575</span> bytes, data/pages=<span style="color:#800000;color:#800000;">95</span>%</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; leaf pages: recs=<span style="color:#800000;color:#800000;">25958413</span>, pages=<span style="color:#800000;color:#800000;">34383</span>, data=<span style="color:#800000;color:#800000;">545126673</span> bytes, data/pages=<span style="color:#800000;color:#800000;">96</span>% </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>As you see this time it takes 34383 pages (compare to 43255 in previous statistics).</p>
<p>Though it would be interesting to see how it will grow with further inserts, and I also suspect random INSERTS into so dense space going to be slower than in previous case.</p>
<p>The --stats is not in xtrabackup release yet, only in source code repository, but should be released quite soon.</p>
<p>And the last point of the post - if you are badly missing some features in MySQL, InnoDB, InnoDB-plugin, XtraDB, XtraBackup - you know whom ask for!</p>
    <hr noshade style="margin:0;height:1px" />
    <p>Entry posted by Vadim |
      <a href="http://www.mysqlperformanceblog.com/2009/09/14/statistics-of-innodb-tables-and-indexes-available-in-xtrabackup/#comments">5 comments</a></p>
    <p>Add to: <a href="http://del.icio.us/post?url=http://www.mysqlperformanceblog.com/2009/09/14/statistics-of-innodb-tables-and-indexes-available-in-xtrabackup/&amp;title=Statistics of InnoDB tables and indexes available in xtrabackup" title="Bookmark this post on del.icio.us"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/delicious.png" alt="delicious" /></a> | <a href="http://digg.com/submit?phase=2&amp;url=http://www.mysqlperformanceblog.com/2009/09/14/statistics-of-innodb-tables-and-indexes-available-in-xtrabackup/&amp;title=Statistics of InnoDB tables and indexes available in xtrabackup" title="Digg this post on Digg.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/digg.png" alt="digg" /></a> | <a href="http://reddit.com/submit?url=http://www.mysqlperformanceblog.com/2009/09/14/statistics-of-innodb-tables-and-indexes-available-in-xtrabackup/&amp;title=Statistics of InnoDB tables and indexes available in xtrabackup" title="Submit this post on reddit.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/reddit.png" alt="reddit" /></a> | <a href="http://www.netscape.com/submit/?U=http://www.mysqlperformanceblog.com/2009/09/14/statistics-of-innodb-tables-and-indexes-available-in-xtrabackup/&amp;T=Statistics of InnoDB tables and indexes available in xtrabackup" title="Vote for this article on Netscape"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/netscape.gif" alt="netscape" /></a> | <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.mysqlperformanceblog.com/2009/09/14/statistics-of-innodb-tables-and-indexes-available-in-xtrabackup/&amp;title=Statistics of InnoDB tables and indexes available in xtrabackup" title="Add to Google Bookmarks"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/google.png" alt="Google Bookmarks" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mysqlperformanceblog.com/2009/09/14/statistics-of-innodb-tables-and-indexes-available-in-xtrabackup/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>xtrabackup-0.9</title>
		<link>http://www.mysqlperformanceblog.com/2009/08/20/xtrabackup-0-9/</link>
		<comments>http://www.mysqlperformanceblog.com/2009/08/20/xtrabackup-0-9/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 18:51:16 +0000</pubDate>
		<dc:creator>Aleksandr Kuzminsky</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[announce]]></category>

		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=1026</guid>
		<description><![CDATA[Dear Community,
The release 0.9 of the opensource backup tool for InnoDB and XtraDB is available for download.
Changelog:

tar4ibd could not treat over 8GB file, now max 64GB
prepare-speed-hack is added

Fixed bugs:

Bug #386179: "InnoDB: Error: space id in fsp header 143088, but in the page header 0"
Bug #394374: "Can't compile with MySQL 5.1"
Bug #394781: "xtrabackup requires write permissions [...]]]></description>
			<content:encoded><![CDATA[<p>Dear Community,</p>
<p>The release 0.9 of the opensource backup tool for InnoDB and XtraDB is available for <a href="http://www.percona.com/mysql/xtrabackup/0.9/" target="_blank">download</a>.</p>
<p><strong>Changelog:</strong></p>
<ul>
<li>tar4ibd could not treat over 8GB file, now max 64GB</li>
<li>prepare-speed-hack is added</li>
</ul>
<p><strong>Fixed bugs:</strong></p>
<ul>
<li><a href="https://bugs.launchpad.net/percona-xtrabackup/+bug/386179">Bug #386179: "InnoDB: Error: space id in fsp header 143088, but in the page header 0"</a></li>
<li><a href="https://bugs.launchpad.net/percona-xtrabackup/+bug/394374">Bug #394374: "Can't compile with MySQL 5.1"</a></li>
<li><a href="https://bugs.launchpad.net/percona-xtrabackup/+bug/394781">Bug #394781: "xtrabackup requires write permissions on original ibdata1"</a></li>
<li><a href="https://bugs.launchpad.net/percona-xtrabackup/+bug/395977">Bug #395977: "xtrabackup 0.8 crashes during prepare after tar4ibd"</a></li>
<li><a href="https://bugs.launchpad.net/percona-xtrabackup/+bug/396069">Bug #396069: "hardcoded XTRABACKUP_VERSION"</a></li>
<li><a href="https://code.launchpad.net/bugs/395407">Bug #395407: “innobackupex reports "perl is too old"”</a></li>
<li><a href="https://code.launchpad.net/bugs/408966">Bug #408966: “Unclear license terms”</a></li>
<li><a href="https://code.launchpad.net/bugs/389360">Bug #389360: “Partition files not being copied in  innobackupex-1.5.1”</a></li>
<li><a href="https://code.launchpad.net/bugs/394464">Bug #394464: “batch scp copy of .frm, .MRG etc files”</a></li>
</ul>
<p>The binary packages for RHEL4,5, Debian, FreeBSD, MacOS as well as source code of the XtraBackup is available on <a href="http://www.percona.com/mysql/xtrabackup/0.9/">http://www.percona.com/mysql/xtrabackup/0.9/</a>.</p>
<p>The project lives on Launchpad : <a href="https://launchpad.net/percona-xtrabackup">https://launchpad.net/percona-xtrabackup</a> and you can report bug to Launchpad bug system:<br />
<a href="https://launchpad.net/percona-xtrabackup/+filebug">https://launchpad.net/percona-xtrabackup/+filebug</a>. The documentation is available on <a href="http://www.percona.com/docs/wiki/percona-xtrabackup:start">our Wiki</a>.</p>
<p>For general questions use our <a href="http://groups.google.com/group/percona-discussion">Pecona-discussions</a> group, and for development question <a href="http://groups.google.com/group/percona-dev">Percona-dev</a> group.</p>
<p>For support, commercial and sponsorship inquiries contact <a href="http://www.percona.com/contacts.html">Percona</a>.</p>
    <hr noshade style="margin:0;height:1px" />
    <p>Entry posted by Aleksandr Kuzminsky |
      <a href="http://www.mysqlperformanceblog.com/2009/08/20/xtrabackup-0-9/#comments">4 comments</a></p>
    <p>Add to: <a href="http://del.icio.us/post?url=http://www.mysqlperformanceblog.com/2009/08/20/xtrabackup-0-9/&amp;title=xtrabackup-0.9" title="Bookmark this post on del.icio.us"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/delicious.png" alt="delicious" /></a> | <a href="http://digg.com/submit?phase=2&amp;url=http://www.mysqlperformanceblog.com/2009/08/20/xtrabackup-0-9/&amp;title=xtrabackup-0.9" title="Digg this post on Digg.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/digg.png" alt="digg" /></a> | <a href="http://reddit.com/submit?url=http://www.mysqlperformanceblog.com/2009/08/20/xtrabackup-0-9/&amp;title=xtrabackup-0.9" title="Submit this post on reddit.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/reddit.png" alt="reddit" /></a> | <a href="http://www.netscape.com/submit/?U=http://www.mysqlperformanceblog.com/2009/08/20/xtrabackup-0-9/&amp;T=xtrabackup-0.9" title="Vote for this article on Netscape"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/netscape.gif" alt="netscape" /></a> | <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.mysqlperformanceblog.com/2009/08/20/xtrabackup-0-9/&amp;title=xtrabackup-0.9" title="Add to Google Bookmarks"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/google.png" alt="Google Bookmarks" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mysqlperformanceblog.com/2009/08/20/xtrabackup-0-9/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Just how useful are binary logs for incremental backups?</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/21/just-how-useful-are-binary-logs-for-incremental-backups/</link>
		<comments>http://www.mysqlperformanceblog.com/2009/07/21/just-how-useful-are-binary-logs-for-incremental-backups/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 20:26:23 +0000</pubDate>
		<dc:creator>Morgan Tocker</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[binary logs]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=843</guid>
		<description><![CDATA[We've written about replication slaves lagging behind masters before, but one of the other side effects of the binary log being serialized, is that it also limits the effectiveness of using it for incremental backup.  Let me make up some numbers for the purposes of this example:

We have 2 Servers in a Master-Slave topology.
The database [...]]]></description>
			<content:encoded><![CDATA[<p>We've written about <a href="http://www.mysqlperformanceblog.com/2008/09/22/fighting-mysql-replication-lag/">replication slaves lagging behind masters</a> before, but one of the other side effects of the binary log being serialized, is that it also limits the effectiveness of using it for incremental backup.  Let me make up some numbers for the purposes of this example:</p>
<ul>
<li>We have 2 Servers in a Master-Slave topology.</li>
<li>The database size is 100 GB (same tables on each).</li>
<li>The slave machine barely keeps up with the master (at 90% capacity during peak, 75% during offpeak)</li>
<li>The peak window is 12 hours, the offpeak window is 12 hours.</li>
</ul>
<p>Provided that the backup method was raw data files, it shouldn't take much more than<strong> 30 minutes</strong> to restore 100GB (50MB/s), but to replay one day of binary logs  it would take an additional <strong>20 hours</strong> ((12 * 0.9) + (12 * 0.75) = 19h48m).</p>
<p>If you wanted to do something like setup a new slave with a 24-hour old backup, and apply the binary logs continuously until it catches up, you will be <strong>waiting almost 5 days</strong> until that happens (each day has 24hr-19h48m = 4h12m "free" capacity, 19h48m/4h12m = 4.7 days).</p>
<p><strong>So what are the solutions?<br />
</strong>If you are using all InnoDB tables, an XtraBackup incremental backup should be much faster than using binary logs.  You can understand Vadim's excitement when he announced <a href="http://www.mysqlperformanceblog.com/2009/04/07/xtrabackup-05-bugfixes-introduction-incremental-backup/">this feature</a> a few months ago.</p>
<p>If you are using multiple storage engines, then your options are to either try and <a href="http://www.maatkit.org/doc/mk-slave-delay.html">time delay slaves</a> (to keep them close to up to date), or hope that it's not often that you need to restore!  Eventually this problem should be lessened by a MySQL Server feature - <a href="http://forge.mysql.com/wiki/ReplicationFeatures/ParallelSlave">parallel execution on slaves</a>.  Lets hope that it can get enough testers so that it makes it into a new release very quickly.</p>
    <hr noshade style="margin:0;height:1px" />
    <p>Entry posted by Morgan Tocker |
      <a href="http://www.mysqlperformanceblog.com/2009/07/21/just-how-useful-are-binary-logs-for-incremental-backups/#comments">6 comments</a></p>
    <p>Add to: <a href="http://del.icio.us/post?url=http://www.mysqlperformanceblog.com/2009/07/21/just-how-useful-are-binary-logs-for-incremental-backups/&amp;title=Just how useful are binary logs for incremental backups?" title="Bookmark this post on del.icio.us"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/delicious.png" alt="delicious" /></a> | <a href="http://digg.com/submit?phase=2&amp;url=http://www.mysqlperformanceblog.com/2009/07/21/just-how-useful-are-binary-logs-for-incremental-backups/&amp;title=Just how useful are binary logs for incremental backups?" title="Digg this post on Digg.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/digg.png" alt="digg" /></a> | <a href="http://reddit.com/submit?url=http://www.mysqlperformanceblog.com/2009/07/21/just-how-useful-are-binary-logs-for-incremental-backups/&amp;title=Just how useful are binary logs for incremental backups?" title="Submit this post on reddit.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/reddit.png" alt="reddit" /></a> | <a href="http://www.netscape.com/submit/?U=http://www.mysqlperformanceblog.com/2009/07/21/just-how-useful-are-binary-logs-for-incremental-backups/&amp;T=Just how useful are binary logs for incremental backups?" title="Vote for this article on Netscape"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/netscape.gif" alt="netscape" /></a> | <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.mysqlperformanceblog.com/2009/07/21/just-how-useful-are-binary-logs-for-incremental-backups/&amp;title=Just how useful are binary logs for incremental backups?" title="Add to Google Bookmarks"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/google.png" alt="Google Bookmarks" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mysqlperformanceblog.com/2009/07/21/just-how-useful-are-binary-logs-for-incremental-backups/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Improving InnoDB recovery time</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/07/improving-innodb-recovery-time/</link>
		<comments>http://www.mysqlperformanceblog.com/2009/07/07/improving-innodb-recovery-time/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 02:42:22 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[xtradb]]></category>

		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=718</guid>
		<description><![CDATA[Speed of InnoDB recovery is known and quite annoying problem. It was discussed many times, see:
http://bugs.mysql.com/bug.php?id=29847

http://dammit.lt/2008/10/26/innodb-crash-recovery/
This is problem when your InnoDB crashes, it may takes long time to start. Also it affects restoring from backup (both LVM and xtrabackup / innobackup) 
In this is simple test, I do crash mysql during in-memory tpcc-mysql benchmark with [...]]]></description>
			<content:encoded><![CDATA[<p>Speed of InnoDB recovery is known and quite annoying problem. It was discussed many times, see:</p>
<p><a href="http://bugs.mysql.com/bug.php?id=29847">http://bugs.mysql.com/bug.php?id=29847<br />
</a><br />
<a href="http://dammit.lt/2008/10/26/innodb-crash-recovery/">http://dammit.lt/2008/10/26/innodb-crash-recovery/</a></p>
<p>This is problem when your InnoDB crashes, it may takes long time to start. Also it affects restoring from backup (both LVM and xtrabackup / innobackup) </p>
<p>In this is simple test, I do crash mysql during in-memory tpcc-mysql benchmark with 16 running threads.<br />
MySQL params are:</p>
<div class="igBar"><span id="lcode-15"><a href="#" onclick="javascript:showPlainTxt('code-15'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-15">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">innodb_buffer_pool_size=16G</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">innodb_log_files_in_group=<span style="color:#800000;color:#800000;">3</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">innodb_log_file_size=512M </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>So let's take standard MySQL 5.4.1, it starts:</p>
<div class="igBar"><span id="lcode-16"><a href="#" onclick="javascript:showPlainTxt('code-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-16">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">090706</span> <span style="color:#800000;color:#800000;">15</span>:<span style="color:#800000;color:#800000;">39</span>:<span style="color:#800000;color:#800000;">47</span>&nbsp; InnoDB: Database was not shut down normally!</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">...</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">090706</span> <span style="color:#800000;color:#800000;">16</span>:<span style="color:#800000;color:#800000;">51</span>:<span style="color:#800000;color:#800000;">56</span> <span style="color:#006600; font-weight:bold;">&#91;</span>Note<span style="color:#006600; font-weight:bold;">&#93;</span> libexec/mysqld: ready for connections. </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>So you see it takes <strong>1h 12 mins</strong> to start.</p>
<p>In XtraDB we made some improvements, and it shows:</p>
<div class="igBar"><span id="lcode-17"><a href="#" onclick="javascript:showPlainTxt('code-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-17">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">090706</span> <span style="color:#800000;color:#800000;">17</span>:<span style="color:#800000;color:#800000;">04</span>:<span style="color:#800000;color:#800000;">11</span>&nbsp; InnoDB: Database was not shut down normally!</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">...</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">090706</span> <span style="color:#800000;color:#800000;">18</span>:<span style="color:#800000;color:#800000;">10</span>:<span style="color:#800000;color:#800000;">53</span> <span style="color:#006600; font-weight:bold;">&#91;</span>Note<span style="color:#006600; font-weight:bold;">&#93;</span> libexec/mysqld: ready for connections. </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>1h 06mins</strong>. Better, but still not good.</p>
<p>So Yasufumi sat,  scratched his head and made new patch for InnoDB. With this patch<br />
mysqld starts:</p>
<div class="igBar"><span id="lcode-18"><a href="#" onclick="javascript:showPlainTxt('code-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-18">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">090707</span> <span style="color:#800000;color:#800000;">19</span>:<span style="color:#800000;color:#800000;">00</span>:<span style="color:#800000;color:#800000;">01</span>&nbsp; InnoDB: Database was not shut down normally!</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">...</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">090707</span> <span style="color:#800000;color:#800000;">19</span>:<span style="color:#800000;color:#800000;">06</span>:<span style="color:#800000;color:#800000;">42</span> <span style="color:#006600; font-weight:bold;">&#91;</span>Note<span style="color:#006600; font-weight:bold;">&#93;</span> libexec/mysqld: ready for connections. </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>6 mins 41 secs</strong>. 10x improvement. Something to think about.</p>
<p>The patch is not in official XtraDB tree yet, it lives in<br />
<a href="http://bazaar.launchpad.net/~percona-dev/percona-xtradb/recovery-speed-hack/">http://bazaar.launchpad.net/~percona-dev/percona-xtradb/recovery-speed-hack/<br />
</a> tree.</p>
<p>The patch by itself is quite small, I would ask InnoDB experts to review it:</p>
<p><a href="http://bazaar.launchpad.net/~percona-dev/percona-xtradb/recovery-speed-hack/revision/86">http://bazaar.launchpad.net/~percona-dev/percona-xtradb/recovery-speed-hack/revision/86<br />
</a></p>
<p>So your comments about patch is welcome! If it is stable it will go to XtraDB and XtraBackup.</p>
    <hr noshade style="margin:0;height:1px" />
    <p>Entry posted by Vadim |
      <a href="http://www.mysqlperformanceblog.com/2009/07/07/improving-innodb-recovery-time/#comments">12 comments</a></p>
    <p>Add to: <a href="http://del.icio.us/post?url=http://www.mysqlperformanceblog.com/2009/07/07/improving-innodb-recovery-time/&amp;title=Improving InnoDB recovery time" title="Bookmark this post on del.icio.us"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/delicious.png" alt="delicious" /></a> | <a href="http://digg.com/submit?phase=2&amp;url=http://www.mysqlperformanceblog.com/2009/07/07/improving-innodb-recovery-time/&amp;title=Improving InnoDB recovery time" title="Digg this post on Digg.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/digg.png" alt="digg" /></a> | <a href="http://reddit.com/submit?url=http://www.mysqlperformanceblog.com/2009/07/07/improving-innodb-recovery-time/&amp;title=Improving InnoDB recovery time" title="Submit this post on reddit.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/reddit.png" alt="reddit" /></a> | <a href="http://www.netscape.com/submit/?U=http://www.mysqlperformanceblog.com/2009/07/07/improving-innodb-recovery-time/&amp;T=Improving InnoDB recovery time" title="Vote for this article on Netscape"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/netscape.gif" alt="netscape" /></a> | <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.mysqlperformanceblog.com/2009/07/07/improving-innodb-recovery-time/&amp;title=Improving InnoDB recovery time" title="Add to Google Bookmarks"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/google.png" alt="Google Bookmarks" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mysqlperformanceblog.com/2009/07/07/improving-innodb-recovery-time/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>xtrabackup-0.8</title>
		<link>http://www.mysqlperformanceblog.com/2009/07/01/xtrabackup-08/</link>
		<comments>http://www.mysqlperformanceblog.com/2009/07/01/xtrabackup-08/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:09:04 +0000</pubDate>
		<dc:creator>Aleksandr Kuzminsky</dc:creator>
				<category><![CDATA[Backups]]></category>

		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=709</guid>
		<description><![CDATA[Dear community,
The release 0.8 of the opensource backup tool for InnoDB and XtraDB is available for download.
Key features:

New mode of innobackupex --stream=tar4ibd; new command tar4ibd based on libtar-1.2.11
Experimental option --export is added (see Vadim's post "Impossible - possible, moving InnoDB tables between servers"for details)

tar4ibd is made to be sure that read of InnoDB page is [...]]]></description>
			<content:encoded><![CDATA[<p>Dear community,</p>
<p>The release 0.8 of the opensource backup tool for InnoDB and XtraDB is available for <a href="http://www.percona.com/mysql/xtrabackup/0.8/" target="_blank">download</a>.</p>
<p>Key features:</p>
<ul>
<li>New mode of innobackupex --stream=tar4ibd; new command tar4ibd based on libtar-1.2.11</li>
<li>Experimental option --export is added (see Vadim's post <a rel="bookmark" href="../2009/06/08/impossible-possible-moving-innodb-tables-between-servers/">"Impossible - possible, moving InnoDB tables between servers"</a>for details)</li>
</ul>
<p>tar4ibd is made to be sure that read of InnoDB page is consistent. Before we had some complains what in stream mode some pages are getting corrupted, and we suspect tar can do read of  pages in time when they changed. So we patches libtar to make read consistent.</p>
<p>Export is added to support moving .ibd tablespaces between servers.</p>
<p>The list of other features in the release includes:</p>
<ul>
<li>Support of ARCHIVE tables</li>
<li>Addded incremental option to innobackupex-1.5.1 script</li>
<li>Rollback XA PREPAREd transaction automatically at --prepare</li>
<li>To extend tablespace size, if needed after --prepare</li>
<li>Data page corruption check is added to local backup mode</li>
<li>innobackupex can pass --export option</li>
<li><a href="https://bugs.launchpad.net/percona-xtrabackup/+bug/389360">Bug #389360:</a> innobackupex-1.5.1 accepts scp options</li>
</ul>
<p>Fixed bugs:</p>
<ul>
<li><a href="https://bugs.launchpad.net/percona-xtrabackup/+bug/388062">Bug #388062:</a> Update to innobackupex to include incremental</li>
<li>fix error handling of tar stream</li>
</ul>
<p>The binary packages for RHEL4,5, Debian, FreeBSD as well as source code of the XtraBackup is available on <a href="http://www.percona.com/mysql/xtrabackup/0.8/">http://www.percona.com/mysql/xtrabackup/0.8/</a>.</p>
<p>The project lives on Launchpad : <a href="https://launchpad.net/percona-xtrabackup">https://launchpad.net/percona-xtrabackup</a> and you can report bug to Launchpad bug system:<br />
<a href="https://launchpad.net/percona-xtrabackup/+filebug">https://launchpad.net/percona-xtrabackup/+filebug</a>. The documentation is available on <a href="http://www.percona.com/docs/wiki/percona-xtrabackup:start">our Wiki</a>.</p>
<p>For general questions use our <a href="http://groups.google.com/group/percona-discussion">Pecona-discussions</a> group, and for development question <a href="http://groups.google.com/group/percona-dev">Percona-dev</a> group.</p>
<p>For support, commercial and sponsorship inquiries contact <a href="http://www.percona.com/contacts.html">Percona</a>.</p>
    <hr noshade style="margin:0;height:1px" />
    <p>Entry posted by Aleksandr Kuzminsky |
      <a href="http://www.mysqlperformanceblog.com/2009/07/01/xtrabackup-08/#comments">7 comments</a></p>
    <p>Add to: <a href="http://del.icio.us/post?url=http://www.mysqlperformanceblog.com/2009/07/01/xtrabackup-08/&amp;title=xtrabackup-0.8" title="Bookmark this post on del.icio.us"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/delicious.png" alt="delicious" /></a> | <a href="http://digg.com/submit?phase=2&amp;url=http://www.mysqlperformanceblog.com/2009/07/01/xtrabackup-08/&amp;title=xtrabackup-0.8" title="Digg this post on Digg.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/digg.png" alt="digg" /></a> | <a href="http://reddit.com/submit?url=http://www.mysqlperformanceblog.com/2009/07/01/xtrabackup-08/&amp;title=xtrabackup-0.8" title="Submit this post on reddit.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/reddit.png" alt="reddit" /></a> | <a href="http://www.netscape.com/submit/?U=http://www.mysqlperformanceblog.com/2009/07/01/xtrabackup-08/&amp;T=xtrabackup-0.8" title="Vote for this article on Netscape"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/netscape.gif" alt="netscape" /></a> | <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.mysqlperformanceblog.com/2009/07/01/xtrabackup-08/&amp;title=xtrabackup-0.8" title="Add to Google Bookmarks"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/google.png" alt="Google Bookmarks" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mysqlperformanceblog.com/2009/07/01/xtrabackup-08/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>xtrabackup-0.7 (RC)</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/21/xtrabackup-07-rc/</link>
		<comments>http://www.mysqlperformanceblog.com/2009/05/21/xtrabackup-07-rc/#comments</comments>
		<pubDate>Thu, 21 May 2009 13:43:18 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[announce]]></category>

		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=693</guid>
		<description><![CDATA[We announce next version of our xtrabackup tool and we consider it stable enough to put label RC on it.
Changelist includes:
- use O_DIRECT by default for handling InnoDB files
- use posix fadvise call to disable OS caching of copying files
- disable recovery of double buffer 
Also we added binary builds for FreeBSD 7 64bit platform
You [...]]]></description>
			<content:encoded><![CDATA[<p>We announce next version of our xtrabackup tool and we consider it stable enough to put label RC on it.</p>
<p>Changelist includes:</p>
<p>- use O_DIRECT by default for handling InnoDB files<br />
- use posix fadvise call to disable OS caching of copying files<br />
- disable recovery of double buffer </p>
<p>Also we added binary builds for FreeBSD 7 64bit platform</p>
<p>You can download current binaries (64bit) RPM for RHEL4 and RHEL5 (compatible with CentOS also), DEB for Debian/Ubuntu, tar.gz for Mac OS / Intel  and .tar.gz for FreeBSD 7:<br />
<a href="http://www.percona.com/mysql/xtrabackup/0.7/">http://www.percona.com/mysql/xtrabackup/0.7/</a>.<br />
By the same link you can find general .tar.gz with binaries which can be run on any modern Linux distribution.<br />
By the same link you can download source code if you do not want to deal with bazaar and Launchpad.</p>
<p>The project lives on Launchpad : <a href="https://launchpad.net/percona-xtrabackup">https://launchpad.net/percona-xtrabackup</a> and you can report bug to Launchpad bug system:<br />
<a href="https://launchpad.net/percona-xtrabackup/+filebug">https://launchpad.net/percona-xtrabackup/+filebug</a>. The documentation is available on <a href="http://www.percona.com/docs/wiki/percona-xtrabackup:start">our Wiki</a></p>
<p>For general questions use our <a href="http://groups.google.com/group/percona-discussion">Pecona-discussions</a> group, and for development question <a href="http://groups.google.com/group/percona-dev">Percona-dev</a> group.</p>
<p>For support, commercial and sponsorship inquiries contact <a href="http://www.percona.com/contacts.html">Percona</a></p>
    <hr noshade style="margin:0;height:1px" />
    <p>Entry posted by Vadim |
      <a href="http://www.mysqlperformanceblog.com/2009/05/21/xtrabackup-07-rc/#comments">4 comments</a></p>
    <p>Add to: <a href="http://del.icio.us/post?url=http://www.mysqlperformanceblog.com/2009/05/21/xtrabackup-07-rc/&amp;title=xtrabackup-0.7 (RC)" title="Bookmark this post on del.icio.us"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/delicious.png" alt="delicious" /></a> | <a href="http://digg.com/submit?phase=2&amp;url=http://www.mysqlperformanceblog.com/2009/05/21/xtrabackup-07-rc/&amp;title=xtrabackup-0.7 (RC)" title="Digg this post on Digg.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/digg.png" alt="digg" /></a> | <a href="http://reddit.com/submit?url=http://www.mysqlperformanceblog.com/2009/05/21/xtrabackup-07-rc/&amp;title=xtrabackup-0.7 (RC)" title="Submit this post on reddit.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/reddit.png" alt="reddit" /></a> | <a href="http://www.netscape.com/submit/?U=http://www.mysqlperformanceblog.com/2009/05/21/xtrabackup-07-rc/&amp;T=xtrabackup-0.7 (RC)" title="Vote for this article on Netscape"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/netscape.gif" alt="netscape" /></a> | <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.mysqlperformanceblog.com/2009/05/21/xtrabackup-07-rc/&amp;title=xtrabackup-0.7 (RC)" title="Add to Google Bookmarks"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/google.png" alt="Google Bookmarks" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mysqlperformanceblog.com/2009/05/21/xtrabackup-07-rc/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hint: throttling xtrabackup</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/20/hint-throttling-xtrabackup/</link>
		<comments>http://www.mysqlperformanceblog.com/2009/05/20/hint-throttling-xtrabackup/#comments</comments>
		<pubDate>Thu, 21 May 2009 06:21:00 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=692</guid>
		<description><![CDATA[Using xtrabackup for copying files can really saturate your disks, and that why we made special option --throttle=rate to limit rate of IO per second. But it really works when you do local copy.
What about stream backup ? Even you copy just to remote box with
innobackupex --stream=tar &#124; ssh remotebox "tar xfi -"
, read may [...]]]></description>
			<content:encoded><![CDATA[<p>Using xtrabackup for copying files can really saturate your disks, and that why we made special option <code>--throttle=rate</code> to limit rate of IO per second. But it really works when you do local copy.<br />
What about stream backup ? Even you copy just to remote box with<br />
<code>innobackupex --stream=tar | ssh remotebox "tar xfi -"</code><br />
, read may be so intensive so your mysqld feels impact, slave getting behind, etc...</p>
<p>For this there is a nice small utility - <a href="http://www.ivarch.com/programs/quickref/pv.shtml">pv</a> .</p>
<p>With pv you run:<br />
<code>innobackupex --stream=tar | pv -q -L10m | ssh remotebox "tar xfi -" </code></p>
<p>and it will limit channel rate to 10 M per second.</p>
    <hr noshade style="margin:0;height:1px" />
    <p>Entry posted by Vadim |
      <a href="http://www.mysqlperformanceblog.com/2009/05/20/hint-throttling-xtrabackup/#comments">No comment</a></p>
    <p>Add to: <a href="http://del.icio.us/post?url=http://www.mysqlperformanceblog.com/2009/05/20/hint-throttling-xtrabackup/&amp;title=Hint: throttling xtrabackup" title="Bookmark this post on del.icio.us"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/delicious.png" alt="delicious" /></a> | <a href="http://digg.com/submit?phase=2&amp;url=http://www.mysqlperformanceblog.com/2009/05/20/hint-throttling-xtrabackup/&amp;title=Hint: throttling xtrabackup" title="Digg this post on Digg.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/digg.png" alt="digg" /></a> | <a href="http://reddit.com/submit?url=http://www.mysqlperformanceblog.com/2009/05/20/hint-throttling-xtrabackup/&amp;title=Hint: throttling xtrabackup" title="Submit this post on reddit.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/reddit.png" alt="reddit" /></a> | <a href="http://www.netscape.com/submit/?U=http://www.mysqlperformanceblog.com/2009/05/20/hint-throttling-xtrabackup/&amp;T=Hint: throttling xtrabackup" title="Vote for this article on Netscape"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/netscape.gif" alt="netscape" /></a> | <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.mysqlperformanceblog.com/2009/05/20/hint-throttling-xtrabackup/&amp;title=Hint: throttling xtrabackup" title="Add to Google Bookmarks"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/google.png" alt="Google Bookmarks" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mysqlperformanceblog.com/2009/05/20/hint-throttling-xtrabackup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xtrabackup-0.6</title>
		<link>http://www.mysqlperformanceblog.com/2009/04/29/xtrabackup-06/</link>
		<comments>http://www.mysqlperformanceblog.com/2009/04/29/xtrabackup-06/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 16:17:53 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[announce]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=673</guid>
		<description><![CDATA[We announce next beta version of our xtrabackup tool.
Changelist includes:
- set innodb_fast_shutdown=1 on xtrabackup shutdown
- set innodb_write_io_threads=10 by default for fast buffer_pool flushing during recovery
- build xtrabackup with --with-extra-charsets=complex
Bug #357653: innobackupex-1.5.1 --copy-back fails
Bug #358194: 2nd-phase is very slow
Bug #358266: xtrabackup-0.5 dies with SEGV on bad command line arguments
Bug #359341: innobackupex still does not read defaults-file [...]]]></description>
			<content:encoded><![CDATA[<p>We announce next beta version of our xtrabackup tool.</p>
<p>Changelist includes:</p>
<p>- set innodb_fast_shutdown=1 on xtrabackup shutdown<br />
- set innodb_write_io_threads=10 by default for fast buffer_pool flushing during recovery<br />
- build xtrabackup with --with-extra-charsets=complex<br />
Bug #357653: innobackupex-1.5.1 --copy-back fails<br />
Bug #358194: 2nd-phase is very slow<br />
Bug #358266: xtrabackup-0.5 dies with SEGV on bad command line arguments<br />
Bug #359341: innobackupex still does not read defaults-file </p>
<p>You can download current binaries RPM for RHEL4 and RHEL5 (compatible with CentOS also), DEB for Debian/Ubuntu and tar.gz for Mac OS / Intel 64bit there:<br />
<a href="http://www.percona.com/mysql/xtrabackup/0.6/">http://www.percona.com/mysql/xtrabackup/0.6/</a>.<br />
By the same link you can find general .tar.gz with binaries which can be run on any modern Linux distribution.<br />
By the same link you can download source code if you do not want to deal with bazaar and Launchpad.</p>
<p>The project lives on Launchpad : <a href="https://launchpad.net/percona-xtrabackup">https://launchpad.net/percona-xtrabackup</a> and you can report bug to Launchpad bug system:<br />
<a href="https://launchpad.net/percona-xtrabackup/+filebug">https://launchpad.net/percona-xtrabackup/+filebug</a>. The documentation is available on <a href="http://www.percona.com/docs/wiki/percona-xtrabackup:start">our Wiki</a></p>
<p>For general questions use our <a href="http://groups.google.com/group/percona-discussion">Pecona-discussions</a> group, and for development question <a href="http://groups.google.com/group/percona-dev">Percona-dev</a> group.</p>
<p>For support, commercial and sponsorship inquiries contact <a href="http://www.percona.com/contacts.html">Percona</a></p>
    <hr noshade style="margin:0;height:1px" />
    <p>Entry posted by Vadim |
      <a href="http://www.mysqlperformanceblog.com/2009/04/29/xtrabackup-06/#comments">6 comments</a></p>
    <p>Add to: <a href="http://del.icio.us/post?url=http://www.mysqlperformanceblog.com/2009/04/29/xtrabackup-06/&amp;title=xtrabackup-0.6" title="Bookmark this post on del.icio.us"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/delicious.png" alt="delicious" /></a> | <a href="http://digg.com/submit?phase=2&amp;url=http://www.mysqlperformanceblog.com/2009/04/29/xtrabackup-06/&amp;title=xtrabackup-0.6" title="Digg this post on Digg.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/digg.png" alt="digg" /></a> | <a href="http://reddit.com/submit?url=http://www.mysqlperformanceblog.com/2009/04/29/xtrabackup-06/&amp;title=xtrabackup-0.6" title="Submit this post on reddit.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/reddit.png" alt="reddit" /></a> | <a href="http://www.netscape.com/submit/?U=http://www.mysqlperformanceblog.com/2009/04/29/xtrabackup-06/&amp;T=xtrabackup-0.6" title="Vote for this article on Netscape"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/netscape.gif" alt="netscape" /></a> | <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.mysqlperformanceblog.com/2009/04/29/xtrabackup-06/&amp;title=xtrabackup-0.6" title="Add to Google Bookmarks"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/google.png" alt="Google Bookmarks" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mysqlperformanceblog.com/2009/04/29/xtrabackup-06/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>xtrabackup-0.5, bugfixes, incremental backup introduction</title>
		<link>http://www.mysqlperformanceblog.com/2009/04/07/xtrabackup-05-bugfixes-introduction-incremental-backup/</link>
		<comments>http://www.mysqlperformanceblog.com/2009/04/07/xtrabackup-05-bugfixes-introduction-incremental-backup/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 03:23:07 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Backups]]></category>

		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=653</guid>
		<description><![CDATA[I am happy to announce next build of our backup tool. This version contains several bugfixes and introduces initial implementation of incremental backup.
Incremental backup works in next way. When you do regular backup, at the end of procedure you can see output:
PLAIN TEXT
CODE:




The latest check point &#40;for incremental&#41;: '1319:813219999'


&#62;&#62; log scanned up to &#40;1319 813701532&#41;


Transaction [...]]]></description>
			<content:encoded><![CDATA[<p>I am happy to announce next build of our backup tool. This version contains several bugfixes and introduces initial implementation of incremental backup.</p>
<p>Incremental backup works in next way. When you do regular backup, at the end of procedure you can see output:</p>
<div class="igBar"><span id="lcode-21"><a href="#" onclick="javascript:showPlainTxt('code-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-21">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">The latest check point <span style="color:#006600; font-weight:bold;">&#40;</span>for incremental<span style="color:#006600; font-weight:bold;">&#41;</span>: <span style="color:#CC0000;">'1319:813219999'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&gt;&gt; log scanned up to <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">1319</span> <span style="color:#800000;color:#800000;">813701532</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Transaction log of lsn <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">1318</span> <span style="color:#800000;color:#800000;">3034677302</span><span style="color:#006600; font-weight:bold;">&#41;</span> to <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">1319</span> <span style="color:#800000;color:#800000;">813701532</span><span style="color:#006600; font-weight:bold;">&#41;</span> was copied.</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">090404</span> <span style="color:#800000;color:#800000;">06</span>:<span style="color:#800000;color:#800000;">03</span>:<span style="color:#800000;color:#800000;">29</span>&nbsp; innobackupex: All tables unlocked</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">090404</span> <span style="color:#800000;color:#800000;">06</span>:<span style="color:#800000;color:#800000;">03</span>:<span style="color:#800000;color:#800000;">29</span>&nbsp; innobackupex: Connection to database server closed</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">innobackupex: Backup created in directory <span style="color:#CC0000;">'/mnt/data/tmp'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">innobackupex: MySQL binlog position: filename <span style="color:#CC0000;">'db02-bin.001271'</span>, position <span style="color:#800000;color:#800000;">247627478</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">090404</span> <span style="color:#800000;color:#800000;">06</span>:<span style="color:#800000;color:#800000;">07</span>:<span style="color:#800000;color:#800000;">58</span>&nbsp; innobackupex: innobackup completed OK!</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">innobackupex: You must use -i <span style="color:#006600; font-weight:bold;">&#40;</span>--ignore-zeros<span style="color:#006600; font-weight:bold;">&#41;</span> option for extraction of the tar stream. </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>which gives start point 1319:813219999 for further incremental backup. This point is LSN of last checkpoint operations. Now next time when you want only copy changed pages you can do:</p>
<div class="igBar"><span id="lcode-22"><a href="#" onclick="javascript:showPlainTxt('code-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-22">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">xtrabackup --incremental_lsn=<span style="color:#800000;color:#800000;">1319</span>:<span style="color:#800000;color:#800000;">813219999</span> --backup --target-dir=/data/backup/increment_day1 </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>and only changed pages (ones with LSN greater than given) will be copied to specified dir. You may have several incremental dir, and apply them one-by-one.</p>
<p>Current version does not allow to copy incremental changes to remote box or to stream, it is only local copy for now, but we are going to change it in next release. Beside putting last checkpoint LSN to output  we also store it in xtrabackup_checkpoint file to use it in scripts.<br />
More about incremental you can read on our draft page <a href="http://www.percona.com/docs/wiki/percona-xtrabackup:spec:incremental">http://www.percona.com/docs/wiki/percona-xtrabackup:spec:incremental</a></p>
<p>You can download current binaries RPM for RHEL4 and RHEL5 (compatible with CentOS also), DEB for Debian/Ubuntu and tar.gz for Mac OS / Intel 64bit there:<br />
<a href="http://www.percona.com/mysql/xtrabackup/0.5/">http://www.percona.com/mysql/xtrabackup/0.5/</a>.<br />
By the same link you can find general .tar.gz with binaries which can be run on any modern Linux distribution.<br />
By the same link you can download source code if you do not want to deal with bazaar and Launchpad.</p>
<p>The project lives on Launchpad : <a href="https://launchpad.net/percona-xtrabackup">https://launchpad.net/percona-xtrabackup</a> and you can report bug to Launchpad bug system:<br />
<a href="https://launchpad.net/percona-xtrabackup/+filebug">https://launchpad.net/percona-xtrabackup/+filebug</a>. The documentation is available on <a href="http://www.percona.com/docs/wiki/percona-xtrabackup:start">our Wiki</a></p>
<p>For general questions use our <a href="http://groups.google.com/group/percona-discussion">Pecona-discussions</a> group, and for development question <a href="http://groups.google.com/group/percona-dev">Percona-dev</a> group.</p>
<p>For support, commercial and sponsorship inquiries contact <a href="http://www.percona.com/contacts.html">Percona</a></p>
    <hr noshade style="margin:0;height:1px" />
    <p>Entry posted by Vadim |
      <a href="http://www.mysqlperformanceblog.com/2009/04/07/xtrabackup-05-bugfixes-introduction-incremental-backup/#comments">6 comments</a></p>
    <p>Add to: <a href="http://del.icio.us/post?url=http://www.mysqlperformanceblog.com/2009/04/07/xtrabackup-05-bugfixes-introduction-incremental-backup/&amp;title=xtrabackup-0.5, bugfixes, incremental backup introduction" title="Bookmark this post on del.icio.us"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/delicious.png" alt="delicious" /></a> | <a href="http://digg.com/submit?phase=2&amp;url=http://www.mysqlperformanceblog.com/2009/04/07/xtrabackup-05-bugfixes-introduction-incremental-backup/&amp;title=xtrabackup-0.5, bugfixes, incremental backup introduction" title="Digg this post on Digg.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/digg.png" alt="digg" /></a> | <a href="http://reddit.com/submit?url=http://www.mysqlperformanceblog.com/2009/04/07/xtrabackup-05-bugfixes-introduction-incremental-backup/&amp;title=xtrabackup-0.5, bugfixes, incremental backup introduction" title="Submit this post on reddit.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/reddit.png" alt="reddit" /></a> | <a href="http://www.netscape.com/submit/?U=http://www.mysqlperformanceblog.com/2009/04/07/xtrabackup-05-bugfixes-introduction-incremental-backup/&amp;T=xtrabackup-0.5, bugfixes, incremental backup introduction" title="Vote for this article on Netscape"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/netscape.gif" alt="netscape" /></a> | <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.mysqlperformanceblog.com/2009/04/07/xtrabackup-05-bugfixes-introduction-incremental-backup/&amp;title=xtrabackup-0.5, bugfixes, incremental backup introduction" title="Add to Google Bookmarks"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/google.png" alt="Google Bookmarks" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mysqlperformanceblog.com/2009/04/07/xtrabackup-05-bugfixes-introduction-incremental-backup/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>xtrabackup-0.4, going beta, progress meter</title>
		<link>http://www.mysqlperformanceblog.com/2009/03/30/xtrabackup-04-going-beta-progress-meter/</link>
		<comments>http://www.mysqlperformanceblog.com/2009/03/30/xtrabackup-04-going-beta-progress-meter/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 17:27:36 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Backups]]></category>
		<category><![CDATA[release]]></category>

		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=650</guid>
		<description><![CDATA[We added some new features to our backup tool, namely:

 Now we can handle log file taken during  backup with size exceeding 4GB, it may happen if backup takes too long and you have a lot of updates on InnoDB tables
 Progress meter during recovery step, now you can see what percentage of log [...]]]></description>
			<content:encoded><![CDATA[<p>We added some new features to our backup tool, namely:</p>
<ul>
<li> Now we can handle log file taken during  backup with size exceeding 4GB, it may happen if backup takes too long and you have a lot of updates on InnoDB tables</li>
<li> Progress meter during recovery step, now you can see what percentage of log file was handled
</li>
</ul>
<div class="igBar"><span id="lcode-24"><a href="#" onclick="javascript:showPlainTxt('code-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-24">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">InnoDB: Doing recovery: scanned up to log sequence number <span style="color:#800000;color:#800000;">1316</span> <span style="color:#800000;color:#800000;">3688693248</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">34</span> %<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">...</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="">InnoDB</span>: Doing recovery: scanned up to log sequence number <span style="color:#800000;color:#800000;">1316</span> <span style="color:#800000;color:#800000;">4113366528</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">68</span> %<span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">InnoDB: Doing recovery: scanned up to log sequence number <span style="color:#800000;color:#800000;">1316</span> <span style="color:#800000;color:#800000;">4117548544</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#800000;color:#800000;">68</span> %<span style="color:#006600; font-weight:bold;">&#41;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Also we did extensive testing and fixed bugs, so now we consider current state as feature complete and with beta-release stability.</p>
<p>You can download current binaries RPM for RHEL4 and RHEL5 (compatible with CentOS also) and DEB for Debian/Ubuntu there<br />
<a href="http://www.percona.com/mysql/xtrabackup/0.4/">http://www.percona.com/mysql/xtrabackup/0.4/</a>.<br />
By the same link you can find general .tar.gz with binaries which can be run on any modern Linux distribution.<br />
By the same link you can download source code if you do not want to deal with bazaar and Launchpad.</p>
<p>The project lives on Launchpad : <a href="https://launchpad.net/percona-xtrabackup">https://launchpad.net/percona-xtrabackup</a> and you can report bug to Launchpad bug system:<br />
<a href="https://launchpad.net/percona-xtrabackup/+filebug">https://launchpad.net/percona-xtrabackup/+filebug</a>. The documentation is available on <a href="http://www.percona.com/docs/wiki/percona-xtrabackup:start">our Wiki</a></p>
<p>For general questions use our <a href="http://groups.google.com/group/percona-discussion">Pecona-discussions</a> group, and for development question <a href="http://groups.google.com/group/percona-dev">Percona-dev</a> group.</p>
<p>For support, commercial and sponsorship inquiries contact <a href="http://www.percona.com/contacts.html">Percona</a></p>
    <hr noshade style="margin:0;height:1px" />
    <p>Entry posted by Vadim |
      <a href="http://www.mysqlperformanceblog.com/2009/03/30/xtrabackup-04-going-beta-progress-meter/#comments">7 comments</a></p>
    <p>Add to: <a href="http://del.icio.us/post?url=http://www.mysqlperformanceblog.com/2009/03/30/xtrabackup-04-going-beta-progress-meter/&amp;title=xtrabackup-0.4, going beta, progress meter" title="Bookmark this post on del.icio.us"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/delicious.png" alt="delicious" /></a> | <a href="http://digg.com/submit?phase=2&amp;url=http://www.mysqlperformanceblog.com/2009/03/30/xtrabackup-04-going-beta-progress-meter/&amp;title=xtrabackup-0.4, going beta, progress meter" title="Digg this post on Digg.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/digg.png" alt="digg" /></a> | <a href="http://reddit.com/submit?url=http://www.mysqlperformanceblog.com/2009/03/30/xtrabackup-04-going-beta-progress-meter/&amp;title=xtrabackup-0.4, going beta, progress meter" title="Submit this post on reddit.com"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/reddit.png" alt="reddit" /></a> | <a href="http://www.netscape.com/submit/?U=http://www.mysqlperformanceblog.com/2009/03/30/xtrabackup-04-going-beta-progress-meter/&amp;T=xtrabackup-0.4, going beta, progress meter" title="Vote for this article on Netscape"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/netscape.gif" alt="netscape" /></a> | <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.mysqlperformanceblog.com/2009/03/30/xtrabackup-04-going-beta-progress-meter/&amp;title=xtrabackup-0.4, going beta, progress meter" title="Add to Google Bookmarks"><img src="http://www.mysqlperformanceblog.com/wp-content/themes/boxy-but-gold/images/google.png" alt="Google Bookmarks" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.mysqlperformanceblog.com/2009/03/30/xtrabackup-04-going-beta-progress-meter/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
