<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Concerns and What Does Not Work in XtraDB Backup</title>
	<atom:link href="http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Sat, 20 Mar 2010 10:37:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gerry</title>
		<link>http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/#comment-365562</link>
		<dc:creator>Gerry</dc:creator>
		<pubDate>Wed, 08 Jul 2009 19:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3241#comment-365562</guid>
		<description>Apparently my observations while implementing &#039;innobackupex&#039; in a complex environment has created some interesting traffic on this blog post by Sheeri, triggered some patches from Percona (thank you for doing it) and great suggestions on how to check for errors in the pipe both in Perl and Bash. We&#039;ll make sure those make it to our scripts.

Up to the day before my short vacation, I wasn&#039;t been able to install v0.8 since the RPMs weren&#039;t yet posted.

As posted by Sheeri, the permissions concerns come from the fact that the &#039;innobackupex&#039; script kept failing with a &#039;Permission denied&#039; message. I didn&#039;t think there was a need for the &#039;w&#039; permission meant that something was being written to &#039;ibbdata1&#039;, but *nix security is there for a reason, and I didn&#039;t see why then we needed to relax it w/o understanding what was going on. Apparently this has been fixed from what I understand from the comment thread.

As you know Pythian work is done on customer&#039;s time most of time, so we try the solutions that best work under the circumstances. With that criteria in mind, I usually avoid going into the source code of any tool unless there is a really compelling reason to do it. That&#039;s why I didn&#039;t go ahead and fixed the compilation issues for 4.1 and rather wait for Percona to do it.

