pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jehan-Guillaume (ioguix) de Rorthais <ioguix@free.fr>
To: Nagendra Bandi <nagendra.bandi@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Postgres HA issue - Standby server does not start after Master compute host is shut down
Date: Tue, 3 Sep 2019 17:13:47 +0200
Message-ID: <20190903171347.7d1a9523@firost> (raw)
In-Reply-To: <CAO8W-N9ZPacOAJ4PqaPxM7KCEMca-4LbQBOd1_iXJ=o6gJWvCg@mail.gmail.com>
References: <CAO8W-N9ZPacOAJ4PqaPxM7KCEMca-4LbQBOd1_iXJ=o6gJWvCg@mail.gmail.com>

On Tue, 3 Sep 2019 20:27:37 +0530
Nagendra Bandi <nagendra.bandi@gmail.com> wrote:
...
> *Problem Description :*
> 
> PostgreSQL database is set up for High Availability and *asynchronous
> streaming replication* with *hot standby* as described in
> https://www.postgresql.org/docs/9.4/warm-standby.html#STREAMING-REPLICATION.
> There is only 1 master and 1 standby server set up. The deployment is on
> Openstack cloud where master database is running on one compute host and
> standby server is running on another compute host. When master is brought
> down (*compute host is powered off*), stand by is *not* able to take over.
> The PostgreSQL database server on the standby fails to start with errors
> messages given below.
> 
> *Error logs from Standby Postgres DB:*
> 
> *Logs form postgres log :
> *< 2019-08-22 16:00:04.110 UTC >LOG: invalid record length at C/513BF150
> 
> < 2019-08-22 16:00:04.110 UTC >LOG: redo done at C/513BF118
> 
> < 2019-08-22 16:00:04.115 UTC >FATAL: WAL ends before end of online backup

It looks like the standby never received the end of online backup record from
the master.

Could you describe how you built your standby?

Regards,





view thread (5+ messages)  latest in thread

Message-ID: <20190903171347.7d1a9523@firost>
Permalink:  ../20190903171347.7d1a9523@firost/
Also on:    postgresql.org/message-id/20190903171347.7d1a9523@firost

 · 

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: ioguix@free.fr, nagendra.bandi@gmail.com
  Subject: Re: Postgres HA issue - Standby server does not start after Master compute host is shut down
  In-Reply-To: <20190903171347.7d1a9523@firost>
  References: <CAO8W-N9ZPacOAJ4PqaPxM7KCEMca-4LbQBOd1_iXJ=o6gJWvCg@mail.gmail.com> <20190903171347.7d1a9523@firost>

* 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