Re: PG Upgrade with hardlinks, when to start/stop master and replicas

Поиск
Список
Период
Сортировка
От Hellmuth Vargas
Тема Re: PG Upgrade with hardlinks, when to start/stop master and replicas
Дата
Msg-id CAN3Qy4oDNdRDeD0UoipmK9aMRxeKftnr67NW1v+zu0uPGJR7Nw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PG Upgrade with hardlinks, when to start/stop master and replicas  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: PG Upgrade with hardlinks, when to start/stop master andreplicas  (Martín Fernández <fmartin91@gmail.com>)
Список pgsql-general
Thank you Stephen 👍

El mar., 19 de feb. de 2019 a la(s) 10:05, Stephen Frost (sfrost@snowman.net) escribió:
Greetings,

* Hellmuth Vargas (hivs77@gmail.com) wrote:
> But could you do the following procedure?:

> pg_upgrade of the master
> rysnc with a hot standby

The above should be alright provided both the primary and the standby
are down and the instructions in the pg_upgrade docs are followed.

> arracar master
> hot standby start

So, start both the primary and the replica?  That part should be fine by
itself.

> stop hot standby and rsync the other hot standby with the migrated hot
> standby?

At some later point, shut down the replica completely, then do an rsync
from that replica to the other replica and build its hard-link tree that
way, and update anything that's changed while the 'migrated' replica was
online?  I don't see any obvious issue with that as the result should
mean that the two replicas are identical from PG's perspective from that
point moving forward.

Ultimately, it really depends on your specific environment though, of
course.  It also might not be a bad idea to do a regular backup of the
upgraded primary and then restore that to the second replica, just to
make sure you have that whole process working and to test out your
restore process.

Thanks!

Stephen


--
Cordialmente,

Ing. Hellmuth I. Vargas S.
Esp. Telemática y Negocios por Internet 
Oracle Database 10g Administrator Certified Associate
EnterpriseDB Certified PostgreSQL 9.3 Associate

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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: PG Upgrade with hardlinks, when to start/stop master and replicas
Следующее
От: Martín Fernández
Дата:
Сообщение: Re: PG Upgrade with hardlinks, when to start/stop master andreplicas