<?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: SnapBack: The joys of backing up MySQL with ZFS&#8230;</title>
	<atom:link href="http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/</link>
	<description>thoughts &#38; musings</description>
	<lastBuildDate>Thu, 18 Mar 2010 22:48:09 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lars Timmann</title>
		<link>http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/comment-page-1/#comment-393</link>
		<dc:creator>Lars Timmann</dc:creator>
		<pubDate>Fri, 25 Apr 2008 09:17:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-393</guid>
		<description>Still troubles to get things working in 64Bit-mode...&lt;br /&gt;
I compiled MySQLdb with:&lt;br /&gt;
# CFLAGS=&quot;-m64 -B/usr/ccs/bin/amd64&quot; LDFLAGS=&quot;-L/lib/64 -R/lib/64 -L/usr/sfw/lib/amd64 -R/usr/sfw/lib/amd64 -static-libgcc -lgcc_s_amd64&quot; /usr/bin/amd64/python2.4 setup.py build&lt;br /&gt;
# CFLAGS=&quot;-m64 -B/usr/ccs/bin/amd64&quot; LDFLAGS=&quot;-L/lib/64 -R/lib/64 -L/usr/sfw/lib/amd64 -R/usr/sfw/lib/amd64 -static-libgcc -lgcc_s_amd64&quot; /usr/bin/amd64/python2.4 setup.py install&lt;br /&gt;
It seems to work but I get&lt;br /&gt;
# /usr/bin/amd64/python ./mysql_snapback.py mysql_snapback.cfg &lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File &quot;./mysql_snapback.py&quot;, line 44, in ?&lt;br /&gt;
    import MySQLdb&lt;br /&gt;
  File &quot;build/bdist.solaris-2.10-i86pc/egg/MySQLdb/__init__.py&quot;, line 19, in ?&lt;br /&gt;
ImportError: No module named _mysql&lt;br /&gt;
&lt;br /&gt;
But I am far away from python &#039;til now...</description>
		<content:encoded><![CDATA[<p><code>Still troubles to get things working in 64Bit-mode&#8230;<br />I compiled MySQLdb with:<br /># CFLAGS=&quot;-m64 -B/usr/ccs/bin/amd64&quot; LDFLAGS=&quot;-L/lib/64 -R/lib/64 -L/usr/sfw/lib/amd64 -R/usr/sfw/lib/amd64 -static-libgcc -lgcc_s_amd64&quot; /usr/bin/amd64/python2.4 setup.py build<br /># CFLAGS=&quot;-m64 -B/usr/ccs/bin/amd64&quot; LDFLAGS=&quot;-L/lib/64 -R/lib/64 -L/usr/sfw/lib/amd64 -R/usr/sfw/lib/amd64 -static-libgcc -lgcc_s_amd64&quot; /usr/bin/amd64/python2.4 setup.py install<br />It seems to work but I get<br /># /usr/bin/amd64/python ./mysql_snapback.py mysql_snapback.cfg <br />Traceback (most recent call last):<br />  File &quot;./mysql_snapback.py&quot;, line 44, in ?<br />    import MySQLdb<br />  File &quot;build/bdist.solaris-2.10-i86pc/egg/MySQLdb/__init__.py&quot;, line 19, in ?<br />ImportError: No module named _mysql</p><p>But I am far away from python &#39;til now&#8230;</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Montgomery</title>
		<link>http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/comment-page-1/#comment-392</link>
		<dc:creator>Matt Montgomery</dc:creator>
		<pubDate>Tue, 11 Mar 2008 14:37:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-392</guid>
		<description>Jason Arnel, &lt;br /&gt;
See: &lt;a href=&quot;http://dev.mysql.com/tech-resources/articles/mysql-zfs.html&quot; rel=&quot;nofollow&quot;&gt;http://dev.mysql.com/tech-r...&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><code>Jason Arnel, <br />See: <a href="http://dev.mysql.com/tech-resources/articles/mysql-zfs.html" rel="nofollow"></a><a href="http://dev.mysql.com/tech-r.." rel="nofollow">http://dev.mysql.com/tech-r..</a>.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/comment-page-1/#comment-391</link>
		<dc:creator></dc:creator>
		<pubDate>Tue, 19 Feb 2008 10:38:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-391</guid>
		<description>Hi Shane,&lt;br /&gt;
&lt;br /&gt;
We&#039;ve experienced a small number of cases as well, where a rollback recovery was required after restoring the backup. I believe there&#039;s also some work being done in the 5.1 series code to make InnoDB more consistent on a FLUSH command. We&#039;ve never experienced a non-recoverable/corrupt dataset though.</description>
		<content:encoded><![CDATA[<p><code>Hi Shane,</p><p>We&#39;ve experienced a small number of cases as well, where a rollback recovery was required after restoring the backup. I believe there&#39;s also some work being done in the 5.1 series code to make InnoDB more consistent on a FLUSH command. We&#39;ve never experienced a non-recoverable/corrupt dataset though.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remigusz Sokolowski</title>
		<link>http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/comment-page-1/#comment-390</link>
		<dc:creator>Remigusz Sokolowski</dc:creator>
		<pubDate>Mon, 11 Feb 2008 06:59:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-390</guid>
		<description>I think, Shane, that InnoDB would do well even without FLUSH TABLES WITH READ LOCK. Actually I have made something similar and FLUSH [..] was performed only to provide consistent MyISAM tables, InnoDB should simply recover helping itself with own transactional changelog - of course You need to be sure to have not broken D in ACID</description>
		<content:encoded><![CDATA[<p><code>I think, Shane, that InnoDB would do well even without FLUSH TABLES WITH READ LOCK. Actually I have made something similar and FLUSH [..] was performed only to provide consistent MyISAM tables, InnoDB should simply recover helping itself with own transactional changelog &#8211; of course You need to be sure to have not broken D in ACID</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane Milton</title>
		<link>http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/comment-page-1/#comment-389</link>
		<dc:creator>Shane Milton</dc:creator>
		<pubDate>Mon, 04 Feb 2008 05:50:59 +0000</pubDate>
		<guid isPermaLink="false">#comment-389</guid>
		<description>Great script, however I&#039;d be careful trusting the innodb snapshots even with &quot;FLUSH TABLES WITH READ LOCK&quot;  I&#039;ve run into several instances where innodb still had data in memory that didn&#039;t seem to make it to the data files.  Maybe 1 in 12 snapshots innodb datafiles where corrupt ( i was using a netapp in my case )  just my $.02</description>
		<content:encoded><![CDATA[<p><code>Great script, however I&#39;d be careful trusting the innodb snapshots even with &quot;FLUSH TABLES WITH READ LOCK&quot;  I&#39;ve run into several instances where innodb still had data in memory that didn&#39;t seem to make it to the data files.  Maybe 1 in 12 snapshots innodb datafiles where corrupt ( i was using a netapp in my case )  just my $.02</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/comment-page-1/#comment-388</link>
		<dc:creator></dc:creator>
		<pubDate>Mon, 21 Jan 2008 17:30:16 +0000</pubDate>
		<guid isPermaLink="false">#comment-388</guid>
		<description>joe: I have not, but it&#039;d be great if it worked. The path/name of the ZFS userspace command is configurable in the configuration file. If the syntax for the command is the same on FreeBSD it should work.&lt;br /&gt;
&lt;br /&gt;
yeek: Depends on how you want to arrange your set up. The most straightforward would be to create a ZFS filesystem for each MySQL database directory under the master ZFS FS. Then create a SnapBack configuration for each FS. Alternately, you could copy the DB files you want out of the snapshot back into the writeable filesystem. We run multiple DBs on a single FS and snapshot that. We copy from the snapshot to long term disk-to-disk backup over GigE.</description>
		<content:encoded><![CDATA[<p><code>joe: I have not, but it&#39;d be great if it worked. The path/name of the ZFS userspace command is configurable in the configuration file. If the syntax for the command is the same on FreeBSD it should work.</p><p>yeek: Depends on how you want to arrange your set up. The most straightforward would be to create a ZFS filesystem for each MySQL database directory under the master ZFS FS. Then create a SnapBack configuration for each FS. Alternately, you could copy the DB files you want out of the snapshot back into the writeable filesystem. We run multiple DBs on a single FS and snapshot that. We copy from the snapshot to long term disk-to-disk backup over GigE.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yeek</title>
		<link>http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/comment-page-1/#comment-387</link>
		<dc:creator>yeek</dc:creator>
		<pubDate>Mon, 21 Jan 2008 13:59:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-387</guid>
		<description>It looks to me the Snapback is actually is taking a Snapshot of all the files of MySQL database. This might work well if your instance  only contains one database. However, in many cases, we actually have multiple databases in one instance, and we only want to restore one database on the instance?&lt;br /&gt;
&lt;br /&gt;
How does the Snapback work in this case?</description>
		<content:encoded><![CDATA[<p><code>It looks to me the Snapback is actually is taking a Snapshot of all the files of MySQL database. This might work well if your instance  only contains one database. However, in many cases, we actually have multiple databases in one instance, and we only want to restore one database on the instance?</p><p>How does the Snapback work in this case?</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joe</title>
		<link>http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/comment-page-1/#comment-386</link>
		<dc:creator>joe</dc:creator>
		<pubDate>Sun, 20 Jan 2008 22:07:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-386</guid>
		<description>Have you tried it on FreeBSD?  FreeBSD can use ZFS now as well (ZVF v6 not v9/10 as with Solaris).  I hope it can be made to work!</description>
		<content:encoded><![CDATA[<p><code>Have you tried it on FreeBSD?  FreeBSD can use ZFS now as well (ZVF v6 not v9/10 as with Solaris).  I hope it can be made to work!</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: </title>
		<link>http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/comment-page-1/#comment-385</link>
		<dc:creator></dc:creator>
		<pubDate>Fri, 18 Jan 2008 16:21:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-385</guid>
		<description>Selim: I hope it works for you. I wish I was behind the Sun/MySQL deal. :-) Actually we&#039;re pretty excited about it. With PostgreSQL getting all the Sun-love till now, its really a phenomenal announcement. Hopefully, the DTrace probes won&#039;t have to wait till 6.0 now. :-)&lt;br /&gt;
&lt;br /&gt;
vnull: Somehow I never noticed the lack of RSS/Atom in the template. It should be fixed now. Thank you.&lt;br /&gt;
&lt;br /&gt;
Jason: UFS is slightly better performing in reads. However, for writes we find ZFS to have superior performance. But, even if ZFS had 30% less performance the trade-off would be worth it for the features. We save so much money on snapshot licenses that adding extra disks to close the performance gap would still be cheaper.</description>
		<content:encoded><![CDATA[<p><code>Selim: I hope it works for you. I wish I was behind the Sun/MySQL deal. <img src='http://blogs.digitar.com/jjww/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Actually we&#39;re pretty excited about it. With PostgreSQL getting all the Sun-love till now, its really a phenomenal announcement. Hopefully, the DTrace probes won&#39;t have to wait till 6.0 now. <img src='http://blogs.digitar.com/jjww/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p><p>vnull: Somehow I never noticed the lack of RSS/Atom in the template. It should be fixed now. Thank you.</p><p>Jason: UFS is slightly better performing in reads. However, for writes we find ZFS to have superior performance. But, even if ZFS had 30% less performance the trade-off would be worth it for the features. We save so much money on snapshot licenses that adding extra disks to close the performance gap would still be cheaper.</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: remigiusz sokolowski</title>
		<link>http://blogs.digitar.com/jjww/2008/01/snapback-the-joys-of-backing-up-mysql-with-zfs/comment-page-1/#comment-384</link>
		<dc:creator>remigiusz sokolowski</dc:creator>
		<pubDate>Fri, 18 Jan 2008 07:29:28 +0000</pubDate>
		<guid isPermaLink="false">#comment-384</guid>
		<description>That is right, that UFS performs better than ZFS in terms of using it with a database, but...&lt;br /&gt;
- IO is most important on DSS databases&lt;br /&gt;
- with OLTP the most important thing is to keep with proper buffering and then the IO performance seems to be less critical factor&lt;br /&gt;
- backup is especially hard to take on OLTP databases, which must work 24x7x365</description>
		<content:encoded><![CDATA[<p><code>That is right, that UFS performs better than ZFS in terms of using it with a database, but&#8230;<br />- IO is most important on DSS databases<br />- with OLTP the most important thing is to keep with proper buffering and then the IO performance seems to be less critical factor<br />- backup is especially hard to take on OLTP databases, which must work 24&#215;7x365</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
