pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Amee Sankhesara - Quipment India <amee.sankhesara@quipment.nl>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Issue with PostgreSQL replication and PITR
Date: Wed, 28 Mar 2018 07:53:28 +0200
Message-ID: <1522216408.2363.10.camel@cybertec.at> (raw)
In-Reply-To: <AM0P193MB041947CFA5E224C7FC67C662E0AC0@AM0P193MB0419.EURP193.PROD.OUTLOOK.COM>
References: <AM0P193MB041947CFA5E224C7FC67C662E0AC0@AM0P193MB0419.EURP193.PROD.OUTLOOK.COM>

Amee Sankhesara - Quipment India wrote:
> We have setup replication and PITR on this PostgreSQL server and wal files
> for replication and PITR we are storing on the another server which is
> shared with primary and secondary server.
>  
> For doing some OS migration activity for the PostgreSQL database servers
> We created two new replication server and promoted to new master server for the same
>  
> During that activity one .partial file is created on master server and after
> that wal files are not copied in shared folder from which secondary server
> take it and restore it. All Wal files after .partial file are stored in pg_xlog
> folder of master data so it is increasing size of data directory of master server.
>  
> Wal files are not copying in shared location of master and secondary server but
> still replication is running and on secondary server data is up to date.
>  
> In logs getting only below warning :
> Warning : The failed archive command was:
>   copy "D:\PostgreSQL\9.6\data\pg_xlog\0000000100000A88000000F8.partial"
>   "\\10.0.0.35\Archive_Replication\0000000100000A88000000F8.partial"
>   | copy "D:\PostgreSQL\9.6\data\pg_xlog\0000000100000A88000000F8.partial"
>   "\\10.0.0.35\Archive_PITR\0000000100000A88000000F8.partial"
>  
> Can’t figure out that in shared folder wal files are not copied but still
> secondary server is running in sync with master server.
>  
> What could be reason behind this?

If archiving is not working and the standby still can replicat, I would assume
that streaming replication is configured.

Is "primary_conninfo" defined in "recovery.conf"?
Are there WAL sender and WAL receiver processes?
 
> And how to remove this .partial file from pg_xlog safely and how to start
> copying wal files from pg_xlog of master server to shared location of master
> and secondary server ?

You should try to figure out why your "archive_command" fails; perhaps
try it by hand.  Once you have got that fixed, archiving will continue normally.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




view thread (2+ messages)

Message-ID: <1522216408.2363.10.camel@cybertec.at>
Permalink:  ../1522216408.2363.10.camel@cybertec.at/
Also on:    postgresql.org/message-id/1522216408.2363.10.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, amee.sankhesara@quipment.nl
  Subject: Re: Issue with PostgreSQL replication and PITR
  In-Reply-To: <1522216408.2363.10.camel@cybertec.at>
  References: <AM0P193MB041947CFA5E224C7FC67C662E0AC0@AM0P193MB0419.EURP193.PROD.OUTLOOK.COM> <1522216408.2363.10.camel@cybertec.at>

* 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