pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Edson Carlos Ericksson Richter <richter@simkorp.com.br>
To: pgsql-general@lists.postgresql.org
Subject: Re: Stand by server (9.6.6) with corrupt file
Date: Mon, 25 Dec 2017 19:32:50 -0200
Message-ID: <69b02193-2312-02cd-1da7-25ca57a2a8e9@simkorp.com.br> (raw)
In-Reply-To: <b808b563-277e-c4d1-74f4-29399ba8c822@2ndquadrant.com>
References: <c4a7beb1-af57-a8b7-3776-2ea876bff223@simkorp.com.br>
	<b808b563-277e-c4d1-74f4-29399ba8c822@2ndquadrant.com>

I've used rsync method as described in PostgreSQL wiki.

Database is quite large, and pg_basebackup fail after running for 
several hours over a 5Mbps link.

To me, rsync appears to be more reliable over unstable links.

Nevertheless, if some data has been corrupted during copy across the 
wire, shall not the standby start?


Regards,


*Edson Carlos Ericksson Richter*
/SimKorp Ltda/
Fone: 	(51) 3366-7964
Embedded Image
/"A mente que se abre a uma nova ideia jamais voltará ao seu tamanho 
original"/
- Albert Einstein


Em 23/12/2017 09:58, Martin Marques escreveu:
> El 22/12/17 a las 10:29, Edson Carlos Ericksson Richter escribió:
>> Environment: PostgreSQL 9.6.6 installed from yum repository. Oracle
>> Linux 7 EL x64. Dell servers with Raid 5 (hw).
>>
>>
>> I was testing our database backup system (based on pgBarman), and
>> discovered that one base file is corrupt in our standby database server.
>> The file is OK in master server, but has 0 bytes in size in standby server.
> How was the standby built? Did you use a recovered backup from barman or
> did you clone from the master with some tool. An if it's the former,
> which exact process did you use? (Using pg_basebackup would be the
> safest way of cloning)
>
> Regards,
>

Attachments:

eaghnghjhadjmknh.png (image/png, 3.9K) download view image

view thread (5+ messages)

Message-ID: <69b02193-2312-02cd-1da7-25ca57a2a8e9@simkorp.com.br>
Permalink:  ../69b02193-2312-02cd-1da7-25ca57a2a8e9@simkorp.com.br/
Also on:    postgresql.org/message-id/69b02193-2312-02cd-1da7-25ca57a2a8e9@simkorp.com.br

 · 

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: richter@simkorp.com.br
  Subject: Re: Stand by server (9.6.6) with corrupt file
  In-Reply-To: <69b02193-2312-02cd-1da7-25ca57a2a8e9@simkorp.com.br>
  References: <c4a7beb1-af57-a8b7-3776-2ea876bff223@simkorp.com.br> <b808b563-277e-c4d1-74f4-29399ba8c822@2ndquadrant.com> <69b02193-2312-02cd-1da7-25ca57a2a8e9@simkorp.com.br>

* 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