Re: Need help recovering

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Michael Garriss <mgarriss(at)mac(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Need help recovering
Date: 2005-01-19 20:47:29
Message-ID: 20050119204729.GK32192@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jan 19, 2005 at 07:39:29AM -0700, Michael Garriss wrote:
> We had a significant production outage with a box running 8.0 Beta 4,
> 140GB data, 190GB index. We think it was a bad RAID controller card.
> Our transaction logs are gone but we have raw data.
>
> How can we recover this data? Can the transaction logs be reset? Can
> we safely set this zero_damaged_pages parameter?

What transaction logs? Do you mean pg_clog, or pg_xlog? If the former,
use your latest backup (i.e. forget it, unless you rarely rolled back
any transaction). If the latter, try pg_resetxlog (you will likely lose
some things after the last checkpoint, and some indexes may not be in
correct shape).

What are the exact error messages you are getting?

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"The ability to monopolize a planet is insignificant
next to the power of the source"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris 2005-01-19 21:13:41 Re: pg 8.0 on freebsd 5.3 install problem
Previous Message Mark 2005-01-19 20:40:41 need an advice on running Database