From: Michael Paquier <michael@paquier.xyz>
To: Raghavendra Rao J S V <raghavendrajsv@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Reeving an error while taking the backup using "pg_basebackup" utility.
Date: Mon, 27 Aug 2018 19:47:19 -0700
Message-ID: <20180828024719.GC29157@paquier.xyz> (raw)
In-Reply-To: <CAEHH7R5M6Fy-8uNxfsHP4MDMSVHaJpjP=YKrQmMcQw2v_8LeUg@mail.gmail.com>
References: <CAEHH7R5M6Fy-8uNxfsHP4MDMSVHaJpjP=YKrQmMcQw2v_8LeUg@mail.gmail.com>
On Tue, Aug 28, 2018 at 07:19:12AM +0530, Raghavendra Rao J S V wrote:
> pg_basebackup: could not get transaction log end position from server:
> FATAL: requested WAL segment 00000001000002850000008F has already been
> removed
>
> Please guide me why and how to handle this error. Do you want me to change
> any of the option in my pg_basebackup command let me know.
This means that while taking a backup, a checkpoint has come in and has
recycled past segments. Lack of luck it is, as depending on the load
you may see such failures. One way to correct the problem would be to
take a base backup without WAL segments included and with a WAL archive
used by the base backup taken. A second is to use a physical
replication slot which guarantee the presence of the wanted segments.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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, raghavendrajsv@gmail.com
Subject: Re: Reeving an error while taking the backup using "pg_basebackup" utility.
In-Reply-To: <20180828024719.GC29157@paquier.xyz>
References: <CAEHH7R5M6Fy-8uNxfsHP4MDMSVHaJpjP=YKrQmMcQw2v_8LeUg@mail.gmail.com> <20180828024719.GC29157@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