Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAPJx-0002LS-B1 for pgsql-general@arkaria.postgresql.org; Wed, 18 Sep 2019 02:03:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iAPJw-0002lu-2h for pgsql-general@arkaria.postgresql.org; Wed, 18 Sep 2019 02:03:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iAPJv-0002li-Oc for pgsql-general@lists.postgresql.org; Wed, 18 Sep 2019 02:03:51 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iAPJr-0003U3-96 for pgsql-general@postgresql.org; Wed, 18 Sep 2019 02:03:51 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 7D1E65F79F; Tue, 17 Sep 2019 22:03:45 -0400 (EDT) Date: Tue, 17 Sep 2019 22:03:45 -0400 From: Stephen Frost To: Ron Cc: David Steele , Forums postgresql Subject: Re: pgbackrest restore to new location? Message-ID: <20190918020345.GO6962@tamriel.snowman.net> References: <1896f86b-d77f-3ea6-b304-0cb8912cab79@gmail.com> <09baf146-9f0e-96d8-9ccf-afbe810f179f@gmail.com> <47627a69-9899-1457-77ba-4bb547dadf69@pgmasters.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1Morrmav4zT5FEml" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --1Morrmav4zT5FEml Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 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 checkpo= int > >>>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. >=20 > That's what I did.=A0 (Also, I opened Issue #839 in GitHub=A0 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 ".../b= ackup_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 --1Morrmav4zT5FEml Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdgZCBAAoJEO1sijiDR2RVneEQAKXLQ/lIURAlRXqYS+5ult/d E+sZuMaXnesGcOf65x5I8dRvxgzgkvTbYljL16i4oECUeLl3dPKi31jntum38895 1tqM+IuzpIoOntLJo9RCPL3J49bg1v67rjPhpqwt/uXRvDZ7rzapZ930ABK4F2Hj gfaa95tnreUf+ahbo6MU/Z3BE23C+m6/akHsFuv8mAzt3l0Iy/qxfUSfBTdPUqx7 CEpGMOlyXPFAPv73Fn2KmkA+MXj57wHOmm+dQ+6gO2mUyuPksPpvh/n6/JpTuG8N tEY6KqkyLQtUA2ypFqTypajcZbfJrZkPnBsFCJ5OrenVMnLcCSJ8Y7aaVyRT5uid wRqmEzfQQJgup3EJZv1D0YK0U7a7hJ2nHiAflI10L1+CcllhSXkkoIvvBmTEcqqs lyh/9rFo2s4CdLD/bEQhnFGFlsafW0m0oY8QQPyae7WWSYzNJHOp6JEIiJ+yXzvp 5mEl3lW9Uogm1vX+QP4KwHOdetQurBXcWutyFYe+5eLOQ+eKtUd5iSEnDMlJMaRm kQguFvynVn0pDGPGgWVStP+qqRRAZBkuRmFjayVklv6LDvV7coxTZGSV1+KAYOrB vuxY6EFhdhNAGVrfWtpvoeJlCnfplljCsSoTOvgXLr9OBz/UkbhG3TYgPQWEK9CN KPTeFuIwiBMJSJCRIPFG =cEc0 -----END PGP SIGNATURE----- --1Morrmav4zT5FEml--