pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Dylan Luong <Dylan.Luong@unisa.edu.au>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: help with startup slave after pg_rewind
Date: Fri, 21 Sep 2018 09:09:02 +0900
Message-ID: <20180921000902.GE1338@paquier.xyz> (raw)
In-Reply-To: <c32d2d3580834ff188b2956488b9d87b@ITUPW-EXMBOX2B.UniNet.unisa.edu.au>
References: <c32d2d3580834ff188b2956488b9d87b@ITUPW-EXMBOX2B.UniNet.unisa.edu.au>

On Wed, Sep 19, 2018 at 10:29:44PM +0000, Dylan Luong wrote:
> After promoting slave to master, I completed a pg_rewind of the slave
> (old master) to the new master. But when I try to start the slave I am
> getting the following error.
>
> I tried to run pg_rewind again, but now it says I cannot do it as its
> already same timeline.

What did pg_rewind tell you after the first run?  If you remove the set
of WAL segments on the rewound instance and let it replay only segments
from the archive, are you able to get past?

There is an inconsistency in the WAL records you are trying to replay.
In this case a contrecord refers to a WAL record split across multiple
pages.  The WAL reader is expecting one, and cannot find it.  And that's
not normal.  My bet is that something is wrong in your failover flow
which you think is right.  It is hard to get that right.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (2+ messages)

Message-ID: <20180921000902.GE1338@paquier.xyz>
Permalink:  ../20180921000902.GE1338@paquier.xyz/
Also on:    postgresql.org/message-id/20180921000902.GE1338@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: michael@paquier.xyz, Dylan.Luong@unisa.edu.au
  Subject: Re: help with startup slave after pg_rewind
  In-Reply-To: <20180921000902.GE1338@paquier.xyz>
  References: <c32d2d3580834ff188b2956488b9d87b@ITUPW-EXMBOX2B.UniNet.unisa.edu.au> <20180921000902.GE1338@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox