Re: Recover from failover

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin S <martins.listz@xxxxxxxxx> writes:

> Hello list,
>
> May be this information is inside the documentation, but couldn't find it.
>
> I'm doing some tests with postgres 9.1.1 and replication, and I was
> wandering if there is some information about how to recover from a
> failover.
>
> Suppose I'm doing some kernel upgrades on the master, so in order to
> avoid downtime, I promote the slave to become the master, and reboot
> the old-master. Once the old-master is up and running again, I want it
> to be the master as it was before. The problem are the updates and
> inserts made while it was offline. Does it recovers automagically by
> streaming or something? Do you have any procedures/recommendations to
> do it?

About the only way you can role reverse master and standby is to stop
immediate the master, online the standby and then config the old
master as a standby and point it to the new master. 

Doing a normal stop on the original master before onlining the
standby, then making changes to the old master DB and you'll have to
refresh the old master from a base backup before putting it into
recovery.

Most admins will tell you to refresh the old master in either case to
be on the safe side.  This is the conventional and guaranteed to work
approach.

HTH

> Cheers,
>
> Martin
>
> -- 
> Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>

-- 
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@xxxxxxxxxxx
p: 305.321.1144

-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux