Problem moving writer role between masters
I have a master master setup with a third host setup as a monitor (monitor host IP is 192.168.14.238).
output for mmm_control show is as follows:
db1(192.
db2(192.
Problem is every time I execute a move role say from db1 to db2 the output of mmm_control show changes to the following
which is expected
db1(192.
db2(192.
But the address 192.168.14.194 never shows up on 192.168.14.240.
I can't ping it from the monitor either. But if I set it manually on the 14.240 using the confgure_ip script
configure_ip mmm_agent eth0 192.168.14.194 it shows up in output for the "ip addr list" command which again is expected.
Now the interesting thing is if I move the writer role back to db1 192.168.14.194 disappears from db2 but never shows up on db1.
I tried setting db2 to offline just to check if it moves the reader role to db1 and it does that. It shows up in the output of 'ip addr list" on db1.
I am running on centos 5.5.
my common config file is as follows:
active_master_role writer
<host default>
pid_path /var/run/
bin_path /usr/lib/mysql-mmm/
agent_user rep_agent
</host>
<host db1>
ip 192.168.14.239
mode master
peer db2
</host>
<host db2>
ip 192.168.14.240
mode master
peer db1
</host>
<role writer>
hosts db1, db2
ips 192.168.14.194
mode exclusive
</role>
<role reader>
hosts db1, db2
ips 192.168.14.195, 192.168.14.196
mode balanced
</role>
The above file is the same on all 3 hosts. The monitor config file is as follows:
include mmm_common.conf
<monitor>
ip 127.0.0.1
pid_path /var/run/
bin_path /usr/lib/mysql-mmm/
status_path /var/lib/
ping_ips 192.168.14.194, 192.168.14.195, 192.168.14.196, 192.168.14.239, 192.168.14.240
</monitor>
<host default>
</host>
debug 0
Please let me know if you know what I am doing wrong or any way i can to get your more information in order to resolve this issue.
Thanks
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- mysql-mmm Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Kevin for more information if necessary.