drive failre, corrupt data...

From: Jeff Amiel <becauseimjeff(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: drive failre, corrupt data...
Date: 2007-01-18 15:16:01
Message-ID: 20070118151601.68232.qmail@web60821.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Had a drive failure on a raid 5 array of a backup box that a couple of postgres databases sit on. One of the databases is a slony subscriber to a production database and the other is a test-environment database.

The drive was offline...brought it back online, hoping it would start a rebuild...which it didn't. Almost immediately started getting errors from slony

could not access status of transaction 2463273456
could not open file "pg_clog/0937": No such file or directory
...
etc.

Looks like the subscriber database had some issues (at least with one specific table). In addition, trying to access to the other (test) database yielded an error accessing pg_namespace.

So....reseated the drive which started a rebuild. I stopped postgres. When the rebuild is done (or if it fails, I will replace the drive), I will restart postgres and see what happens.

Question...should I just re-initdb and restore databases from backup? Should I have done something differently once I noticed the failure? I've had drive failures before on this box and either rebuilt the array or replaced the drive with no postgres issues (although the amount of traffic was much less than now)

Any help would be appreciated.


---------------------------------
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-01-18 15:16:51 Re: [1/2 OFF] Varlena.com inaccessible from .br (Blocked?)
Previous Message sjarosz 2007-01-18 14:50:49 Who is Slony Master/Slave + general questions.