I hope this helps to clarify Sheeri&#039;s original blog.</description>
		<content:encoded><![CDATA[<p>Apparently my observations while implementing &#8216;innobackupex&#8217; in a complex environment has created some interesting traffic on this blog post by Sheeri, triggered some patches from Percona (thank you for doing it) and great suggestions on how to check for errors in the pipe both in Perl and Bash. We&#8217;ll make sure those make it to our scripts.</p>
<p>Up to the day before my short vacation, I wasn&#8217;t been able to install v0.8 since the RPMs weren&#8217;t yet posted.</p>
<p>As posted by Sheeri, the permissions concerns come from the fact that the &#8216;innobackupex&#8217; script kept failing with a &#8216;Permission denied&#8217; message. I didn&#8217;t think there was a need for the &#8216;w&#8217; permission meant that something was being written to &#8216;ibbdata1&#8242;, but *nix security is there for a reason, and I didn&#8217;t see why then we needed to relax it w/o understanding what was going on. Apparently this has been fixed from what I understand from the comment thread.</p>
<p>As you know Pythian work is done on customer&#8217;s time most of time, so we try the solutions that best work under the circumstances. With that criteria in mind, I usually avoid going into the source code of any tool unless there is a really compelling reason to do it. That&#8217;s why I didn&#8217;t go ahead and fixed the compilation issues for 4.1 and rather wait for Percona to do it.</p>
<p>I hope this helps to clarify Sheeri&#8217;s original blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/#comment-365391</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Tue, 07 Jul 2009 05:52:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3241#comment-365391</guid>
		<description>Sheeri,

I&#039;m not sure what you mean by &quot;...I have not disputed that the “write” is actually just opened with read/write permissions.&quot;  Are you contradicting your earlier statement that &quot;YES the ibdata file IS written to&quot;?  Or is &quot;write&quot; being defined in some non-standard way?

I&#039;m a little curious, given that you were rather acerbic with the comment that:
&quot;So perhaps if you took the time to read BOTH the edit in the middle of the page, made 5 hours before your comment, as well as the rest of the comments, you’d understand that:

YES the ibdata file IS written to&quot;

Which is wildly incorrect - I apologize for being so persistent in stating so.  Something like &quot;I can&#039;t use xtrabackup as a non-mysql, non-root user&quot;, seems much more fitting without more interesting evidence to the contrary.

So, I suppose all I would ask is that the terminology be a bit more accurate so that we would not have necessarily talk past each other.

Again, Thank you for the otherwise productive discussion.  Warm Regards.</description>
		<content:encoded><![CDATA[<p>Sheeri,</p>
<p>I&#8217;m not sure what you mean by &#8220;&#8230;I have not disputed that the “write” is actually just opened with read/write permissions.&#8221;  Are you contradicting your earlier statement that &#8220;YES the ibdata file IS written to&#8221;?  Or is &#8220;write&#8221; being defined in some non-standard way?</p>
<p>I&#8217;m a little curious, given that you were rather acerbic with the comment that:<br />
&#8220;So perhaps if you took the time to read BOTH the edit in the middle of the page, made 5 hours before your comment, as well as the rest of the comments, you’d understand that:</p>
<p>YES the ibdata file IS written to&#8221;</p>
<p>Which is wildly incorrect &#8211; I apologize for being so persistent in stating so.  Something like &#8220;I can&#8217;t use xtrabackup as a non-mysql, non-root user&#8221;, seems much more fitting without more interesting evidence to the contrary.</p>
<p>So, I suppose all I would ask is that the terminology be a bit more accurate so that we would not have necessarily talk past each other.</p>
<p>Again, Thank you for the otherwise productive discussion.  Warm Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri Cabral</title>
		<link>http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/#comment-365293</link>
		<dc:creator>Sheeri Cabral</dc:creator>
		<pubDate>Mon, 06 Jul 2009 13:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3241#comment-365293</guid>
		<description>Andrew,

Before Vadim clarified what the writes actually were, it did indeed *look* like an external process (xtrabackup) was writing to the files.  Thus, the concern.

I had not had time to read the patches, and I have not disputed that the &quot;write&quot; is actually just opened with read/write permissions.

As for portraying the issue actually, as soon as I got the facts I updated the blog post.  What more would you like me to do?</description>
		<content:encoded><![CDATA[<p>Andrew,</p>
<p>Before Vadim clarified what the writes actually were, it did indeed *look* like an external process (xtrabackup) was writing to the files.  Thus, the concern.</p>
<p>I had not had time to read the patches, and I have not disputed that the &#8220;write&#8221; is actually just opened with read/write permissions.</p>
<p>As for portraying the issue actually, as soon as I got the facts I updated the blog post.  What more would you like me to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/#comment-365040</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Sat, 04 Jul 2009 05:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3241#comment-365040</guid>
		<description>Just to clarify for posterity and no further offense intended :)

I was not disputing the fact that you can&#039;t run xtrabackup without write access to the ibdata file.  This in itself is a (somewhat minor) problem, but nowhere near as scary as an external process directly writing to my ibdata files (which again, is NOT happening).

I was pointing out that the original, source ibdata file that my production MySQL server is running with is NOT written to, despite what you keep saying.   But it is opened with read/write permissions.  No actual &quot;write&quot; is taken out in the xtrabackup trunk, the ibdata files themselves will just be opened in read-only mode - read the patches, they&#039;re very simple. 

I don&#039;t mean to split hairs here, but I think its important to portray the underlying issue accurately.  Again, the ibdata files are NOT written to by xtrabackup today.</description>
		<content:encoded><![CDATA[<p>Just to clarify for posterity and no further offense intended :)</p>
<p>I was not disputing the fact that you can&#8217;t run xtrabackup without write access to the ibdata file.  This in itself is a (somewhat minor) problem, but nowhere near as scary as an external process directly writing to my ibdata files (which again, is NOT happening).</p>
<p>I was pointing out that the original, source ibdata file that my production MySQL server is running with is NOT written to, despite what you keep saying.   But it is opened with read/write permissions.  No actual &#8220;write&#8221; is taken out in the xtrabackup trunk, the ibdata files themselves will just be opened in read-only mode &#8211; read the patches, they&#8217;re very simple. </p>
<p>I don&#8217;t mean to split hairs here, but I think its important to portray the underlying issue accurately.  Again, the ibdata files are NOT written to by xtrabackup today.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri Cabral</title>
		<link>http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/#comment-365005</link>
		<dc:creator>Sheeri Cabral</dc:creator>
		<pubDate>Fri, 03 Jul 2009 22:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3241#comment-365005</guid>
		<description>Andrew -- I can tell you for a fact that I could *not* run innobackupex without being the &quot;mysql&quot; user, even though the non-mysql user I was running it as had read privileges to the ibdata file, and 

My coworker, Gerry, &lt;a HREF=http://www.pythian.com/news/2850/using-xtradb-backup#comment-364144 rel=&quot;nofollow&quot;&gt;commented&lt;/A&gt; that it was writing to ibdata files.  He has the exact information, but he&#039;s currently on vacation.

I hardly think that calling attention to a fact is &quot;alarmist&quot;.  After the previous post saying that Xtrabackup was good and there was no real reason not to use it, I received feedback from others, which I then shared.

At any rate, Vadim explained the reason, and even fixed it.  So perhaps if you took the time to read BOTH the edit in the middle of the page, made 5 hours before your comment, as well as the rest of the comments, you&#039;d understand that:

YES the ibdata file IS written to

BUT that&#039;s an artifact of using InnoDB as the starting code for Xtrabackup

AND the write has been taken out of the Xtrabackup trunk, so hopefully it won&#039;t exist in the next version.</description>
		<content:encoded><![CDATA[<p>Andrew &#8212; I can tell you for a fact that I could *not* run innobackupex without being the &#8220;mysql&#8221; user, even though the non-mysql user I was running it as had read privileges to the ibdata file, and </p>
<p>My coworker, Gerry, <a HREF=http://www.pythian.com/news/2850/using-xtradb-backup#comment-364144 rel="nofollow">commented</a> that it was writing to ibdata files.  He has the exact information, but he&#8217;s currently on vacation.</p>
<p>I hardly think that calling attention to a fact is &#8220;alarmist&#8221;.  After the previous post saying that Xtrabackup was good and there was no real reason not to use it, I received feedback from others, which I then shared.</p>
<p>At any rate, Vadim explained the reason, and even fixed it.  So perhaps if you took the time to read BOTH the edit in the middle of the page, made 5 hours before your comment, as well as the rest of the comments, you&#8217;d understand that:</p>
<p>YES the ibdata file IS written to</p>
<p>BUT that&#8217;s an artifact of using InnoDB as the starting code for Xtrabackup</p>
<p>AND the write has been taken out of the Xtrabackup trunk, so hopefully it won&#8217;t exist in the next version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/#comment-364986</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 03 Jul 2009 18:36:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3241#comment-364986</guid>
		<description>I think it would be helpful to specify *which* ibdata file is being written to.  It&#039;s not the one in the original MySQL data directory.  This is easy to demonstrate:

# md5sum ibdata1 
891d6ec8b4885df30c6dabcec86d1dfc  ibdata1
# xtrabackup --backup --target-dir=/mnt/mysql/backups/
xtrabackup  Ver rc-0.7 for 5.0.77 unknown-linux-gnu (x86_64)
...
Copying ./ibdata1 
     to /mnt/mysql/backups//ibdata1
...
&gt;&gt; log scanned up to (0 2793120394)
        ...done
xtrabackup: The latest check point (for incremental): &#039;0:2793120394&#039;
&gt;&gt; log scanned up to (0 2793120394)
xtrabackup: Stopping log copying thread.
xtrabackup: Transaction log of lsn (0 2793120394) to (0 2793120394) was copied.
# md5sum ibdata1 
891d6ec8b4885df30c6dabcec86d1dfc  ibdata1

Of course, if you use the innobackupex wrapper, it will create a marker innodb table, as previously noted.  This is going through the running MySQL instance - not xtrabackup - and will change the ibdata file.

I think clarity on exactly what tools like these do is critical, but claims about &quot;direct writes to the data dictionary by the process&quot; are a bit alarmist when there&#039;s no evidence of that provided.</description>
		<content:encoded><![CDATA[<p>I think it would be helpful to specify *which* ibdata file is being written to.  It&#8217;s not the one in the original MySQL data directory.  This is easy to demonstrate:</p>
<p># md5sum ibdata1<br />
891d6ec8b4885df30c6dabcec86d1dfc  ibdata1<br />
# xtrabackup &#8211;backup &#8211;target-dir=/mnt/mysql/backups/<br />
xtrabackup  Ver rc-0.7 for 5.0.77 unknown-linux-gnu (x86_64)<br />
&#8230;<br />
Copying ./ibdata1<br />
     to /mnt/mysql/backups//ibdata1<br />
&#8230;<br />
&gt;&gt; log scanned up to (0 2793120394)<br />
        &#8230;done<br />
xtrabackup: The latest check point (for incremental): &#8216;0:2793120394&#8242;<br />
&gt;&gt; log scanned up to (0 2793120394)<br />
xtrabackup: Stopping log copying thread.<br />
xtrabackup: Transaction log of lsn (0 2793120394) to (0 2793120394) was copied.<br />
# md5sum ibdata1<br />
891d6ec8b4885df30c6dabcec86d1dfc  ibdata1</p>
<p>Of course, if you use the innobackupex wrapper, it will create a marker innodb table, as previously noted.  This is going through the running MySQL instance &#8211; not xtrabackup &#8211; and will change the ibdata file.</p>
<p>I think clarity on exactly what tools like these do is critical, but claims about &#8220;direct writes to the data dictionary by the process&#8221; are a bit alarmist when there&#8217;s no evidence of that provided.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #152: a Carnival of the Vanities for DBAs &#124; Pythian Group Blog</title>
		<link>http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/#comment-364971</link>
		<dc:creator>Log Buffer #152: a Carnival of the Vanities for DBAs &#124; Pythian Group Blog</dc:creator>
		<pubDate>Fri, 03 Jul 2009 16:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3241#comment-364971</guid>
		<description>[...] Here on the Pythian Blog, Sheeri Cabral expressed some concerns and what does not work in XtraDB backup. [...]</description>
		<content:encoded><![CDATA[<p>[...] Here on the Pythian Blog, Sheeri Cabral expressed some concerns and what does not work in XtraDB backup. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheeri Cabral</title>
		<link>http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/#comment-364961</link>
		<dc:creator>Sheeri Cabral</dc:creator>
		<pubDate>Fri, 03 Jul 2009 16:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3241#comment-364961</guid>
		<description>Vadim,

Any time the ibdata file is written to, there is a chance of corruption.  I have clarified to note that the only writes come from the fact that this is a restricted instance of InnoDB, so there is nothing different about the write than just plain running InnoDB.

However, before you explained that, all we knew was that the file was being written to, which *is* scary and vague.

As for the confusion issue -- anyone running Xtrabackup *already knows* that they cannot run it with a user that does not have write privileges to the ibdata file.  And if they do not realize that, they should.</description>
		<content:encoded><![CDATA[<p>Vadim,</p>
<p>Any time the ibdata file is written to, there is a chance of corruption.  I have clarified to note that the only writes come from the fact that this is a restricted instance of InnoDB, so there is nothing different about the write than just plain running InnoDB.</p>
<p>However, before you explained that, all we knew was that the file was being written to, which *is* scary and vague.</p>
<p>As for the confusion issue &#8212; anyone running Xtrabackup *already knows* that they cannot run it with a user that does not have write privileges to the ibdata file.  And if they do not realize that, they should.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VadimTK</title>
		<link>http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/#comment-364903</link>
		<dc:creator>VadimTK</dc:creator>
		<pubDate>Fri, 03 Jul 2009 06:09:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3241#comment-364903</guid>
		<description>Ok, as you may know xtrabackup is kind of very small and restricted instance of InnoDB, and reuses a lot of InnoDB code.

InnoDB by default requires  O_RDWR option on ibdata1 files at start, and xtrabackup therefore also did that. In the latest push to trunk it was fixed, now xtrabackup opens file with O_RDONLY flag.

I would ask to refute message that xtrabackup may cause corruption on working database as it is misleading and already confused a lot of users.</description>
		<content:encoded><![CDATA[<p>Ok, as you may know xtrabackup is kind of very small and restricted instance of InnoDB, and reuses a lot of InnoDB code.</p>
<p>InnoDB by default requires  O_RDWR option on ibdata1 files at start, and xtrabackup therefore also did that. In the latest push to trunk it was fixed, now xtrabackup opens file with O_RDONLY flag.</p>
<p>I would ask to refute message that xtrabackup may cause corruption on working database as it is misleading and already confused a lot of users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.pythian.com/news/3241/concerns-and-what-does-not-work-in-xtradb-backup/#comment-364833</link>
		<dc:creator>Xaprb</dc:creator>
		<pubDate>Thu, 02 Jul 2009 16:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3241#comment-364833</guid>
		<description>I see.  I had misunderstood the sequence of events and what you were actually seeing. I apologize.  I&#039;ll ping Vadim too and make sure we look at this.</description>
		<content:encoded><![CDATA[<p>I see.  I had misunderstood the sequence of events and what you were actually seeing. I apologize.  I&#8217;ll ping Vadim too and make sure we look at this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
