pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Worth Bishop <wbishop@busicast.com>
To: pgsql-admin@postgresql.org
Subject: Recover from data corruption?
Date: Tue, 7 Sep 2004 14:27:36 -0400
Message-ID: <003801c49508$59b8d960$1900a8c0@S0030153310> (raw)

I'm a novice PostgreSQL admin, running 7.2 on FreeBSD 4.6.

I copied a directory containing a web application that interfaces with a
PostgreSQL database. First time the application was accessed, the system
indicated the database was not running. Restarted the database, no PostgeSQL
errors in logfile or at console. However, now each time a request is made
against the database, the server console displays the following error:

ad0s1f: hard error reading fsbn 91219263 of 4145297 - 41415327 (ad0s1 bn
91219263; cn 5678 tn 34 sn 51) trying PIO mode
ad0: DMA problem fallback to PIO mode

Then, repeated messages:

ad0s1f: hard error reading fsbn 91219279 of 4145296 - 41415327 (ad0s1 bn
91219279; cn 5678 tn 35 sn 4) status=59 error=40

I can access the database using psql.

The error message suggests a hard drive trying to die, but since it came
hard on the heels of my actions, I have to believe I've corrupted the data.

Is there any way to reindex or otherwise recover from this?

Any thoughts or suggestions?

Thanks.







Message-ID: <003801c49508$59b8d960$1900a8c0@S0030153310>
Permalink:  ../003801c49508$59b8d960$1900a8c0@S0030153310/
Also on:    postgresql.org/message-id/003801c49508$59b8d960$1900a8c0@S0030153310

 · 

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: wbishop@busicast.com
  Subject: Re: Recover from data corruption?
  In-Reply-To: <003801c49508$59b8d960$1900a8c0@S0030153310>
  References: <003801c49508$59b8d960$1900a8c0@S0030153310>

* 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