I have an issue with heartbeat & drbd deployment for MySQL with 2 nodes on ubuntu 18.4.
It used to work fine, but now it seems like its working, node1 has floating IP, MySQL runs on node1,drbd syncs, but when I restart heartbeat on node1, node2 doesn't take primary but it switches to secondary/secondary until node1 can become primary again.
The full configuration is set according to this tutorial.
To better show you when I run service heartbeat restart
on node 1 it goes from this:
version: 8.4.10 (api:1/proto:86-101)
srcversion: 15111D056BF899E7D986DDD
0: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----
ns:3423796 nr:5756516 dw:317824672 dr:121706 al:2638 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
to this
version: 8.4.10 (api:1/proto:86-101)
srcversion: 15111D056BF899E7D986DDD
0: cs:Connected ro:Secondary/Secondary ds:UpToDate/UpToDate C r-----
ns:3423968 nr:5756516 dw:317824844 dr:121706 al:2638 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
The desired outcome should be that node2 becomes primary until something goes wrong and node1 needs to become primary again.