Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X2IQH-0001Vh-NS for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Jul 2014 11:09:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X2IQH-0000j6-61 for pgsql-bugs@arkaria.postgresql.org; Wed, 02 Jul 2014 11:09:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X2IQF-0000gf-Vl for pgsql-bugs@postgresql.org; Wed, 02 Jul 2014 11:09:56 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X2IQC-0001tM-IP for pgsql-bugs@postgresql.org; Wed, 02 Jul 2014 11:09:54 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 0BBC1500002; Wed, 2 Jul 2014 13:09:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-4.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, FS_REPLICA autolearn=no version=3.2.5 Received: from anarazel.de (p5DDC581C.dip0.t-ipconnect.de [93.220.88.28]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 49E37500001; Wed, 2 Jul 2014 13:09:45 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 90281100585; Wed, 2 Jul 2014 13:09:44 +0200 (CEST) Date: Wed, 2 Jul 2014 13:09:44 +0200 From: Andres Freund To: Heikki Linnakangas Cc: "Burgess, Freddie" , =?utf-8?Q?=22PostgreSQL_Bugs_=E2=80=8E=5Bpgsql-bugs=40postgresql=2Eorg?= =?utf-8?B?XeKAjiI=?= Subject: Re: Postgresql 9.3.4 Streaming Replication Standby invalid Page block Message-ID: <20140702110944.GL21169@awork2.anarazel.de> References: <3BBE635F64E28D4C899377A61DAA9FE02E66257B@NBSVR-MAIL01.radiantblue.local> <53B3E6C3.40003@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53B3E6C3.40003@vmware.com> X-Pg-Spam-Score: -2.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 2014-07-02 14:02:27 +0300, Heikki Linnakangas wrote: > On 07/02/2014 02:03 AM, Burgess, Freddie wrote: > > PostgreSQL version: 9.3.4 > > Operating system: rhel 6.4 linux > > Action: stream replication Master/Slave > > Description: > > > >Last entries in the PostgreSQL log file before the standby crashed, the primary seems unaffected > > > >LOG: restored log file "0000000100001127000000cc" from archive > >FATAL: invalid page in block 464698 of relation pg_tblspc/16435/PG_9.3_201306121/16444/125127698 > >CONTEXT: xlog redo vacuum: rel 16435/16444/125127698; blk 512019, lastBlockVacuumed 0 > >LOG: startup process (PID 27797) exited with exit code 1 > >LOG: terminating any other active server processes > > > >We did re-started the database and the process of restoring the log file has continued beyond this point, but is are standby server corrupted? Do you run with data checksums enabled? > Sounds exactly like this bug: > > http://www.postgresql.org/message-id/flat/CAL_0b1s4QCkFy_55kk_8XWcJPs7wsgVWf8vn4=jXe6V4R7Hxmg@mail.gmail.com > > but that was fixed in 9.3.3 already. Are you sure you're running 9.3.4 in > the standby too? Hm - that bug was about uninitialized pages, not invalid ones. I don't immediately see why it'd be legal to have a invalid page (as in !PageIsVerified()) somewhere? At least not after reaching consistency. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs