Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eimf4-0002aB-Ds for pgsql-admin@arkaria.postgresql.org; Mon, 05 Feb 2018 19:42:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eimf2-00011W-Qe for pgsql-admin@arkaria.postgresql.org; Mon, 05 Feb 2018 19:42:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eimf2-00011N-Gb for pgsql-admin@lists.postgresql.org; Mon, 05 Feb 2018 19:42:40 +0000 Received: from omr1.cc.ipv6.vt.edu ([2607:b400:92:8300:0:c6:2117:b0e] helo=omr1.cc.vt.edu) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eimez-0004GI-Ao for pgsql-admin@lists.postgresql.org; Mon, 05 Feb 2018 19:42:39 +0000 Received: from mr3.cc.vt.edu (mr3.cc.ipv6.vt.edu [IPv6:2607:b400:92:8500:0:7f:b804:6b0a]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id w15JgZoa027186 for ; Mon, 5 Feb 2018 14:42:35 -0500 Received: from mail-qk0-f198.google.com (mail-qk0-f198.google.com [209.85.220.198]) by mr3.cc.vt.edu (8.14.7/8.14.7) with ESMTP id w15JgU2q011852 for ; Mon, 5 Feb 2018 14:42:35 -0500 Received: by mail-qk0-f198.google.com with SMTP id r84so9227025qki.19 for ; Mon, 05 Feb 2018 11:42:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=f7t0z3nEpU5BtcxDGzdjTZeN15QECFO5+kmDuA4Mao4=; b=Vl/lQ2ALttCpcvXy5IFP7QujUva6n5SqKbNqR+ZR2bEZOvqMP+ujCnw12AinYtqA41 F/w1qqHXT6S327pOEe2P/Bb7NqTtGM8hajk+ZJL+AgCqeHWSn8NM8EaXAuDth/oLzt0o m31Q+1j2mGEwO5e+/kHLD5+dLRhcm2hH5HXah1tCxZLQinqhhQM+W+C10VfkIl1jkZ8S /g+eUHowcwEePAU7tRWYX6Fru2tkwanPtqMWhsy+M97hmTtB4u0ecAzm54purCPus3BX mjrMiKv7EML1U6oMlWEg7x2+syt2LRx/0Q+TopxGS0P6tVJnshb6dJZRjiXMvPsagBn5 zHow== X-Gm-Message-State: APf1xPAq6zapF4+zk5XfVSr0a9uE8HhNOSh6Qwn9usDtXQjuikO7E7I7 DqURLTeGkg7uZ6MvlQNd9vRK/rUfdyXpvkdRfckEFEL10nZTqSGMEeXrwiVcZeu1ewjvuJE6e67 m4gadMZQYGlOlsJCpQbuatT5VmCgSXRaqS1cODtgAFhBgISRL7GvBQgafBmcmzZFlTx7mpiRJ9g QBtPZM990P X-Received: by 10.237.59.24 with SMTP id p24mr19179203qte.84.1517859750094; Mon, 05 Feb 2018 11:42:30 -0800 (PST) X-Google-Smtp-Source: AH8x224J/9ZjpPyNucXP9L5sCrr5ITWBxHoX64tKsdg/h6bQcMSyGalYxOwyr/JpnjnjFIOMcAdwRg== X-Received: by 10.237.59.24 with SMTP id p24mr19179185qte.84.1517859749845; Mon, 05 Feb 2018 11:42:29 -0800 (PST) Received: from stell.cns.vt.edu ([2001:468:c80:2102:ad8e:dd73:7522:537e]) by smtp.gmail.com with ESMTPSA id s72sm6281654qki.50.2018.02.05.11.42.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Feb 2018 11:42:29 -0800 (PST) Subject: Re: uninitialized page in standby recovery From: Ray Stell To: pgsql-admin@lists.postgresql.org References: Message-ID: Date: Mon, 5 Feb 2018 14:42:28 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/5/18 9:06 AM, Ray Stell wrote: > I built a standby with 9.4.12 and about a day later the standby > crashed with this: > > 2018-02-02 16:20:44 EST,0, WARNING:  page 1347460 of relation > base/16391/16414 is uninitialized > 2018-02-02 16:20:44 EST,0, CONTEXT:  xlog redo visible: rel > 1663/16391/16414; blk 1347460 > 2018-02-02 16:20:44 EST,0, PANIC:  WAL contains references to invalid > pages > 2018-02-02 16:20:44 EST,0, CONTEXT:  xlog redo visible: rel > 1663/16391/16414; blk 1347460 > 2018-02-02 16:20:44 EST,0, LOG:  startup process (PID 24057) was > terminated by signal 6: Aborted > 2018-02-02 16:20:44 EST,0, LOG:  terminating any other active server > processes > > Any hints to where the corruption begins?  I don't see any disk i/o > issues.  Not sure what to look for in the release notes, > > but I'll try to patch asap, but that is difficult to get done > politically. > I begin to wonder about pg_basebackup in this old version.  I rebuilt the stby again and this time when I fired up the stby I get: LOG:  database system was not properly shut down; automatic recovery in progress LOG:  redo starts at 2F45/1F4B7F8 FATAL:  could not access status of transaction 4053124744 DETAIL:  Could not read from file "pg_clog/0F19" at offset 90112: Success. CONTEXT:  xlog redo commit: 2018-02-05 11:35:54.291398-05 LOG:  startup process (PID 130590) exited with exit code 1 LOG:  terminating any other active server processes right or wrong, I rsync-ed gp_clog and it recovered.  Can you use pg_basebackup from a more current patch_level on 9.4.12 cluster?