Discussion:
recovery from server crash
(too old to reply)
Debs
2004-06-30 09:42:43 UTC
Permalink
I have a set of database files from PostgreSQL where the
root partition crashed but the /home was saved. How do I remount
these databases with a new installation of the O/S and database
executables? N.B. I _don't_ have SQL dumps, just the actual raw
database files themselves


thanks in advance
Debs
mike g
2004-07-02 04:04:32 UTC
Permalink
Are you sure you have the raw database files? The /home directory is
not where they are normally installed by default...

If those really are the database files I believe you can try to
reinstall postgres following the normal installation instructions but do
not do the initdb step. Skip to starting the postmaster but reference
the location of the data directory under /home instead.

If there were transactions in process when it crashed it might not
start. It will take the more experienced postgres folks on the list to
help you recover from that.

Might try searching the hackers and general list as well.

HTH.

Mike
Post by Debs
I have a set of database files from PostgreSQL where the
root partition crashed but the /home was saved. How do I remount
these databases with a new installation of the O/S and database
executables? N.B. I _don't_ have SQL dumps, just the actual raw
database files themselves
thanks in advance
Debs
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Loading...