pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeremy Buchmann <jeremy@wellsgaming.com>
To: Rajesh Kumar Mallah. <mallah@trade-india.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Help with data recovery...
Date: Thu, 16 May 2002 16:05:02 -0700
Message-ID: <3CE43B1E.7070104@wellsgaming.com> (raw)
References: <200205162140.06645.mallah@trade-india.com>

Rajesh Kumar Mallah. wrote:
> Hi ,
> 
> my postmaster is refusing to startup. and my last backup is 18 hrs old.
> restoring data for that backup is the last option i have.
> 
> I have already tried pg_resetxlog -f $PGDATA , but that sets the
> database to a state that is 2 days old.
> 
> will anyone please help me with my best bet in recovering data
> for $PGDATA 
> 
>  i made a copy of it before running pg_resetxlog.
> 
> DEBUG:  database system was interrupted being in recovery at 2002-05-16 21:34:20 IST
>         This probably means that some data blocks are corrupted
>         and you will have to use the last backup for recovery.
> DEBUG:  checkpoint record is at 3/FACBFA78
> DEBUG:  redo record is at 3/FACBFA78; undo record is at 0/0; shutdown FALSE
> DEBUG:  next transaction id: 6174305; next oid: 30144904
> DEBUG:  database system was not properly shut down; automatic recovery in progress
> DEBUG:  redo starts at 3/FACBFAB8

If your hardware is going bad, there's probably not much Pg can do.  18 
hours isn't that long ago...if that's not recent enough, you should look 
into doing more frequent backups.

--Jeremy





view thread (2+ messages)

Message-ID: <3CE43B1E.7070104@wellsgaming.com>
Permalink:  ../3CE43B1E.7070104@wellsgaming.com/
Also on:    postgresql.org/message-id/3CE43B1E.7070104@wellsgaming.com

 · 

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: jeremy@wellsgaming.com, mallah@trade-india.com
  Subject: Re: Help with data recovery...
  In-Reply-To: <3CE43B1E.7070104@wellsgaming.com>
  References: <200205162140.06645.mallah@trade-india.com> <3CE43B1E.7070104@wellsgaming.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