pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
To: Edson Richter <edsonrichter@hotmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Replication: slave server has 3x size of production server?
Date: Tue, 25 Feb 2020 10:55:44 +0100
Message-ID: <20200225105544.7bda4012@firost> (raw)
In-Reply-To: <MN2PR01MB5327AC08F819CCED387027FACFEE0@MN2PR01MB5327.prod.exchangelabs.com>
References: <MN2PR01MB53275B5A45E7D752514934CECFEE0@MN2PR01MB5327.prod.exchangelabs.com>
	<98f036e0-9bf2-8798-8742-9dba0601fb9a@aklaver.com>
	<MN2PR01MB5327EA9352994C5BAA1F3E94CFEE0@MN2PR01MB5327.prod.exchangelabs.com>
	<590174e0-256a-fe72-468a-0bcf77ca0df8@aklaver.com>
	<MN2PR01MB53271A46CE28B2FDF93EE77DCFEE0@MN2PR01MB5327.prod.exchangelabs.com>
	<bde60fe9-f703-b8da-b253-10977b1c82a7@aklaver.com>
	<MN2PR01MB5327AC08F819CCED387027FACFEE0@MN2PR01MB5327.prod.exchangelabs.com>

On Sat, 22 Feb 2020 19:23:05 +0000
Edson Richter <edsonrichter@hotmail.com> wrote:
[...]
> Actually, standby server is sending wals to a backup (barman) server:
> 
> archive_mode = always           # enables archiving; off, on, or always
> (change requires restart) archive_command = 'rsync -e "ssh -2 -C -p 2022" -az
> %p barman@192.168.0.2:/dados/barman/dbcluster/incoming/%f'
> 
> 
> The files are about 7 months old.

Did you check the return code of your archive_command? 

Did you check the log produced by your archive_command and postmaster?

How many files with ".ready" extension in "$PGDATA/pg_xlog/archive_status/"?

Can you confirm there's no missing WAL between the older one and
the newer one in "$PGDATA/pg_xlog" in alphanum order?





view thread (14+ messages)

Message-ID: <20200225105544.7bda4012@firost>
Permalink:  ../20200225105544.7bda4012@firost/
Also on:    postgresql.org/message-id/20200225105544.7bda4012@firost

 · 

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: jgdr@dalibo.com, edsonrichter@hotmail.com, adrian.klaver@aklaver.com
  Subject: Re: Replication: slave server has 3x size of production server?
  In-Reply-To: <20200225105544.7bda4012@firost>
  References: <MN2PR01MB53275B5A45E7D752514934CECFEE0@MN2PR01MB5327.prod.exchangelabs.com> <98f036e0-9bf2-8798-8742-9dba0601fb9a@aklaver.com> <MN2PR01MB5327EA9352994C5BAA1F3E94CFEE0@MN2PR01MB5327.prod.exchangelabs.com> <590174e0-256a-fe72-468a-0bcf77ca0df8@aklaver.com> <MN2PR01MB53271A46CE28B2FDF93EE77DCFEE0@MN2PR01MB5327.prod.exchangelabs.com> <bde60fe9-f703-b8da-b253-10977b1c82a7@aklaver.com> <MN2PR01MB5327AC08F819CCED387027FACFEE0@MN2PR01MB5327.prod.exchangelabs.com> <20200225105544.7bda4012@firost>

* 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