pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Ron <ronljohnsonjr@gmail.com>
Cc: David Steele <david@pgmasters.net>
Cc: Forums postgresql <pgsql-general@postgresql.org>
Subject: Re: pgbackrest restore to new location?
Date: Tue, 17 Sep 2019 22:03:45 -0400
Message-ID: <20190918020345.GO6962@tamriel.snowman.net> (raw)
In-Reply-To: <af253e5c-2754-c095-2521-7aad9ba35b35@gmail.com>
References: <1896f86b-d77f-3ea6-b304-0cb8912cab79@gmail.com>
<CAKoxK+7cr=Eykr7ygAToYEAUMQ35aLH0-4mFkar_oNA3pGFJ2w@mail.gmail.com>
<09baf146-9f0e-96d8-9ccf-afbe810f179f@gmail.com>
<CAKoxK+6_c67eZDzADdTgfP6j5=76CVkWXT7U+0CF2qqFZZyH_Q@mail.gmail.com>
<47627a69-9899-1457-77ba-4bb547dadf69@pgmasters.net>
<af253e5c-2754-c095-2521-7aad9ba35b35@gmail.com>
Greetings,
* Ron (ronljohnsonjr@gmail.com) wrote:
> On 9/17/19 6:48 AM, David Steele wrote:
> >On 9/17/19 7:23 AM, Luca Ferrari wrote:
> >>On Tue, Sep 17, 2019 at 12:00 PM Ron <ronljohnsonjr@gmail.com> wrote:
> >>>The real problem is that after doing that, "pg_ctl start -D
> >>>/path/to/new/data" fails with "PANIC: could not locate a valid checkpoint
> >>>record".
> >Sounds like backup_label is missing or has been deleted.
> >
> >The easiest way to restore to a new location is just to copy
> >pgbackrest.conf from the primary (or create a new one) with the same
> >stanza and then alter pg1-path in pgbackrest.conf or at the command line.
>
> That's what I did. (Also, I opened Issue #839 in GitHub All of the log
> files are attached there.)
Per the discussion in that issue, it looks like there's some issue with
the restore command failing to be able to pull the needed WAL from the
repo.
That said- it brings up a pretty serious issue that should be discussed,
and that's nuking this:
HINT: If you are not restoring from a backup, try removing the file ".../backup_label".
That hint is absolutely wrong these days when many tools have been
updated to use the non-exclusive backup method and it just ends up
getting people into trouble and, worse, can result in them having
corrupted clusters.
I'll get a patch into the next commitfest to remove it. The exclusive
method has been deprecated for quite a few releases and we should stop
giving bad advice on the assumption that people are using it.
Thanks,
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
view thread (9+ messages) latest in thread
Message-ID: <20190918020345.GO6962@tamriel.snowman.net> Permalink: ../20190918020345.GO6962@tamriel.snowman.net/ Also on: postgresql.org/message-id/20190918020345.GO6962@tamriel.snowman.net ·
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: sfrost@snowman.net, ronljohnsonjr@gmail.com, david@pgmasters.net Subject: Re: pgbackrest restore to new location? In-Reply-To: <20190918020345.GO6962@tamriel.snowman.net> References: <1896f86b-d77f-3ea6-b304-0cb8912cab79@gmail.com> <CAKoxK+7cr=Eykr7ygAToYEAUMQ35aLH0-4mFkar_oNA3pGFJ2w@mail.gmail.com> <09baf146-9f0e-96d8-9ccf-afbe810f179f@gmail.com> <CAKoxK+6_c67eZDzADdTgfP6j5=76CVkWXT7U+0CF2qqFZZyH_Q@mail.gmail.com> <47627a69-9899-1457-77ba-4bb547dadf69@pgmasters.net> <af253e5c-2754-c095-2521-7aad9ba35b35@gmail.com> <20190918020345.GO6962@tamriel.snowman.net> * 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