From: Ken Caruso <ken@ipl31.net>
To: Cédric Villemain <cedric.villemain.debian@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: 9.0.4 Data corruption issue
Date: Sun, 17 Jul 2011 09:54:13 -0700
Message-ID: <CAMg8r_qYM4g-PyjY_Fc5uhUuhgO4niccQXUWBTbz3PiSpdmfsw@mail.gmail.com> (raw)
In-Reply-To: <CAF6yO=3R0tPOaspAsJyGzVmm1+KyrDyycrSow6n3AsJeSBJpkA@mail.gmail.com>
References: <CAMg8r_rzsTn+pR0+A0xCXS73o5QsTdgsisW9AHG6jEm87r1FCQ@mail.gmail.com>
<27386.1310831992@sss.pgh.pa.us>
<CAMg8r_rbdiQDe+Vr3M0PdxSKHmmxM42C1gWAwx6uObPoXEJiJQ@mail.gmail.com>
<23808.1310851830@sss.pgh.pa.us>
<CAMg8r_r8dqsDtfkqRLu1r_XTxDqmouqnFaArcWhi51SQX_33Tw@mail.gmail.com>
<CAF6yO=3R0tPOaspAsJyGzVmm1+KyrDyycrSow6n3AsJeSBJpkA@mail.gmail.com>
On Sun, Jul 17, 2011 at 3:04 AM, Cédric Villemain <
cedric.villemain.debian@gmail.com> wrote:
> 2011/7/17 Ken Caruso <ken@ipl31.net>:
> >
> >
> > On Sat, Jul 16, 2011 at 2:30 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >>
> >> Ken Caruso <ken@ipl31.net> writes:
> >> > Sorry, the actual error reported by CLUSTER is:
> >>
> >> > gpup=> cluster verbose tablename;
> >> > INFO: clustering "dbname.tablename"
> >> > WARNING: could not write block 12125253 of base/2651908/652397108
> >> > DETAIL: Multiple failures --- write error might be permanent.
> >> > ERROR: could not open file "base/2651908/652397108.1" (target block
> >> > 12125253): No such file or directory
> >> > CONTEXT: writing block 12125253 of relation base/2651908/652397108
> >>
> >> Hmm ... it looks like you've got a dirty buffer in shared memory that
> >> corresponds to a block that no longer exists on disk; in fact, the whole
> >> table segment it belonged to is gone. Or maybe the block or file number
> >> in the shared buffer header is corrupted somehow.
> >>
> >> I imagine you're seeing errors like this during each checkpoint attempt?
> >
> > Hi Tom,
> > Thanks for the reply.
> > Yes, I tried a pg_start_backup() to force a checkpoint and it failed due
> to
> > similar error.
> >
> >>
> >> I can't think of any very good way to clean that up. What I'd try here
> >> is a forced database shutdown (immediate-mode stop) and see if it starts
> >> up cleanly. It might be that whatever caused this has also corrupted
> >> the back WAL and so WAL replay will result in the same or similar error.
> >> In that case you'll be forced to do a pg_resetxlog to get the DB to come
> >> up again. If so, a dump and reload and some manual consistency checking
> >> would be indicated :-(
> >
> > Before seeing this message, I restarted Postgres and it was able to get
> to a
> > consistent state at which point I reclustered the db without error and
> > everything appears to be fine. Any idea what caused this? Was it
> something
> > to do with the Vacuum Full?
>
> Block number 12125253 is bigger that any block we can find in
> base/2651908/652397108.1
> Should the table size be in the 100GB range or 2-3 GB range ?
> This should help decide: if in the former case, then probably at least
> a segment disappear or, in the later, the shared_buffer turn
> corrupted.
>
> Ken, you didn't change RELSEG_SIZE, right ? (it needs to be change in
> source code before compile it yourself)
> In both case a hardware check is welcome I believe.
>
No I am using Pre-built Ubuntu binaries so no source changes. Hardware
appears to be fine, the controller is a P800 on a HP DL380 and all the
diagnostics indicate the disks, controller, and battery are doing well.
Thanks
-Ken
> --
> Cédric Villemain 2ndQuadrant
> http://2ndQuadrant.fr/ PostgreSQL : Expertise, Formation et Support
>
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: ken@ipl31.net, cedric.villemain.debian@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: 9.0.4 Data corruption issue
In-Reply-To: <CAMg8r_qYM4g-PyjY_Fc5uhUuhgO4niccQXUWBTbz3PiSpdmfsw@mail.gmail.com>
References: <CAMg8r_rzsTn+pR0+A0xCXS73o5QsTdgsisW9AHG6jEm87r1FCQ@mail.gmail.com> <27386.1310831992@sss.pgh.pa.us> <CAMg8r_rbdiQDe+Vr3M0PdxSKHmmxM42C1gWAwx6uObPoXEJiJQ@mail.gmail.com> <23808.1310851830@sss.pgh.pa.us> <CAMg8r_r8dqsDtfkqRLu1r_XTxDqmouqnFaArcWhi51SQX_33Tw@mail.gmail.com> <CAF6yO=3R0tPOaspAsJyGzVmm1+KyrDyycrSow6n3AsJeSBJpkA@mail.gmail.com> <CAMg8r_qYM4g-PyjY_Fc5uhUuhgO4niccQXUWBTbz3PiSpdmfsw@mail.gmail.com>
* 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