pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: JEANARTHUR@EUROVOX.FR
Cc: pgsql-admin@postgresql.org
Subject: Re: problem after an hd failure
Date: Fri, 02 May 2003 10:16:22 -0400
Message-ID: <10194.1051884982@sss.pgh.pa.us> (raw)
In-Reply-To: <3EB25DBC.31349.8F65D6@localhost>
References: <3EB25DBC.31349.8F65D6@localhost>

JEANARTHUR@EUROVOX.FR writes:
> We just had a problem on the hard disk we resolved with fsck.

> Database server runs, queries on the DB seems ok, but when we do a
> vacuum (full or not), we have after some tables were vaccumed :

> mai  2 11:49:34 aphrodite logger: PANIC:  XLogFlush: request
> 635F6373/6B636568 is not satisfied --- flushed only to 14/F9473CF4

Hm... I can't see how vacuum could get to that state --- XLogFlush
failure within vacuum should only be an ERROR not PANIC.  I wonder
whether that was actually coming from a background checkpoint process?
(checkpoint shouldn't be PANICing either, but it looks like it would
at the moment :-()

But I digress.  Your problem is evidently that you've got clobbered
table data.  XLogFlush is unhappy because the first eight bytes of some
page have been overwritten with junk (text, it looks like: in ASCII that
value works out as "sc_check" ...).  Whatever that page is, it's toast
now, but your problem is to identify it --- if you're really lucky it's
in an index or some other noncritical file.

You might try writing a little script in perl or some such to grovel
through all the database files looking for 8K pages that don't start
with small integers --- 00000000 to 00000014 are evidently the only
valid values.  There could be more than one trashed page, but hopefully
there aren't many.  Once you know the filenames containing the trashed
pages, see contrib/oid2name to identify what tables they are, and then
report back and we can give you advice about how to recover.  You'll
probably end up zeroing out the trashed pages, but the first problem
is to know where they are.

			regards, tom lane




view thread (2+ messages)

Message-ID: <10194.1051884982@sss.pgh.pa.us>
Permalink:  ../10194.1051884982@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10194.1051884982@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, JEANARTHUR@EUROVOX.FR
  Subject: Re: problem after an hd failure
  In-Reply-To: <10194.1051884982@sss.pgh.pa.us>
  References: <3EB25DBC.31349.8F65D6@localhost> <10194.1051884982@sss.pgh.pa.us>

* 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