<?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: MySQL Replication: Redundancy</title>
	<atom:link href="http://rackerhacker.com/2008/01/03/mysql-replication-redundancy/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com/2008/01/03/mysql-replication-redundancy/</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Fri, 10 Feb 2012 00:55:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Patrick</title>
		<link>http://rackerhacker.com/2008/01/03/mysql-replication-redundancy/#comment-15560</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Mon, 26 Oct 2009 21:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://rackerhacker.com/2008/01/03/mysql-replication-redundancy/#comment-15560</guid>
		<description>Hi,
 exactly the information Iwas looking for. 

i&#039;m wondering if I dont want to setup the original master(lets call A) as a slave, what would be the procedure to change the new master back to the slave(lets call B) once the original master can be recovered.  I guess we are assuming the new master has been in use for a few days and has new data, and either the original master has no data or data in state from few days ago.
Does the following sound correct?

1) do a flush table with read lock on  B
2) do a mysqldump on B and load into A. Now data should be same on A and B.
3) show master status on A to record binlog file  and position
4) use CHANGE MASTER to on B to update new position and binlog.
5) START SLAVE on B.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
 exactly the information Iwas looking for. </p>
<p>i'm wondering if I dont want to setup the original master(lets call A) as a slave, what would be the procedure to change the new master back to the slave(lets call B) once the original master can be recovered.  I guess we are assuming the new master has been in use for a few days and has new data, and either the original master has no data or data in state from few days ago.<br />
Does the following sound correct?</p>
<p>1) do a flush table with read lock on  B<br />
2) do a mysqldump on B and load into A. Now data should be same on A and B.<br />
3) show master status on A to record binlog file  and position<br />
4) use CHANGE MASTER to on B to update new position and binlog.<br />
5) START SLAVE on B.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

