Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WtytU-0007i7-RG for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jun 2014 12:41:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WtytU-0006zA-6k for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jun 2014 12:41:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WtytT-0006z4-H7 for pgsql-bugs@postgresql.org; Mon, 09 Jun 2014 12:41:43 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WtytK-0007u4-B0 for pgsql-bugs@postgresql.org; Mon, 09 Jun 2014 12:41:42 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 2A5BF9823D; Mon, 9 Jun 2014 05:41:30 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 1A7E01B01E; Mon, 9 Jun 2014 05:41:30 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id E124FC0059; Mon, 9 Jun 2014 05:41:41 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Mon, 9 Jun 2014 05:41:40 -0700 (PDT) Message-ID: <5395AB77.4080209@vmware.com> Date: Mon, 09 Jun 2014 15:41:27 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: jlrando , pgsql-bugs@postgresql.org Subject: Re: Re: Hot standby 9.2.6 -> 9.2.6 PANIC: WAL contains references to invalid pages References: <20140113202600.GB14861@awork2.anarazel.de> <52D44F40.1000803@vmware.com> <20140113210245.GD14861@awork2.anarazel.de> <52D45AD7.9080406@vmware.com> <20140113220440.GE5838@awork2.anarazel.de> <25048.1389662159@sss.pgh.pa.us> <20140114011851.GA20335@awork2.anarazel.de> <26165.1389664788@sss.pgh.pa.us> <52D54198.7090802@vmware.com> <1164.1389739972@sss.pgh.pa.us> <1402313245515-5806482.post@n5.nabble.com> In-Reply-To: <1402313245515-5806482.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.6 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 06/09/2014 02:27 PM, jlrando wrote: > Hi all, > > I am also facing this issue. I set up streaming replication for a PG 9.2.6 > database in both master and slave. I have used pg_basebackup to dump master > database to slave. It took two hours to complete pg_basebackup. During this > time a lot of wal files were archived. As expected, when slave database > started up it went through archived wal files for 5 hours to catch the > master. During recovery from archived wal files appeared some warnings like > this: > > ... > Jun 6 14:55:50 VNWID1-4 postgres[17024]: [177-1] [2014-06-06 14:55:50 CEST] > 17024@ LOG: restored log file "000000010000066C000000E4" from archive > Jun 6 14:55:51 VNWID1-4 postgres[17032]: [1-1] [2014-06-06 14:55:51 CEST] > 17032@ WARNING: xlog min recovery request 67B/B36ABD78 is past current > point 66C/E4FFFFE8 > Jun 6 14:55:51 VNWID1-4 postgres[17032]: [1-2] [2014-06-06 14:55:51 CEST] > 17032@ CONTEXT: writing block 0 of relation > pg_tblspc/16756/PG_9.2_201204301/16757/1116517382_vm > Jun 6 14:55:51 VNWID1-4 postgres[17024]: [178-1] [2014-06-06 14:55:51 CEST] > 17024@ LOG: restored log file "000000010000066C000000E5" from archive > ... > > It seems they are harmless and can be safely ignored, but I prefer to state > this in the post in case be relevant for any reason. Hmm. That warning shouldn't happen, but looking at the visibility map code, I see how it could: During the WAL replay, a heap update is replayed, which clears a bit in the visibility map. That dirties the VM page, but we intentionally don't check or update the LSN on the VM page. The VM buffer is now dirty in the buffer pool, but if it was backed up later during the backup, it has a greater LSN than what we're currently replaying. When that buffer gets written out, you get the warning. Yeah, I think that's harmless. But we should look into fixing that... > It seems that all is ok until now. And no other message was logged until the > crash. After some hours of replication being working properly, Postgres > stopped and log contains this: > > Jun 7 17:52:45 VNWID1-4 postgres[17024]: [15765-1] [2014-06-07 17:52:45 > CEST] 17024@ WARNING: page 916 of relation > pg_tblspc/16756/PG_9.2_201204301/16757/402007830 is uninitialized > Jun 7 17:52:45 VNWID1-4 postgres[17024]: [15765-2] [2014-06-07 17:52:45 > CEST] 17024@ CONTEXT: xlog redo vacuum: rel 16756/16757/402007830; blk > 917, lastBlockVacuumed 915 > Jun 7 17:52:45 VNWID1-4 postgres[17024]: [15766-1] [2014-06-07 17:52:45 > CEST] 17024@ PANIC: WAL contains references to invalid pages > Jun 7 17:52:45 VNWID1-4 postgres[17024]: [15766-2] [2014-06-07 17:52:45 > CEST] 17024@ CONTEXT: xlog redo vacuum: rel 16756/16757/402007830; blk > 917, lastBlockVacuumed 915 > Jun 7 17:52:45 VNWID1-4 postgres[17021]: [2-1] [2014-06-07 17:52:45 CEST] > 17021@ LOG: startup process (PID 17024) was terminated by signal 6: Aborted > Jun 7 17:52:45 VNWID1-4 postgres[17021]: [3-1] [2014-06-07 17:52:45 CEST] > 17021@ LOG: terminating any other active server processes > > I think that this issue is exactly the same that is being discussed in this > thread and I have seen that a patch was released for this bug. Yeah, that looks like the same bug. > Could anyone tell me how to get / apply this patch? It's included in 9.2.8. Just update the binaries. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs