Rebuilding DB from broken hardrive.

From: Yoon <ylee(at)peragrin(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Rebuilding DB from broken hardrive.
Date: 2006-08-02 23:02:38
Message-ID: 1154559758.10723.4.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


I was trying postgres for about a year and the hard drive died.
Using some block copy and other tools I was able to retrieve some data
however it's missing directory names.

Eventually, I was able to connect to my db. However, when I make a
query. It comes back with following messages.

WARNING: 4 attrdef record(s) missing <dbname>
ERROR: could not open relation 1663/17230/17235: No such file.

When I'm looking at my lost+found folder and
recreating /var/lib/data/global and /var/lib/data/base/1.

It would be nice to know how each directories are related to each other
or at least a pointer to where I should look.

Thanks,

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2006-08-02 23:47:36 SELinux + CREATE TABLESPACE = ?
Previous Message Flemming Frandsen 2006-08-02 22:53:28 Re: LISTEN considered dangerous

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Seltenreich 2006-08-02 23:35:05 GIN vs. statistics collector
Previous Message Tom Lane 2006-08-02 22:49:05 Re: Standby Mode