Open GoogleCodeExporter opened 8 years ago
I test it many time, I don't understand why this don't work ?
Thank you for your help and for your tool :-)
Original comment by teyssier...@gmail.com
on 16 Jan 2013 at 3:30
MySQL 5.0.51 is very old. Do you repeat this on latest MySQL (5.0.latest or
5.1/5.5)?
Original comment by Yoshinor...@gmail.com
on 16 Jan 2013 at 3:44
I try on other serveur in mysql 5.1.66, I have the same problem.
I work with Debian 6.0 and I used .deb to install mha.
The file master.info changed between slave and new master !
Before down on first slave
15
mysql-bin.000019
106
95.211.154.1
replicateur
r@plic@t@ur
3306
60
0
0
------------------
After, the first slave is now new master
15
4
test
r@plic@t@ur
3306
60
0
0
60
0
0
Original comment by teyssier...@gmail.com
on 16 Jan 2013 at 3:58
Prior to MySQL 5.5 RESET SLAVE ALL is not supported so MHA runs RESET SLAVE and
CHANGE MASTER MASTER_HOST='' instead. The new master.info is kind of a dummy
file and is not harmful. If you don't like it try MySQL 5.5.
Original comment by Yoshinor...@gmail.com
on 16 Jan 2013 at 4:47
Ok I found why the master.info is still existing. You execute CHANGE MASTER TO
MASTER_HOST='' after RESET SLAVE, this recreate the master.info file.
I wanted to use master.info to detect if the server is master or slave.
What is the interest to execute the reset before the change slave to master ?
Have you a (easy) solution to detect if the server is slave or master ?
Thank you very much for your reactivity
Original comment by teyssier...@gmail.com
on 16 Jan 2013 at 4:55
Hi,
To check the topology of the replication :
* use the masterha_check_repl
* use one of the Commands :
* show slave status\G
* show slave hosts;
* connnect to the virtual_ip which should be on the master, and issue a "SELECT
@@hostname"
The goal of issuing the CHANGE MASTER to change the runtime, and filesystem
replication information. In case of restart, the original slave (new master?)
will not try (and succeed) to connect to the old master, and get some wrong
events.
I agree that the MHA software could remove the master.info after all, but this
is not clean, and this is what RESET SLAVE ALL is doing.
This is also why the "reset slave all" command was added in MySQL 5.5.
Joffrey
Original comment by joff...@mariadb.com
on 31 Jan 2013 at 6:17
Original issue reported on code.google.com by
teyssier...@gmail.com
on 16 Jan 2013 at 2:45