Initially you should have set the slave up with log-bin in its my.cnf file
so that it is writing to its own binary logs. In the event that the master
goes down, you should issue a change master on any other slaves so that they
point to the new master. Redirect all writes to the new master. On the new
master you will want to remove references to the old master. A slave stop
and the removing of the master.info file will work. But you should still
edit the my.cnf file to prevent the machine from trying to reattach at the
next startup. In theory, a slave will look at the server-id and will not
process statements where the server-id matches its own server-id.

-----Original Message-----
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 6/17/04 12:25 PM
Subject: Replication - promoting slave to master

Hello,
 I've been lurking about the lists for a few months now, hoping to gain 
some knowledge on MySQL's replication features for HA setup. I have a 
fairly good understanding of the setup process, but I'm a little
confused 
on one points. We are running a 2 node - master-slave setup, and we are 
planning on using Heartbeat (from the Linux-HA project) to handle 
failover. If the Master fails, the slave will take over permanently, and

the master will be rebuilt as a slave.

  What is the procedure for promoting a slave server to master? If the 
slave server has the Master-Host, User, and Password set in the conf
file, 
will the Stop Slave command be enough to promote it, or will I need to 
remove the master.info file as well?


Thank you,

Scott Tanner
System Administrator
AMI International


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to