Re: Switchover of Master and Slave roles

From: A J <s5aly(at)yahoo(dot)com>
To: Ray Stell <stellr(at)cns(dot)vt(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Switchover of Master and Slave roles
Date: 2011-06-07 18:33:56
Message-ID: 264025.13168.qm@web120005.mail.ne1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)cns(dot)vt(dot)edu>
To: A J <s5aly(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)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.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Guillaume Lelarge 2011-06-07 18:40:03 Re: Switchover of Master and Slave roles
Previous Message Ray Stell 2011-06-07 18:12:44 Re: Switchover of Master and Slave roles