Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V6uWy-0000CL-L9 for pgsql-general@arkaria.postgresql.org; Wed, 07 Aug 2013 03:35:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V6uWx-0001Uo-Rr for pgsql-general@arkaria.postgresql.org; Wed, 07 Aug 2013 03:35:23 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V6uWv-0001Ud-BI for pgsql-general@postgresql.org; Wed, 07 Aug 2013 03:35:21 +0000 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V6uWo-0001N9-39 for pgsql-general@postgresql.org; Wed, 07 Aug 2013 03:35:20 +0000 Received: by mail-pd0-f173.google.com with SMTP id p11so929161pdj.4 for ; Tue, 06 Aug 2013 20:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=GB3BUg02Tqj4ztcePsP59LZe94KUIGf55WD1Sim1WvI=; b=PRy8PQq6NTJPeCyh6+mbCoLDm7aMijNgoPjYMZsmK1Jon8UadtkdWjUGpOKSjGFDwu rh2zHlct5/h5NwtYCAyyeoNVUWjIbR2m3rSnkwxq59/YvFiZCMSBRBZFlX17Fli/B9P5 yRpTmnA9UNg1hkQ5lCGPxjTdWSIqG8fca5QAVEtGpt4P3GjRYOcROP0o0Gv5uQf+KyDo lTwnQkzK6LcuEBZao355PslijoLfcxOq2jwPubfm9Xest1rR9+1pAd8P0SqploXx2ji/ xruD3Mf4H7y/6CEY50hY9p3bE0tu/KXD50Rc+iUFkCt+0P9Jy/Nh+D6TMIG/R4QKtTsx sQqg== X-Received: by 10.66.136.237 with SMTP id qd13mr2141707pab.74.1375846512093; Tue, 06 Aug 2013 20:35:12 -0700 (PDT) Received: from [192.168.0.102] (014136185055.ctinets.com. [14.136.185.55]) by mx.google.com with ESMTPSA id s6sm7476849pan.12.2013.08.06.20.35.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Aug 2013 20:35:11 -0700 (PDT) Subject: Re: pg_stat_replication became empty suddenly Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: "ascot.moss@gmail.com" In-Reply-To: <871u66kbwz.fsf@comcast.net> Date: Wed, 7 Aug 2013 11:35:07 +0800 Cc: "ascot.moss@gmail.com" , PostgreSQL general Content-Transfer-Encoding: quoted-printable Message-Id: References: <8810.1375247630@sss.pgh.pa.us> <2EB17B60-33A2-4855-A176-0E8DD16ED7E1@gmail.com> <10906.1375273486@sss.pgh.pa.us> <57DC0F7E-C959-462D-874F-3EEA49702EC8@gmail.com> <11FDD81A-072D-49DC-9B31-6023E5593023@gmail.com> <871u66kbwz.fsf@comcast.net> To: Jerry Sievers X-Mailer: Apple Mail (2.1085) X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org 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" writes: >=20 >> Hi, >>=20 >> I just tried another round of tests, without running "sync; echo 3 > /p= roc/sys/vm/drop_caches', >> still got the same error, following FATAL errors are found in pg_log (s= lave), can anyone please advise how to resolve >> this error? >>=20 >> regards >>=20 >> 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 se= gment 000000010000001200000005 has already >> been removed >> LOG: streaming replication successfully connected to primary >> FATAL: could not receive data from WAL stream: FATAL: requested WAL se= gment 000000010000001200000005 has already >=20 > Raise wal_keep_segments on your master configs ,and HUP and/or start > your standby a lot sooner after it's reloaded. >=20 > >>=20 >=20 > --=20 > Jerry Sievers > Postgres DBA/Development Consulting > e: postgres.consulting@comcast.net > p: 312.241.7800 --=20 Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general