Re: Power outage borked things (8.1.10)...

From: Darren Reed <darrenr+postgres(at)fastmail(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Power outage borked things (8.1.10)...
Date: 2008-02-20 20:22:45
Message-ID: 47BC8C15.1060805@fastmail.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Tom Lane wrote:
> Darren Reed <darrenr+postgres(at)fastmail(dot)net> writes:
> > # su postgres -c "/usr/pkg/bin/pg_resetxlog -f /data/db"
> > Transaction log reset
>
> > PANIC: could not access status of transaction 4570963
> > DETAIL: could not read from file "pg_clog/0004" at offset 90112:
> > Undefined error: 0
>
> You may need to append a few pages of zeroes to pg_clog/0004 ...
>

So doing this:
# dd if=/dev/zero bs=8192 count=1 | cat >> 0004

allowed the database to start, but tables are missing.

I'll keep restoring.

Thanks,
Darren

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Monnerie 2008-02-20 21:05:58 Re: Power outage borked things (8.1.10)...
Previous Message Tom Lane 2008-02-20 19:44:49 Re: Power outage borked things (8.1.10)...