pacemaker init script checks if corosync is running with /usr/sbin/corosync-cfgtool -s on pacemaker-1.1.19-r1 exit code is 0 even when the second node is offline. on pacemaker-2.0 exit code is 1 when the second node is offline. output pacemaker-1: gentoo ~ # /usr/sbin/corosync-cfgtool -s Printing ring status. Local node ID 1 RING ID 0 id = 10.0.0.3 status = ring 0 active with no faults gentoo ~ # echo $? 0 output pacemaker-2: gentoo2 /etc/pacemaker # /usr/sbin/corosync-cfgtool -s Printing link status. Local node ID 2 LINK ID 0 addr = 10.0.0.4 status: nodeid 1: disconnected nodeid 2: localhost gentoo2 /etc/pacemaker # echo $? 1 corosync is running, but pacemaker does not start because exit code is 1. i think pacemaker should start even when second node is offline. Reproducible: Always
corosync-cfgtool outputs are from corosync 2 and 3, not pacemaker, sorry.
i did the following changes: nano /etc/init.d/pacemaker + /usr/sbin/corosync-quorumtool -l &>/dev/null && break - /usr/sbin/corosync-cfgtool -s &>/dev/null && break