Re: repmgr won't update witness after failover - Mailing list pgsql-general

From Jony Cohen
Subject Re: repmgr won't update witness after failover
Date
Msg-id CAD9xk18MZ07hfznL7omvyCskN3=atJ=vy3PN4S6eRBJevD5pqw@mail.gmail.com
Whole thread Raw
In response to repmgr won't update witness after failover  (Aviel Buskila <aviel33@gmail.com>)
List pgsql-general
Hi Aviel,
you can use the 'show cluster' command to see the repmgr state before you do the 2nd failover - make sure the node1 is indeed marked as replica.
After a failover the Master doesn't automatically attach to the new master - you need to point him as a slave (standby follow - if possible...)
did you start the repmgrd on node1 after making it a replica of the new master? (it needs 2 daemons to decide what to promote)

Regards,
 - Jony

On Thu, Aug 13, 2015 at 1:29 PM, Aviel Buskila <aviel33@gmail.com> wrote:
Hey,
I have set up three nodes of postgresql 9.4 with repmgr in this way:
1. master - node1
2. standby - node2
3. witness - node3

Now I have set up the replication and the witness as it says here:
https://github.com/2ndQuadrant/repmgr/blob/master/FAILOVER.rst

Now when I do 'kill -9 $(pidof postmaster)' The witness detects that something went wrong and fails over from node1 to node2
But when I setup the replication now to work from node2 to node1 and I kill the postgresql process it doesn't failover and the repmgrd log shows the following  message:
unable to determine a valid master server; waiting 10 seconds to retry...

it seems that the witness doesn't know about the new standby server..

Has anyone got any idea about what am I doing wrong here?


Best regards,
Aviel Buskila

pgsql-general by date:

Previous
From: "Martín Marqués"
Date:
Subject: Re: Chars problem restoring to ps 8.4 (utf8) a dumped db from ps 8.1 (latin9)
Next
From: Aviel Buskila
Date:
Subject: Fwd: repmgr won't update witness after failover