Recently I tried to install and configure Corosync Pacemaker HA on my Ubuntu 20.04. So, everything goes well in my 2-node cluster. But after I restart one of nodes, the Fail Over IP did not switch properly and stays most of the time with the Slave and not on the Master.
Here is my Pacemaker config. I really appreciate if someone could help me with my problem.
property stonith-enabled=false
property no-quorum-policy=ignore
primitive ip IPaddr2 params ip=192.168.100.100 nic=eth0:0 op monitor interval=10s
primitive drbd_res ocf:linbit:drbd params drbd_resource=www op monitor interval=3s role=Master op monitor interval=30s role=Slave
ms drbd_master_slave drbd_res meta master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true
primitive fs_res ocf:heartbeat:Filesystem params device=/dev/drbd0 directory=/var/www/ fstype=ext4
colocation fs_drbd_colo INFINITY: fs_res drbd_master_slave:Master
order fs_after_drbd mandatory: drbd_master_slave:promote fs_res:start
commit