From: A J <s5aly@yahoo.com>
To: Ray Stell <stellr@cns.vt.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Switchover of Master and Slave roles
Date: Tue, 7 Jun 2011 11:33:56 -0700 (PDT)
Message-ID: <264025.13168.qm@web120005.mail.ne1.yahoo.com> (raw)
In-Reply-To: <20110607181244.GA3861@cns.vt.edu>
References: <693391.31715.qm@web120020.mail.ne1.yahoo.com>
<20110607181244.GA3861@cns.vt.edu>
>>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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: s5aly@yahoo.com, stellr@cns.vt.edu
Subject: Re: Switchover of Master and Slave roles
In-Reply-To: <264025.13168.qm@web120005.mail.ne1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox