<?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: Using netcat to copy MySQL Database</title>
	<atom:link href="http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/</link>
	<description>Everything about MySQL Performance</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:23:57 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: James Byers</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-660021</link>
		<dc:creator>James Byers</dc:creator>
		<pubDate>Wed, 30 Sep 2009 05:56:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-660021</guid>
		<description>If using Ken&#039;s rsync example and you&#039;re root on both sides, you&#039;ll likely need:

uid = root
gid = root

above 

[db]

in the rsync config file to avoid permission problems.</description>
		<content:encoded><![CDATA[<p>If using Ken&#8217;s rsync example and you&#8217;re root on both sides, you&#8217;ll likely need:</p>
<p>uid = root<br />
gid = root</p>
<p>above </p>
<p>[db]</p>
<p>in the rsync config file to avoid permission problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Morgan Christiansson</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-586308</link>
		<dc:creator>Morgan Christiansson</dc:creator>
		<pubDate>Mon, 15 Jun 2009 20:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-586308</guid>
		<description>It is possible to use a less expensive cipher with ssh which will speed things up significantly.

For example:
rsync -e &#039;ssh -c blowfish&#039; ...
scp -c blowfish ...</description>
		<content:encoded><![CDATA[<p>It is possible to use a less expensive cipher with ssh which will speed things up significantly.</p>
<p>For example:<br />
rsync -e &#8217;ssh -c blowfish&#8217; &#8230;<br />
scp -c blowfish &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Burton</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-578387</link>
		<dc:creator>Kevin Burton</dc:creator>
		<pubDate>Mon, 08 Jun 2009 04:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-578387</guid>
		<description>I agree with #1 .... do NOT do this on production data without checksums.

You WILL get data corruption.</description>
		<content:encoded><![CDATA[<p>I agree with #1 &#8230;. do NOT do this on production data without checksums.</p>
<p>You WILL get data corruption.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-575777</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Fri, 05 Jun 2009 19:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-575777</guid>
		<description>RT: agreed.

Przemek:

1. You&#039;ll find more and more that these days people using MySQL run HA systems (as HA as MySQL gets anyway) for international users and systems, not just a little PHP site in Dubuque.  The &quot;night-time trough&quot; is no longer a luxury for a lot of the client base of MySQL.

2. LVM snapshot overhead alone can be 20-50%; startups with limited capex don&#039;t want to pay 20-50% more for their storage hardware to support a method of database backup used solely because a working solution isn&#039;t available from the DB or engine vendor (explain /that/ to a VC).  Established companies don&#039;t want to budget in 20-50% more for their expensive SAN setups.  We&#039;d all love a few thousand spare TPS or a few 100MB/s of spare throughput, but that money should be going to what makes money, not what loses money.  This also doesn&#039;t cover the overhead of saturating the disk subsystem with the *actual copy* with tar/nc or rsync.  Been there.  Done both.  Bought the T-shirt.

3. Absolutely agree; the many other benefits of a slave makes the cost worthwhile.

LVM is a very useful tool, but the fact that it is often represented as a panacea by the MySQL community (not singling you out) does a disservice to those relying on that information (who then have it blow up in their face).  IMHO; apologies for the rant.
-- 
Ken.</description>
		<content:encoded><![CDATA[<p>RT: agreed.</p>
<p>Przemek:</p>
<p>1. You&#8217;ll find more and more that these days people using MySQL run HA systems (as HA as MySQL gets anyway) for international users and systems, not just a little PHP site in Dubuque.  The &#8220;night-time trough&#8221; is no longer a luxury for a lot of the client base of MySQL.</p>
<p>2. LVM snapshot overhead alone can be 20-50%; startups with limited capex don&#8217;t want to pay 20-50% more for their storage hardware to support a method of database backup used solely because a working solution isn&#8217;t available from the DB or engine vendor (explain /that/ to a VC).  Established companies don&#8217;t want to budget in 20-50% more for their expensive SAN setups.  We&#8217;d all love a few thousand spare TPS or a few 100MB/s of spare throughput, but that money should be going to what makes money, not what loses money.  This also doesn&#8217;t cover the overhead of saturating the disk subsystem with the *actual copy* with tar/nc or rsync.  Been there.  Done both.  Bought the T-shirt.</p>
<p>3. Absolutely agree; the many other benefits of a slave makes the cost worthwhile.</p>
<p>LVM is a very useful tool, but the fact that it is often represented as a panacea by the MySQL community (not singling you out) does a disservice to those relying on that information (who then have it blow up in their face).  IMHO; apologies for the rant.<br />
&#8211;<br />
Ken.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Przemek</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-575731</link>
		<dc:creator>Przemek</dc:creator>
		<pubDate>Fri, 05 Jun 2009 19:01:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-575731</guid>
		<description>1. You do it at off peak time.
2. IMHO if your system dies only because of LVM snapshot overhead - you&#039;re far too close to your machine&#039;s disk I/O limits.
3. IMO always the best solution is to have a spare slave used only for backups, some periodic heavy queries, etc.</description>
		<content:encoded><![CDATA[<p>1. You do it at off peak time.<br />
2. IMHO if your system dies only because of LVM snapshot overhead &#8211; you&#8217;re far too close to your machine&#8217;s disk I/O limits.<br />
3. IMO always the best solution is to have a spare slave used only for backups, some periodic heavy queries, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Thomas</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-575728</link>
		<dc:creator>Richard Thomas</dc:creator>
		<pubDate>Fri, 05 Jun 2009 18:49:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-575728</guid>
		<description>As its even been reported on this blog, the LVM snapshot penalty can be extreme, on a overly busy server (and yes I understand thats a problem of its own) starting up an LVM snapshot can cause a cascading failure of the system as it struggles to keep up.</description>
		<content:encoded><![CDATA[<p>As its even been reported on this blog, the LVM snapshot penalty can be extreme, on a overly busy server (and yes I understand thats a problem of its own) starting up an LVM snapshot can cause a cascading failure of the system as it struggles to keep up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Przemek</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-575719</link>
		<dc:creator>Przemek</dc:creator>
		<pubDate>Fri, 05 Jun 2009 18:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-575719</guid>
		<description>Instead of shutdowning master just use LVM snapshot method to create a slave or backup. This way you only need a few secs of read lock. 
If you don&#039;t use LVM partitions I suggest to start using them (optimal separate ones for data and binlogs).</description>
		<content:encoded><![CDATA[<p>Instead of shutdowning master just use LVM snapshot method to create a slave or backup. This way you only need a few secs of read lock.<br />
If you don&#8217;t use LVM partitions I suggest to start using them (optimal separate ones for data and binlogs).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Thomas</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-575704</link>
		<dc:creator>Richard Thomas</dc:creator>
		<pubDate>Fri, 05 Jun 2009 18:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-575704</guid>
		<description>Rsync is great for live replication copies also

1. rsync with database running, depending on last rsync can take a while
2. Flush tables/cache, rsync again, won&#039;t take nearly as long
3. shutdown master
4. rysnc one final time, on a 10gig db only takes a couple seconds
4. restart master, downtime only a few seconds and you have a fresh copy to use for starting a slave back up

Of course you need to delete the proper log files depending on your setup and how you store your log files.</description>
		<content:encoded><![CDATA[<p>Rsync is great for live replication copies also</p>
<p>1. rsync with database running, depending on last rsync can take a while<br />
2. Flush tables/cache, rsync again, won&#8217;t take nearly as long<br />
3. shutdown master<br />
4. rysnc one final time, on a 10gig db only takes a couple seconds<br />
4. restart master, downtime only a few seconds and you have a fresh copy to use for starting a slave back up</p>
<p>Of course you need to delete the proper log files depending on your setup and how you store your log files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MattW</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-573417</link>
		<dc:creator>MattW</dc:creator>
		<pubDate>Wed, 03 Jun 2009 16:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-573417</guid>
		<description>in the utility copy vein, if you have a source host, a target host on rfc1918 address space, and an intermediate bastion host you have to ssh to in order to REACH the target host (since it doesn&#039;t have an internet-legal ip) and you don&#039;t have a vpn/etc, you can pipe tar through a chained ssh via:

tar cvf - mysql_dir &#124; ssh -A user@bastionhost.example.com &quot;ssh -A user@rfc1918.example.com &#039;cd /path/to/target/;tar xvf -&#039;&quot;</description>
		<content:encoded><![CDATA[<p>in the utility copy vein, if you have a source host, a target host on rfc1918 address space, and an intermediate bastion host you have to ssh to in order to REACH the target host (since it doesn&#8217;t have an internet-legal ip) and you don&#8217;t have a vpn/etc, you can pipe tar through a chained ssh via:</p>
<p>tar cvf &#8211; mysql_dir | ssh -A <a href="mailto:user@bastionhost.example.com">user@bastionhost.example.com</a> &#8220;ssh -A <a href="mailto:user@rfc1918.example.com">user@rfc1918.example.com</a> &#8216;cd /path/to/target/;tar xvf -&#8217;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel K.</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-572417</link>
		<dc:creator>Joel K.</dc:creator>
		<pubDate>Tue, 02 Jun 2009 16:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-572417</guid>
		<description>My Ubuntu 8.04 system didn&#039;t know about bar.

I&#039;ve always used &#039;pv&#039; for essentially the same function.

pv - monitor the progress of data through a pipe

Which appears quite similar.</description>
		<content:encoded><![CDATA[<p>My Ubuntu 8.04 system didn&#8217;t know about bar.</p>
<p>I&#8217;ve always used &#8216;pv&#8217; for essentially the same function.</p>
<p>pv &#8211; monitor the progress of data through a pipe</p>
<p>Which appears quite similar.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
