Re: [GENERAL] cluster question

Поиск
Список
Период
Сортировка
От Ian Barwick
Тема Re: [GENERAL] cluster question
Дата
Msg-id 098cec46-2a8e-29de-609c-cf22963cf247@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [GENERAL] cluster question  (Alex Samad <alex@samad.com.au>)
Ответы Re: [GENERAL] cluster question
Список pgsql-general
On 08/16/2017 02:41 PM, Alex Samad wrote:
(...)
 >
 > okay think I have it setup, but when i do a switch over it gets stuck here.
 >
 >
 >
 > NOTICE: STANDBY PROMOTE successful
 > NOTICE: Executing pg_rewind on old master server
 > NOTICE: 3 files copied to /var/lib/pgsql/9.6/data
 > NOTICE: restarting server using '/usr/pgsql-9.6/bin/pg_ctl  -w -D /var/lib/pgsql/9.6/data -m fast restart'
 > pg_ctl: PID file "/var/lib/pgsql/9.6/data/postmaster.pid" does not exist
 > Is server running?
 > starting server anyway
 > NOTICE: STANDBY FOLLOW successful

 From the repmgr README:

 >> You must ensure that following a server start using `pg_ctl`, log output
 >> is not send to STDERR (the default behaviour). If logging is not configured,
 >> we recommend setting `logging_collector=on` in `postgresql.conf` and
 >> providing an explicit `-l/--log` setting in `repmgr.conf`'s `pg_ctl_options`
 >> parameter.

i.e. when the old primary is restarted with:

     /usr/pgsql-9.6/bin/pg_ctl  -w -D /var/lib/pgsql/9.6/data -m fast restart

the calling process hangs, waiting for logging output from pg_ctl.
In "repmgr.conf" set "pg_ctl_options" to something like:

     pg_ctl_options='-l /path/to/log'


Regards

Ian Barwick

--
  Ian Barwick                   http://www.2ndQuadrant.com/
  PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Alex Samad
Дата:
Сообщение: Re: [GENERAL] Begginers question
Следующее
От: Ian Barwick
Дата:
Сообщение: Re: [GENERAL] no pg_hba.conf entry for replication connection