Re: Switchover of Master and Slave roles - Mailing list pgsql-admin

From A J
Subject Re: Switchover of Master and Slave roles
Date
Msg-id 264025.13168.qm@web120005.mail.ne1.yahoo.com
Whole thread Raw
In response to Re: Switchover of Master and Slave roles  (Ray Stell <stellr@cns.vt.edu>)
Responses Re: Switchover of Master and Slave roles  (Guillaume Lelarge <guillaume@lelarge.info>)
Re: Switchover of Master and Slave roles  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-admin
>>To return to normal operation, a standby server must be recreated, either on the former primary system when it comes up<<

What does it exactly mean to 'recreate a standby server' ? Can I not use the datafiles on the former primary and just let it sync and get the incremental from the new primary ? Do I have to remove all the data files from the former primary and get all the datafiles through rsync (or other similar manner) from the new primary ?



From: Ray Stell <stellr@cns.vt.edu>
To: A J <s5aly@yahoo.com>
Cc: pgsql-admin@postgresql.org
Sent: Tue, June 7, 2011 2:12:44 PM
Subject: Re: [ADMIN] Switchover of Master and Slave roles

On Tue, Jun 07, 2011 at 09:32:31AM -0700, A J wrote:
> Hello,
> I am trying to switch the master and slave roles in a test I am doing with
> streaming replication in 9.1 beta.
>

http://www.postgresql.org/docs/9.1/static/warm-standby-failover.html

Once failover to the standby occurs, there is only a single server in
operation. This is known as a degenerate state. The former standby is
now the primary, but the former primary is down and might stay down. To
return to normal operation, a standby server must be recreated, either
on the former primary system when it comes up, or on a third, possibly
new, system. Once complete, the primary and standby can be considered
to have switched roles.

pgsql-admin by date:

Previous
From: Ray Stell
Date:
Subject: Re: Switchover of Master and Slave roles
Next
From: Guillaume Lelarge
Date:
Subject: Re: Switchover of Master and Slave roles