Re: 9.0 streaming replication problem

From: Sean Hsien <sean(dot)hsien(at)gmail(dot)com>
To: Sean <sean(dot)hsien(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 9.0 streaming replication problem
Date: 2011-03-10 04:10:55
Message-ID: AANLkTi=mFdk+uK2A3tyDq0uqxwu6O90ckHdsqcVTGB8h@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10 March 2011 14:21, Sean Hsien <sean(dot)hsien(at)gmail(dot)com> wrote:
> Hi,
>
> I've setup 2 nodes for streaming replication and it was working
> perfectly. I the tested multiple failovers, switching master/slave,
> and now the streaming replication doesn't work anymore.
>
> I had a look at the log and it seems fine "LOG:  replication
> connection authorized: user=postgres ...". From ps, the sender and
> receiver processes have been started. However there is something
> strange with the sender process, ps says:
>
> postgres: wal sender process postgres xxx.xxx.xxx.xxx (48159) startup
>
> And the streaming never starts. What are the possible problems?

In the end the problem was that the 2 servers were out of sync.

I noticed the problem by doing another failover and examing the logs,
it said that the timelines did not match. So did another rsync of
$PGDATA and it was fixed.

Kind Regards,
Sean

In response to

Browse pgsql-general by date

  From Date Subject
Next Message mark 2011-03-10 04:44:24 Re: First production install - general advice
Previous Message Sean Hsien 2011-03-10 03:21:09 9.0 streaming replication problem