Re: Help on recovering my standby

Поиск
Список
Период
Сортировка
От Patrick B
Тема Re: Help on recovering my standby
Дата
Msg-id CAJNY3isS3ZL1Mr-JVrWpeNy-ZSvdYn25L5D2PC1Yr3vs2kUsyQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Help on recovering my standby  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general
I had the same issue... A slave server had missing wal_files... and it wasn't synced. 

I had to re-sync all the DB, by running the pg_basebackup command....

So.. basically, what I did is:

1 - Ensure that the wal_files are being inserted into the slave
2 - Backup the recovery.conf, postgresql.conf and pg_hba.conf
3 - Delete all the current data folder, by doing: rm -rf /var/lib/pgsql/9.2/data/*
4 - Running the pg_basebackup command to re-sync the DB from another slave to the slave that I wanna fix
5 - Replace the .conf backup files into the new data folder
6 - Start postgres

And it worked nice....

Patrick

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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: Protect a table against concurrent data changes while allowing to vacuum it
Следующее
От: Jonathan Vanasco
Дата:
Сообщение: Re: optimizing a query