Обсуждение: recovery from server crash

Поиск
Список
Период
Сортировка

recovery from server crash

От
debs@debbiejenkins.com (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

Re: recovery from server crash

От
mike g
Дата:
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


On Wed, 2004-06-30 at 04:42, Debs wrote:
> 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
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)