From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Silvio Fabi - NBS srl <s.fabi@nbsgroup.it>
Cc: pgsql-general@postgresql.org
Subject: Re: postgres: archiver process failed on 000000010000020A00000073
Date: Wed, 1 Apr 2020 14:36:06 -0300
Message-ID: <20200401173606.GA24159@alvherre.pgsql> (raw)
In-Reply-To: <8e9bfb6a-a8c6-0ff5-b1e2-346f3db260dd@nbsgroup.it>
On 2020-Apr-01, Silvio Fabi - NBS srl wrote:
> WAL Archive process on my DB Postgresql 10 is not working.
> the WAL Archive file 000000010000020A00000073 was accidentally deleted
> and there is no backup.
> Postgresql tries to run the following command:
> rsync -a pg_wal/000000010000020A00000073
> barman@database:/var/lib/barman/database/incoming/000000010000020A00000073
Ouch. This is not a barman problem; accidentally a WAL file is
synonymous with corrupting your database. Any existing backup that
needs that file is now invalid. I suggest you run CHECKPOINT and then
take a new backup. I think removing the 000000010000020A00000073.ready
file from pg_wal should prevent future attempts at archiving it, so that
subsequent WAL files are archived.
By all means, *do not* lose any more WAL files. It is a very dangerous
thing to do.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: alvherre@2ndquadrant.com, s.fabi@nbsgroup.it
Subject: Re: postgres: archiver process failed on 000000010000020A00000073
In-Reply-To: <20200401173606.GA24159@alvherre.pgsql>
References: <8e9bfb6a-a8c6-0ff5-b1e2-346f3db260dd@nbsgroup.it> <20200401173606.GA24159@alvherre.pgsql>
* 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