I have configured HA cluster on two nodes host1 and host2. host1 is master and host2 is slave.
If I shutdown host1 then host2 never comes up as master until I restart openais service. Some time I have to restart several times.
If I start Host1 (master again) then it becomes slave of host2 and never comes up as master until I restart service on both nodes.
On both hosts openais service starts on boot.
Please find below my CRM configurations
primitive p_drbd_mysql ocf:linbit:drbd params drbd_resource="r0" \
op monitor interval="15s" ms ms_drbd_mysql p_drbd_mysql \
meta master-max="1" master-node-max="1" clone-max="2" \
clone-node-max="1" notify="true"
primitive p_fs_mysql ocf:heartbeat:Filesystem params \
device="/dev/drbd0" directory=" /var/lib/mysql_drbd" fstype="ext3"
primitive p_ip_mysql ocf:heartbeat:IPaddr2 params \
ip="10.40.12.254" cidr_netmask="22" nic="eth0"
primitive p_mysql lsb:mysql
Thanks
Mahmood