pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Henley Wing <henley.chiu@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Postgres: PANIC: WAL contains references to invalid pages
Date: Sun, 10 Nov 2013 23:49:56 +0100
Message-ID: <20131110224956.GE32665@awork2.anarazel.de> (raw)
In-Reply-To: <CABCJswX-5i6=z7fM5m4gV8K4UkeAH9yKLuKYNy85i-2_vL4XnA@mail.gmail.com>
References: <CABCJswX-5i6=z7fM5m4gV8K4UkeAH9yKLuKYNy85i-2_vL4XnA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hello,

On 2013-11-10 17:43:50 -0500, Henley Wing wrote:
> I have a slave database that is being replicated from a Master DB (through
> rsync).
> 
> All of a sudden, my slave DB just exited and wasn't able to restart. Here
> are the error messages when it exits. Similar ones appear when I restart:
> 
> WARNING:  page 21561636 of relation base/16384/54391 is uninitialized
> CONTEXT:  xlog redo visible: rel 1663/16384/54391; blk 21561636
> PANIC:  WAL contains references to invalid pages
> CONTEXT:  xlog redo visible: rel 1663/16384/54391; blk 21561636
> LOG:  startup process (PID 1573) was terminated by signal 6: Aborted
> LOG:  terminating any other active server processes
> 
> Both slave and master are using *Postgres 9.2.3* in a *Centos 5* quad-core
> server with 32 GB of RAM each.

> When I try to restart the slave, with "zero_damaged_pages=true", the server
> still refuses to start with lines like the ones above. The master is still
> running and isn't corrupt at all.

You unfortunately have to reclone the standby :(

> At this point, I don't care if the slave ever starts as I can start from
> scratch. But is this an issue with Postgres? Has anyone encountered this
> and is it fixed in future versions?

This hopefully is fixed in 17fa4c321ccf9693de406faffe6b235e949aa25f -
9.2.5.
For some reason it's not contained in the release notes, sorry for that.

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <20131110224956.GE32665@awork2.anarazel.de>
Permalink:  ../20131110224956.GE32665@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20131110224956.GE32665@awork2.anarazel.de

 · 

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-bugs@postgresql.org
  Cc: andres@2ndquadrant.com, henley.chiu@gmail.com
  Subject: Re: Postgres: PANIC: WAL contains references to invalid pages
  In-Reply-To: <20131110224956.GE32665@awork2.anarazel.de>
  References: <CABCJswX-5i6=z7fM5m4gV8K4UkeAH9yKLuKYNy85i-2_vL4XnA@mail.gmail.com> <20131110224956.GE32665@awork2.anarazel.de>

* 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