Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Replication Question
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Justin Swanhart  
View profile  
 More options Oct 25 2012, 2:57 pm
From: Justin Swanhart <justin.swanh...@percona.com>
Date: Thu, 25 Oct 2012 11:57:20 -0700
Local: Thurs, Oct 25 2012 2:57 pm
Subject: Re: [percona-group] Replication Question

Hi,

1) stop the slave threads on B and C

2) stop writes to A using FLUSH TABLES WITH READ LOCK.

2.1) set read_only=true on A to prevent any writes if the read lock is
accidently released

2.2) get A's coordinates with SHOW MASTER STATUS

3) issue START SLAVE UNTIL ... on B using the coordinates from A's SHOW
MASTER STATUS

4) issue SHOW MASTER STATUS ON B

5) START SLAVE UNTIL ... on C using the coordinates from B

6) Issue SHOW MASTER STATUS on C

7) Issue CHANGE MASTER TO on A with coordinates from C

8) Issue CHANGE MASTER TO on C with coordinates from A (captured in step
2.2)

10) Release READ LOCK (with UNLOCK TABLES) on A

11) A should remain read_only to prevent unexpected writes to it

12) send writes to C

--Justin

On Thu, Oct 25, 2012 at 11:47 AM, Sabika M <sabika.makhd...@gmail.com>wrote:

> I have replication setup in the following way:

> A -> B ->C

> I am making updates to server A. I want to stop all my updates and point
> them to server C. After I start writing to server C, can I use the change
> master statement to make the C the master of A (take B out of the topology)
> and proceed to set up peer-to-peer between A <-> C without taking a new
> backup of c to set up the replication between A->C?

> I guess what I am really asking is if the data is the same, is a backup
> required for initialization?

>  --
> You received this message because you are subscribed to the Google Groups
> "Percona Discussion" group.
> To post to this group, send email to percona-discussion@googlegroups.com.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.