pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Anton Gorlov <stalker@altlinux.ru>
To: pgsql-admin@postgresql.org
Subject: replication error
Date: Tue, 28 Feb 2017 17:54:48 +0300
Message-ID: <b35b9162-c9b6-b580-015d-84309302554e@altlinux.ru> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hello.

I try setup replica from instructions located at
https://wiki.postgresql.org/wiki/Streaming_Replication


I copied data to slave, after psql -c "SELECT pg_start_backup('label',
true)"  and start slave -  i see in logs many message like

cp: cannot stat
'/var/lib/postgresql/9.6/main/archive/000000010000000000000012': No such
file or directory
2017-02-28 17:48:45 MSK [2333-3] LOG:  redo starts at 0/12000098
2017-02-28 17:48:45 MSK [2333-4] LOG:  consistent recovery state reached
at 0/120000D0
2017-02-28 17:48:45 MSK [2333-5] LOG:  record with incorrect prev-link
10000/2470000 at 0/120000D0
2017-02-28 17:48:45 MSK [2332-1] LOG:  database system is ready to
accept read only connections
2017-02-28 17:48:45 MSK [2339-1] LOG:  started streaming WAL from
primary at 0/12000000 on timeline 1


on master node file 000000010000000000000012  located in pg_xlog
directory and copy to archive diectory  after execute
psql -c "SELECT pg_stop_backup()" and after copy database data to slave.

What i doing wrong?

view thread (2+ messages)  latest in thread

Message-ID: <b35b9162-c9b6-b580-015d-84309302554e@altlinux.ru>
Permalink:  ../b35b9162-c9b6-b580-015d-84309302554e@altlinux.ru/
Also on:    postgresql.org/message-id/b35b9162-c9b6-b580-015d-84309302554e@altlinux.ru

 · 

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-admin@postgresql.org
  Cc: stalker@altlinux.ru
  Subject: Re: replication error
  In-Reply-To: <b35b9162-c9b6-b580-015d-84309302554e@altlinux.ru>
  References: <b35b9162-c9b6-b580-015d-84309302554e@altlinux.ru>

* 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