I am trying to enable fail over strategy using pacemaker on a mysql Master-Master replication on two virtual machine running openSUSE 12 created by VritualBox.
I managed to complete the mysql dual-master replication, and it seems to work. Server A has 192.168.X.a
as IP while server B's IP is 192.168.X.b
. I followed the instruction here, so basically my corosync.conf looks like the one presented in the guide, except the interface section which is written below:
interface {
ringnumber: 0
bindnetaddr: 192.168.X.c
mcastaddr: 226.94.1.1
mcastport: 5405
ttl: 1
}
My first question is: what exactly is bindnetaddr:
? Is it the virtual IP of my cluster? If not, should it be the other nodes IP or it own IP? (I mean IP of the server has this config or the other server)
My second question is: what are mcastaddr
and mcastport
and what should they be set to?
Then I tried to add MySQL as a resource, so I did as described here. But when I enter crm configure primitive ip_mysql ocf:heartbeat:IPaddr2 params ip="192.168.X.c"
I get
crm configure primitive ip_my ocf:heartbeat:IPaddr2 params ip='192.168.114.8'
crm_verify[23888]: 2012/12/29_12:25:51 WARN: cluster_option: Using deprecated name
'stonith_enabled' for cluster option 'stonith-enabled'
Warnings found during check: config may not be valid
My third question is: when providing the params ip
to configure primitive
, should it be the virtual IP? (the one set in the corosync.conf
file)
My forth question is: should I ignore the warnings? To be honest I didn't go any further when I faced the warnings, and since I had lots of uncertainties, I thought It's better fisrt to make sure I'm on the right path.
On a different note, I would be more than thankful if anybody could link me to a simple/good tutorial on using Pacemaker/Corosync and mySQL replication NOT DRDB or using XtraDB and ....simple dual-master replication...most of tutorial availabe on web are for DRDB and XtraDB, or other tools. I know the procedure should be the same (adding a resource to pacemaker) but I was not successful on extracting the similarities from those tutorials...