pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ray Stell <stellr@vt.edu>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: pg_basebackup recovery failure
Date: Tue, 7 Mar 2017 15:31:16 -0500
Message-ID: <fc535806-9e03-a649-e825-59a296f09cd8@vt.edu> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On this doc page are some command examples for pg_basebackup:

https://www.postgresql.org/docs/current/static/app-pgbasebackup.html

such as:

     pg_basebackup -h mydbserver -D /usr/local/pgsql/data

I've never gotten this to work. When I bring up the copy on an intended 
standby system I always get the classic:
	PANIC:  could not locate a valid checkpoint record

Failing that, I backed up with pg_start_backup/tar/pg_stop_backup as an alternative, but I was always curious what I was doing wrong.
The wiki page on setting up replication:
  
      https://wiki.postgresql.org/wiki/Streaming_Replication

says use the command with this options:
    
      pg_basebackup -h 192.168.0.10 -D /srv/pgsql/standby -P -U replication --xlog-method=stream

and I stumbled into option:

       --checkpoint=fast

The standby was able to recover when I used one of these, I don't remember which, maybe both.

Should the doc be updated or am I missing something?
      

view thread (4+ messages)  latest in thread

Message-ID: <fc535806-9e03-a649-e825-59a296f09cd8@vt.edu>
Permalink:  ../fc535806-9e03-a649-e825-59a296f09cd8@vt.edu/
Also on:    postgresql.org/message-id/fc535806-9e03-a649-e825-59a296f09cd8@vt.edu

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: stellr@vt.edu
  Subject: Re: pg_basebackup recovery failure
  In-Reply-To: <fc535806-9e03-a649-e825-59a296f09cd8@vt.edu>

* 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