[ClusterLabs] Pacemaker Fail Master-Master State

damiano giuliani damianogiuliani87 at gmail.com
Sat Feb 20 16:00:33 EST 2021


resources configured in a master/slave mode
If you got 2 masters something is not working right. You should never have
2 node in master.
Disable pacemaker and corosync services to autostart on both nodes
systemctl disable corosync
Systemctl disable pacemaker

You can start the faulty node using pcs cli:
pcs cluster start

You can start the whole cluster using
pcs cluster start --all

First of all configure a fencing mechanism to make the cluster consistent.
Its mandatory.



On Sat, 20 Feb 2021, 21:47 İsmet BALAT, <bcalbatros at gmail.com> wrote:

> I am not using fence. If I disable pacemaker,how node join cluster (for
> first example in video - master/slave changing)? So I need a check script
> for fault states :(
>
> And thank you for reply
>
> On 20 Feb 2021 Sat at 23:40 damiano giuliani <damianogiuliani87 at gmail.com>
> wrote:
>
>> Hi,
>>
>> Have you correcly configure a working fencing mechanism?without it you
>> cant rely on a safe and consistent environment.
>> My suggestion is to disable the autostart services (and so the autojoin
>> into the cluster) on both nodes.
>>  if there is a fault you have to investigate before you rejoin the old
>> fault master node.
>> Pacemaker (and paf if u are using it) as far i know,  doesnt support the
>> autoheal of the old master, so you should resync or pg_rewind eveythime
>> there is a fault.
>>
>>
>>
>> On Sat, 20 Feb 2021, 19:03 İsmet BALAT, <bcalbatros at gmail.com> wrote:
>>
>>> I am using Pacemaker with Centos 8 and Postgresql 12. Failover
>>> master/slave states successfully run. But if all nodes are masters,
>>> pacemaker can't repair its unlikely send command 'pcs resources cleanup'.
>>> Wheras I set 60s in resource config. How can I fix it?
>>>
>>> StackOverFlow link:
>>> https://stackoverflow.com/questions/66292304/pacemaker-postgresql-master-master-state
>>>
>>> Thanks
>>>
>>> İsmet BALAT
>>>
>> _______________________________________________
>>> Manage your subscription:
>>> https://lists.clusterlabs.org/mailman/listinfo/users
>>>
>>> ClusterLabs home: https://www.clusterlabs.org/
>>>
>> _______________________________________________
>> Manage your subscription:
>> https://lists.clusterlabs.org/mailman/listinfo/users
>>
>> ClusterLabs home: https://www.clusterlabs.org/
>>
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clusterlabs.org/pipermail/users/attachments/20210220/d65e042a/attachment.htm>


More information about the Users mailing list