pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Timeline Issue
3+ messages / 2 participants
[nested] [flat]

* Timeline Issue
@ 2011-02-17 01:29 Selva manickaraja <mavles78@gmail.com>
  2011-02-17 01:36 ` Re: Timeline Issue Scott Mead <scottm@openscg.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Selva manickaraja @ 2011-02-17 01:29 UTC (permalink / raw)
  To: pgsql-admin

Dear All,

We have a primary running continous archiving to a secondary. We managed to
test fail-over to the secondary by stopping the database in the primary.
Then some transactions were tested in the secondary. It was acting well as a
primary to accept both read and write.

Now we want to revert this acting primary back to secondary and bring up the
actual primary. We know that the secondary had gone out of synch in ahead of
primary. So we do a PITR in this secondary before the time when the initial
primary was brought down. Now the primary is up and the secondary is brought
up as hot-standby. The secondary complaints that it cannot recover because
its Timeline 2 does not match with the Timeline 1 of the primary.

How can this be resolved?

Thank you.

Regards,

Selvam

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Timeline Issue
  2011-02-17 01:29 Timeline Issue Selva manickaraja <mavles78@gmail.com>
@ 2011-02-17 01:36 ` Scott Mead <scottm@openscg.com>
  2011-02-17 01:43   ` Re: Timeline Issue Scott Mead <scottm@openscg.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Scott Mead @ 2011-02-17 01:36 UTC (permalink / raw)
  To: Selva manickaraja <mavles78@gmail.com>; +Cc: pgsql-admin

On Wed, Feb 16, 2011 at 8:29 PM, Selva manickaraja <mavles78@gmail.com>wrote:

> Dear All,
>
> We have a primary running continous archiving to a secondary. We managed to
> test fail-over to the secondary by stopping the database in the primary.
> Then some transactions were tested in the secondary. It was acting well as a
> primary to accept both read and write.
>
> Now we want to revert this acting primary back to secondary and bring up
> the actual primary. We know that the secondary had gone out of synch in
> ahead of primary. So we do a PITR in this secondary before the time when the
> initial primary was brought down. Now the primary is up and the secondary is
> brought up as hot-standby. The secondary complaints that it cannot recover
> because its Timeline 2 does not match with the Timeline 1 of the primary.
>

Once you open the standby for use, it cannot be put back into standby mode.
You will need to rebuild the standby server from the primary.

--Scott



>
> How can this be resolved?
>
> Thank you.
>
> Regards,
>
> Selvam
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Timeline Issue
  2011-02-17 01:29 Timeline Issue Selva manickaraja <mavles78@gmail.com>
  2011-02-17 01:36 ` Re: Timeline Issue Scott Mead <scottm@openscg.com>
@ 2011-02-17 01:43   ` Scott Mead <scottm@openscg.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Scott Mead @ 2011-02-17 01:43 UTC (permalink / raw)
  To: Selva manickaraja <mavles78@gmail.com>; pgsql-admin

(Added list back to keep me honest :-)

On Wed, Feb 16, 2011 at 8:41 PM, Selva manickaraja <mavles78@gmail.com>wrote:

> So what would be the best option for there on? Should the standby be
> converted to primary and the initial primary now nominated as standby?


Once you convert to a primary, you're stuck on it.  You'll have to create a
new standby from it, the old primary can't be used as a standby.

--Scott



>
>
> On Thu, Feb 17, 2011 at 9:36 AM, Scott Mead <scottm@openscg.com> wrote:
>
>> On Wed, Feb 16, 2011 at 8:29 PM, Selva manickaraja <mavles78@gmail.com>wrote:
>>
>>> Dear All,
>>>
>>> We have a primary running continous archiving to a secondary. We managed
>>> to test fail-over to the secondary by stopping the database in the primary.
>>> Then some transactions were tested in the secondary. It was acting well as a
>>> primary to accept both read and write.
>>>
>>> Now we want to revert this acting primary back to secondary and bring up
>>> the actual primary. We know that the secondary had gone out of synch in
>>> ahead of primary. So we do a PITR in this secondary before the time when the
>>> initial primary was brought down. Now the primary is up and the secondary is
>>> brought up as hot-standby. The secondary complaints that it cannot recover
>>> because its Timeline 2 does not match with the Timeline 1 of the primary.
>>>
>>
>> Once you open the standby for use, it cannot be put back into standby
>> mode.  You will need to rebuild the standby server from the primary.
>>
>> --Scott
>>
>>
>>
>>>
>>> How can this be resolved?
>>>
>>> Thank you.
>>>
>>> Regards,
>>>
>>> Selvam
>>>
>>
>>
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2011-02-17 01:43 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-02-17 01:29 Timeline Issue Selva manickaraja <mavles78@gmail.com>
2011-02-17 01:36 ` Scott Mead <scottm@openscg.com>
2011-02-17 01:43   ` Scott Mead <scottm@openscg.com>

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