<?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: Living with backups</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/</link>
	<description>Percona&#039;s MySQL &#38; InnoDB performance and scalability blog</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:45:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Kattare</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-727288</link>
		<dc:creator>Kattare</dc:creator>
		<pubDate>Fri, 19 Feb 2010 21:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-727288</guid>
		<description>Baron, I went ahead and did some tests.  The files were coming out with different md5sums.  I expanded my tests to different server model pairs and discovered that some servers worked, others didn&#039;t.  They&#039;re all running the same OS, so I&#039;m not sure what the common thread is yet.  Whether it&#039;s a cpu issue, mobo issue, memory issue, or &quot;2.6.XX kernel with XX options compiled in on XX hardware&quot; kind of issue.  We run a lot of commodity hardware here so it&#039;s not uncommon to find oddities every here and there, but it&#039;s been a while now since I&#039;ve run into one like this.</description>
		<content:encoded><![CDATA[<p>Baron, I went ahead and did some tests.  The files were coming out with different md5sums.  I expanded my tests to different server model pairs and discovered that some servers worked, others didn&#8217;t.  They&#8217;re all running the same OS, so I&#8217;m not sure what the common thread is yet.  Whether it&#8217;s a cpu issue, mobo issue, memory issue, or &#8220;2.6.XX kernel with XX options compiled in on XX hardware&#8221; kind of issue.  We run a lot of commodity hardware here so it&#8217;s not uncommon to find oddities every here and there, but it&#8217;s been a while now since I&#8217;ve run into one like this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-712927</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Fri, 22 Jan 2010 03:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-712927</guid>
		<description>Kattare, I see.  Have you tried to md5sum files to check if they are the same after rsync?</description>
		<content:encoded><![CDATA[<p>Kattare, I see.  Have you tried to md5sum files to check if they are the same after rsync?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kattare</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-712744</link>
		<dc:creator>Kattare</dc:creator>
		<pubDate>Thu, 21 Jan 2010 18:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-712744</guid>
		<description>Baron, I understand the implications of doing filesystem backups while MySQL is running.  I was referring to rsync&#039;s done with MySQL shutdown.  EX, when I&#039;m trying to setup a new slave.  I&#039;ll shutdown the master, rsync off the data dir, (incl, ~30G ibdata1 file) spin up the master, spin up the slave, attach the slave to the master, and find out (usually within an hour or so) that some queries are failing on the slave because of some kind of corruption in the innodb tables.  I&#039;ve seen this behavior with several versions of rsync, with several versions of mysql, on several different linux distros, and on many different pieces of hardware.  When I use scp, it works fine.  When I use rsync, it &quot;reliably&quot; fails.  My theory is that there&#039;s something going on in rsync when the file gets over 4GB, but that&#039;s a very loose theory.  

With every new version of rsync I get excited and try my test case again, but sooner or later I think i&#039;m going to have to put together a bug report for the rsync guys.</description>
		<content:encoded><![CDATA[<p>Baron, I understand the implications of doing filesystem backups while MySQL is running.  I was referring to rsync&#8217;s done with MySQL shutdown.  EX, when I&#8217;m trying to setup a new slave.  I&#8217;ll shutdown the master, rsync off the data dir, (incl, ~30G ibdata1 file) spin up the master, spin up the slave, attach the slave to the master, and find out (usually within an hour or so) that some queries are failing on the slave because of some kind of corruption in the innodb tables.  I&#8217;ve seen this behavior with several versions of rsync, with several versions of mysql, on several different linux distros, and on many different pieces of hardware.  When I use scp, it works fine.  When I use rsync, it &#8220;reliably&#8221; fails.  My theory is that there&#8217;s something going on in rsync when the file gets over 4GB, but that&#8217;s a very loose theory.  </p>
<p>With every new version of rsync I get excited and try my test case again, but sooner or later I think i&#8217;m going to have to put together a bug report for the rsync guys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron Schwartz</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-701235</link>
		<dc:creator>Baron Schwartz</dc:creator>
		<pubDate>Fri, 25 Dec 2009 09:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-701235</guid>
		<description>Kattare, nothing is wrong with that, if you can do that.  Lots of people can&#039;t just take a slave offline like that, though.

You CANNOT rsync InnoDB&#039;s data with the server running, period.  This is a common mistake.  InnoDB&#039;s background threads are busily writing data, even if no queries are being executed.  If you wait long enough all the pending work will get done, but that&#039;ll take an indeterminate amount of time.  Just shut down first.</description>
		<content:encoded><![CDATA[<p>Kattare, nothing is wrong with that, if you can do that.  Lots of people can&#8217;t just take a slave offline like that, though.</p>
<p>You CANNOT rsync InnoDB&#8217;s data with the server running, period.  This is a common mistake.  InnoDB&#8217;s background threads are busily writing data, even if no queries are being executed.  If you wait long enough all the pending work will get done, but that&#8217;ll take an indeterminate amount of time.  Just shut down first.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kattare</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-700762</link>
		<dc:creator>Kattare</dc:creator>
		<pubDate>Thu, 24 Dec 2009 04:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-700762</guid>
		<description>Is there anything wrong with doing a slave stop / run the backup (mysqldump &amp; filesystem both) / slave start procedure on a backup slave?

We lean in that direction whenever possible and I was surprised to not see it mentioned here anywhere... 

Has anyone else noticed that rsync&#039;d ibdata files don&#039;t seem to maintain their integrity whereas an scp&#039;d one does?  Maybe rsync just doesn&#039;t handle them well when they get over a certain size?  I can&#039;t seem to figure it out.</description>
		<content:encoded><![CDATA[<p>Is there anything wrong with doing a slave stop / run the backup (mysqldump &amp; filesystem both) / slave start procedure on a backup slave?</p>
<p>We lean in that direction whenever possible and I was surprised to not see it mentioned here anywhere&#8230; </p>
<p>Has anyone else noticed that rsync&#8217;d ibdata files don&#8217;t seem to maintain their integrity whereas an scp&#8217;d one does?  Maybe rsync just doesn&#8217;t handle them well when they get over a certain size?  I can&#8217;t seem to figure it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitaly</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-603105</link>
		<dc:creator>Vitaly</dc:creator>
		<pubDate>Thu, 02 Jul 2009 12:33:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-603105</guid>
		<description>Thank you!
In fact, I&#039;m   migrating  my backup scripts to another host now.</description>
		<content:encoded><![CDATA[<p>Thank you!<br />
In fact, I&#8217;m   migrating  my backup scripts to another host now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dermoth</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-603041</link>
		<dc:creator>dermoth</dc:creator>
		<pubDate>Thu, 02 Jul 2009 11:43:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-603041</guid>
		<description>Vitaly,

That may be a bug.... In 2.6.22 I had one where running I/O-intensive applications in the IDLE class would slow down everything (both MySQL and the IDLE application were running much slower than when they were both in the default class).

Check the crond scripts or use ionice to verify you&#039;re not using classes already (i.e. the system may already use the IDLE class for I/O-intensive jobs)... Other than the my only suggestion would be to upgrade.</description>
		<content:encoded><![CDATA[<p>Vitaly,</p>
<p>That may be a bug&#8230;. In 2.6.22 I had one where running I/O-intensive applications in the IDLE class would slow down everything (both MySQL and the IDLE application were running much slower than when they were both in the default class).</p>
<p>Check the crond scripts or use ionice to verify you&#8217;re not using classes already (i.e. the system may already use the IDLE class for I/O-intensive jobs)&#8230; Other than the my only suggestion would be to upgrade.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitaly</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-602901</link>
		<dc:creator>Vitaly</dc:creator>
		<pubDate>Thu, 02 Jul 2009 07:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-602901</guid>
		<description>Thank you, I read your post, probably I just didn&#039;t understand it :-)
First, I&#039;m still with RHEL4 (2.6.9-42.0.3.ELsmp) - it means, I cannot switch between schedulers.
Second - my question is mostly why slowing down is *so* drastic, in many cases it seems like mysql is stucked at all.

Thank you!</description>
		<content:encoded><![CDATA[<p>Thank you, I read your post, probably I just didn&#8217;t understand it <img src='http://www.mysqlperformanceblog.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
First, I&#8217;m still with RHEL4 (2.6.9-42.0.3.ELsmp) &#8211; it means, I cannot switch between schedulers.<br />
Second &#8211; my question is mostly why slowing down is *so* drastic, in many cases it seems like mysql is stucked at all.</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dermoth</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-602277</link>
		<dc:creator>dermoth</dc:creator>
		<pubDate>Wed, 01 Jul 2009 16:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-602277</guid>
		<description>Vitaly, you should read my post above... There&#039;s pretty much the answer to your question there.

Nice value affects only processor scheduler and has no effect on IO-intensive tasks. IO classes (ionice) works only with CFQ, and as I point out in that post, even when using IO classes to give priority to MySQL, CFQ makes MySQL run slower than Deadline on my hardware.

I haven&#039;t tested with the Anticipatory scheduler, however it should be even worse by design; Anticipatory should make Mysql wait even more on IO expecting sequential reads; while it will likely make random requests.

Once you find the fastest scheduler for your load/hardware, you may want to tune the scheduler parameters to see if you can get any better results. These are in /sys/block//queue/iosched/.</description>
		<content:encoded><![CDATA[<p>Vitaly, you should read my post above&#8230; There&#8217;s pretty much the answer to your question there.</p>
<p>Nice value affects only processor scheduler and has no effect on IO-intensive tasks. IO classes (ionice) works only with CFQ, and as I point out in that post, even when using IO classes to give priority to MySQL, CFQ makes MySQL run slower than Deadline on my hardware.</p>
<p>I haven&#8217;t tested with the Anticipatory scheduler, however it should be even worse by design; Anticipatory should make Mysql wait even more on IO expecting sequential reads; while it will likely make random requests.</p>
<p>Once you find the fastest scheduler for your load/hardware, you may want to tune the scheduler parameters to see if you can get any better results. These are in /sys/block//queue/iosched/.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitaly</title>
		<link>http://www.mysqlperformanceblog.com/2008/11/06/living-with-backups/comment-page-1/#comment-600938</link>
		<dc:creator>Vitaly</dc:creator>
		<pubDate>Tue, 30 Jun 2009 09:11:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=479#comment-600938</guid>
		<description>Thanks for the interesting article!
I use my DB server as backup/archiving server for some data (no MySQL related).
I understand that MySQL will respond slowly during when some IO-demanding processes are running (gzip, etc...).
But many times my MySQL DB server just isn&#039;t responding - at least, the same query that usually takes  about 2 secs, isn&#039;t responding after few *minutes*!
I played with &quot;ionice for poors&quot; perl script and at the end I&#039;ll probably move all non-DB thins to another box, but I&#039;m just curious - is this some bug in  scheduler? in MySQL? or this is expected behaviour?</description>
		<content:encoded><![CDATA[<p>Thanks for the interesting article!<br />
I use my DB server as backup/archiving server for some data (no MySQL related).<br />
I understand that MySQL will respond slowly during when some IO-demanding processes are running (gzip, etc&#8230;).<br />
But many times my MySQL DB server just isn&#8217;t responding &#8211; at least, the same query that usually takes  about 2 secs, isn&#8217;t responding after few *minutes*!<br />
I played with &#8220;ionice for poors&#8221; perl script and at the end I&#8217;ll probably move all non-DB thins to another box, but I&#8217;m just curious &#8211; is this some bug in  scheduler? in MySQL? or this is expected behaviour?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

