Re: db recovery (FATAL 2)

Поиск
Список
Период
Сортировка
От Bojan Belovic
Тема Re: db recovery (FATAL 2)
Дата
Msg-id 20020508202717.1952.qmail@uwdvg023.cms.usa.net
обсуждение исходный текст
Ответ на db recovery (FATAL 2)  (Bojan Belovic <bbelovic@usa.net>)
Ответы Re: db recovery (FATAL 2)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
It turns out it was a bad sector, and once the data was retreived and the
drive replaced, postgres was able to go through the startup process
sucessfully. Given that it did not report any errors on recovery, I suppose
there was no data loss, but even if there was some damage to the log file, it
should be minor - the crash happened at 6am, almost no activity, so I'm not
going to worry about that at all at this point.
Anyway, thank you very much for your help.
One quick question - you mentioned I should upgrade to 7.1.3 beofre I run
vacuum again. What are the known problems that "ask" for this?

Thanks again!


Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Bojan Belovic <bbelovic@usa.net> writes:
> > You are correct, it's 7.1.2 . However, the problem is not with disk space
> > (there's several gigs available), but there could be a problem with a bad
> > sector on one of the log files. If this is the case, and the log file is
> > corrupted, is there any way of recovering, even with a certain data loss?
>
> Hm.  It's complaining about a write, not a read, so there is no lost
> data (yet), even if your theory is correct.  You might first try copying
> the entire $PGDATA/pg_xlog directory somewhere else.
>
> If nothing else avails, see contrib/pg_resetxlog.  But that should be
> your last resort not first.
>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html


В списке pgsql-admin по дате отправления:

Предыдущее
От: Laurette Cisneros
Дата:
Сообщение: pg_ctl
Следующее
От: Tom Lane
Дата:
Сообщение: Re: db recovery (FATAL 2)