Re: standby shutdown

Поиск
Список
Период
Сортировка
От Robert Treat
Тема Re: standby shutdown
Дата
Msg-id 200905020013.43287.xzilla@users.sourceforge.net
обсуждение исходный текст
Ответ на standby shutdown  (Ray Stell <stellr@cns.vt.edu>)
Ответы Re: standby shutdown  (Ray Stell <stellr@cns.vt.edu>)
Список pgsql-admin
On Friday 01 May 2009 09:14:40 Ray Stell wrote:
> I need to do OS maintenance on a system running a standby in recovery
> using pg_standby.  I've gotten mixed results with doing the stop/start
> with pg_ctl.  Sometimes the standby is not recoverable.  What should
> the shutdown script look like if the standby is to be usable on the
> other side?  The log seems to indicate that interuption of recovery
> is bad.  What should the script look for to avoid that?
>
> "-m i" left it in this state:
>

First tip, dont use -i, it isn't needed. I'd try withought any flag and work
up if needed. Be patient unless you can't afford to be.

> 2009-05-01 00:42:15 EDT,0, LOG:  database system was interrupted while in
> recovery at log time 2009-05-01 00:34:06 EDT 2009-05-01 00:42:15 EDT,0,
> HINT:  If this has occurred more than once some data might be corrupted and
> you might need to choose an earlier recovery target. 2009-05-01 00:42:15
> EDT,0, LOG:  could not open file "pg_xlog/00000001000000000000000A" (log
> file 0, segment 10): No such file or directory 2009-05-01 00:42:15 EDT,0,
> LOG:  invalid primary checkpoint record 2009-05-01 00:42:15 EDT,0, LOG:
> could not open file "pg_xlog/000000010000000000000009" (log file 0, segment
> 9): No such file or directory 2009-05-01 00:42:15 EDT,0, LOG:  invalid
> secondary checkpoint record 2009-05-01 00:42:15 EDT,0, PANIC:  could not
> locate a valid checkpoint record 2009-05-01 00:42:14 EDT,0, LOG:  startup
> process (PID 25121) was terminated by signal 6: Aborted 2009-05-01 00:42:14
> EDT,0, LOG:  aborting startup due to startup process failure

This indicates it couldn't find the files it was looking for rather than
something being necessarily broken. This makes me wonder about your xlog
retention policy; it sounds like you might be deleting xlogs more agressivly
than you should be. I'd suggest you look into the %r option for pg_standby.
HTH.

--
Robert Treat
Conjecture: http://www.xzilla.net
Consulting: http://www.omniti.com

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

Предыдущее
От: Ray Stell
Дата:
Сообщение: standby shutdown
Следующее
От: Ray Stell
Дата:
Сообщение: Re: standby shutdown