[ClusterLabs] how to always promote current slave on master death

Andrei Borzenkov arvidjaar at gmail.com
Sun May 24 02:01:29 EDT 2015

В Thu, 23 Apr 2015 16:49:18 -0700
Brett Moser <brett.moser at slacorp.com> пишет:

> Hello,
> I'm writing an OCF script for a m/s resource and I am having a bit of
> trouble achieving what I desire.
> When the master dies (e.g. I am killing it from the command line to test) I
> want the current slave to always be promoted.   First off -- I am assuming
> that this can be achieved in Pacemaker, please correct me if I am wrong.
> In order to force this I have tried to alter the crm_master level inside
> the OCF script during the demote() action (e.g. crm_master -l reboot -v 0).

That's not what your logs say

> Apr 23 23:25:07 server-dmz-b attrd[1668]:   notice: attrd_perform_update:
> Sent delete 5040: node=server-dmz-b, attr=master-epttd, id=<n/a>,
> set=(null), section=status

You delete master status

> Apr 23 23:25:08 server-dmz-b attrd[1668]:   notice: attrd_perform_update:
> Sent update 5044: master-epttd=100

And then set it to 100

More information about the Users mailing list