I have a pacemaker
cluster for DRBD
primary/secondary setup and Virtual IP.
I would like the master
node to immediately shoot
the slave
, while the slave
will have to wait
for 15 seconds
before shooting
the master
. My current config is something like this:
pcs stonith create hpilo1 fence_ipmilan \
ipaddr="10.10.10.1" \
login="fencer" passwd="secret" \
pcmk_host_list="storage1" lanplus=1
pcs stonith create hpilo2 fence_ipmilan \
ipaddr="10.10.10.2" \
login="fencer" passwd="secret" \
pcmk_host_list="storage2" lanplus=1
Since the roles of primary/secondary (master/slave) are not fixed so how do I make the slave wait? Is there a way to put some constraint
in pacemaker
maybe?