Re: repmgr error with automated failover

From: Ian Barwick <ian(dot)barwick(at)2ndquadrant(dot)com>
To: Lazaro Garcia <lazaro3487(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: repmgr error with automated failover
Date: 2017-02-14 01:55:09
Message-ID: ff90e580-6999-a892-ed24-169c0d4fca86@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi

On 02/13/2017 11:32 PM, Lazaro Garcia wrote:
> Hello every one in the list. First thanks to repmgr.
>
>
>
> I took several days testing repmgr but I can't execute an automated failover
> properly.
>
>
>
> I have 2 nodes, a master(node1) and a slave(nodo2). The repmgrd service is
> running on both servers. When node1 goes down an automated failover take
> place and node2 is promounted as master, at this point all is ok, the
> problems comes when node2 is attached again to the cluster, for
> incorporating this node to the cluster I run this commands:
>
> 1. executes a clone command on node1
>
> su -c 'repmgr -h node2 -U repmgr -d repmgr -D /var/lib/postgresql/9.6/main/
> -f /etc/postgresql/9.6/main/repmgr.conf --rsync-only --force standby clone'
> postgres
>
>
>
> 2. start up the postgres service on node1
>
>
>
> 3. Register this node
>
> su -c 'repmgr -f /etc/postgresql/9.6/main/repmgr.conf --force standby
> register' postgres
>
>
>
> Then stops node2 but node1 is never promoted as master.
>
> Why node1 is not promoted? Is there something wrong?

Is repmgrd running on node1? Is its repmgr.conf file configured
correctly, e.g. "failover=automatic"

Regards

Ian Barwick

--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message walpino 2017-02-14 10:15:30 (auto) vacuum mysterious
Previous Message Alvaro Herrera 2017-02-13 18:48:50 Re: Cannot drop role