pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ascot.moss@gmail.com <ascot.moss@gmail.com>
To: Jerry Sievers <gsievers19@comcast.net>
Cc: ascot.moss@gmail.com <ascot.moss@gmail.com>
Cc: PostgreSQL general <pgsql-general@postgresql.org>
Subject: Re: pg_stat_replication became empty suddenly
Date: Wed, 7 Aug 2013 11:35:07 +0800
Message-ID: <FDE6E6E5-860E-424F-A58C-213AEFBC042F@gmail.com> (raw)
In-Reply-To: <871u66kbwz.fsf@comcast.net>
References: <CANkGpBt8agjCS+__CceCKBHBNTEfFsmg5jnFd8MianQh0c0MMA@mail.gmail.com>
	<CABUevEzPFi4TnaA0QyaBxbPgKUio5+cjeFzARY05+AOOd+7-0Q@mail.gmail.com>
	<CANkGpBv4c8neu4Uk3=j1aHD4xn+NFK0XNREfi3D-mj46vwEUGg@mail.gmail.com>
	<CANkGpBuHoUj0cuJ-dO8A7vweP41X28g-WqXVgyhrp72X2VjVAg@mail.gmail.com>
	<CA+HiwqFhukXr-GyNZiUgPJP=5Fobsa2UTgeC=p4=sA8r4hW+eA@mail.gmail.com>
	<CANkGpBuWaVQ5hMtod087VsgLsvbiCXOm9T1RDOiPdSsZH1Mfvw@mail.gmail.com>
	<CAMkU=1xG2zL2w-rjKceP8yM24A_jNtW-9LobHPKS-mrpdxfBDQ@mail.gmail.com>
	<8810.1375247630@sss.pgh.pa.us>
	<2EB17B60-33A2-4855-A176-0E8DD16ED7E1@gmail.com>
	<10906.1375273486@sss.pgh.pa.us>
	<CANkGpBvMd9pzJE_nPFAyH9M_SfC3XFaE6ukprwhvCxQ52iT3_Q@mail.gmail.com>
	<A33DFF2A-FFA8-47AF-9487-872C6F842776@gmail.com>
	<57DC0F7E-C959-462D-874F-3EEA49702EC8@gmail.com>
	<11FDD81A-072D-49DC-9B31-6023E5593023@gmail.com>
	<871u66kbwz.fsf@comcast.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

Thanks. I increased the wal_keep_segments  and it works well now.

On 7 Aug 2013, at 12:43 AM, Jerry Sievers wrote:

> "ascot.moss@gmail.com" <ascot.moss@gmail.com> writes:
> 
>> Hi,
>> 
>> I just tried another round of tests, without running  "sync; echo 3 > /proc/sys/vm/drop_caches',
>> still got the same error,  following FATAL errors are found in pg_log (slave), can anyone please advise how to resolve
>> this error?
>> 
>> regards
>> 
>> LOG:  entering standby mode
>> LOG:  consistent recovery state reached at 11/42000318
>> LOG:  redo starts at 11/42000280
>> LOG:  invalid record length at 11/42000318
>> LOG:  database system is ready to accept read only connections
>> LOG:  streaming replication successfully connected to primary
>> FATAL:  could not send data to WAL stream: server closed the connection unexpectedly
>> This probably means the server terminated abnormally
>> before or while processing the request.
>> LOG:  unexpected pageaddr 10/D2EC0000 in log file 18, segment 5, offset 15466496
>> LOG:  streaming replication successfully connected to primary
>> FATAL:  could not receive data from WAL stream: FATAL:  requested WAL segment 000000010000001200000005 has already
>> been removed
>> LOG:  streaming replication successfully connected to primary
>> FATAL:  could not receive data from WAL stream: FATAL:  requested WAL segment 000000010000001200000005 has already
> 
> Raise wal_keep_segments on your master configs ,and HUP and/or start
> your standby a lot sooner after it's reloaded.
> 
> <snip>
>> 
> 
> -- 
> Jerry Sievers
> Postgres DBA/Development Consulting
> e: postgres.consulting@comcast.net
> p: 312.241.7800



-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (5+ messages)

Message-ID: <FDE6E6E5-860E-424F-A58C-213AEFBC042F@gmail.com>
Permalink:  ../FDE6E6E5-860E-424F-A58C-213AEFBC042F@gmail.com/
Also on:    postgresql.org/message-id/FDE6E6E5-860E-424F-A58C-213AEFBC042F@gmail.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ascot.moss@gmail.com, gsievers19@comcast.net
  Subject: Re: pg_stat_replication became empty suddenly
  In-Reply-To: <FDE6E6E5-860E-424F-A58C-213AEFBC042F@gmail.com>
  References: <CANkGpBt8agjCS+__CceCKBHBNTEfFsmg5jnFd8MianQh0c0MMA@mail.gmail.com> <CABUevEzPFi4TnaA0QyaBxbPgKUio5+cjeFzARY05+AOOd+7-0Q@mail.gmail.com> <CANkGpBv4c8neu4Uk3=j1aHD4xn+NFK0XNREfi3D-mj46vwEUGg@mail.gmail.com> <CANkGpBuHoUj0cuJ-dO8A7vweP41X28g-WqXVgyhrp72X2VjVAg@mail.gmail.com> <CA+HiwqFhukXr-GyNZiUgPJP=5Fobsa2UTgeC=p4=sA8r4hW+eA@mail.gmail.com> <CANkGpBuWaVQ5hMtod087VsgLsvbiCXOm9T1RDOiPdSsZH1Mfvw@mail.gmail.com> <CAMkU=1xG2zL2w-rjKceP8yM24A_jNtW-9LobHPKS-mrpdxfBDQ@mail.gmail.com> <8810.1375247630@sss.pgh.pa.us> <2EB17B60-33A2-4855-A176-0E8DD16ED7E1@gmail.com> <10906.1375273486@sss.pgh.pa.us> <CANkGpBvMd9pzJE_nPFAyH9M_SfC3XFaE6ukprwhvCxQ52iT3_Q@mail.gmail.com> <A33DFF2A-FFA8-47AF-9487-872C6F842776@gmail.com> <57DC0F7E-C959-462D-874F-3EEA49702EC8@gmail.com> <11FDD81A-072D-49DC-9B31-6023E5593023@gmail.com> <871u66kbwz.fsf@comcast.net> <FDE6E6E5-860E-424F-A58C-213AEFBC042F@gmail.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