<?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>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: eaglesflyhigh</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-698352</link>
		<dc:creator>eaglesflyhigh</dc:creator>
		<pubDate>Fri, 18 Dec 2009 23:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-698352</guid>
		<description>Brains and Genius,respect to you all....i read almost everything on this site but i still need someone to put me through... im of good intention to life everything i learn, im a fast learner and i&#039;d  like to meet someone who &#039;d be so kind and humble to please be my teacher/master.. to teach me some few thing which i could develop later on my own we could use yahoo or msn messenger for the training sessionâ€¦..deepspeed_772000@yahoo.com
looking forward to meet you. thanks 
simplee me</description>
		<content:encoded><![CDATA[<p>Brains and Genius,respect to you all&#8230;.i read almost everything on this site but i still need someone to put me through&#8230; im of good intention to life everything i learn, im a fast learner and i&#8217;d  like to meet someone who &#8216;d be so kind and humble to please be my teacher/master.. to teach me some few thing which i could develop later on my own we could use yahoo or msn messenger for the training sessionâ€¦..deepspeed_772000@yahoo.com<br />
looking forward to meet you. thanks<br />
simplee me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eaglesflyhigh</title>
		<link>http://www.mysqlperformanceblog.com/2009/05/31/using-netcat-to-copy-mysql-database/comment-page-1/#comment-698346</link>
		<dc:creator>eaglesflyhigh</dc:creator>
		<pubDate>Fri, 18 Dec 2009 23:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mysqlperformanceblog.com/?p=697#comment-698346</guid>
		<description>Good day, i need a good ip changer and how do i get more bandwidth from my server .....deepspeed@yahoo.com</description>
		<content:encoded><![CDATA[<p>Good day, i need a good ip changer and how do i get more bandwidth from my server <a href="mailto:.....deepspeed@yahoo.com">&#8230;..deepspeed@yahoo.com</a></p>
]]></content:encoded>
	</item>
	<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 &#8216;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>
</channel>
</rss>

