Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eascM-0001nC-PR for pgsql-general@arkaria.postgresql.org; Mon, 15 Jan 2018 00:27:14 +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 1eascM-0006XB-1z for pgsql-general@arkaria.postgresql.org; Mon, 15 Jan 2018 00:27:14 +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 1eascL-0006X1-Jv for pgsql-general@lists.postgresql.org; Mon, 15 Jan 2018 00:27:13 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eascI-00044h-LX for pgsql-general@lists.postgresql.org; Mon, 15 Jan 2018 00:27:11 +0000 Received: by mail-pl0-x241.google.com with SMTP id q3so2476830plr.8 for ; Sun, 14 Jan 2018 16:27:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=335AHpCuHIWrMGUaT74kMXRABX1LZ62IFjke7ocg8ws=; b=qU1YTZhsSUYJkkaLHmRGB7v/3Numc5MbgY+ic+w+qK+VkVo3aTQLD4oPMbLwWY9i2T 6MM4r15TFzeD/PUAQ7ZbF+JIMgH6fhVngjwFN+9VwJ2tTEzn/OVsRaSeC95gzYShPRHk Mfcvp25siMHuL1Km/eLRAVfKl5eUUsvxQj+3ll34rL+BatM++qm+Qiuy99JdHsGfHnvP 9+nfVuUPj84Gx3J16dOor17hZII/ALIgbV8ZOSQPX3QerLo0WycixX35z5R1kJiTLO+F 6J36fSy6oIe16UtASvef9CpVG/ieiCaytkFbc0Jcxb2pjSeBfH32TqqNC7I/iU6XtvMJ jtpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=335AHpCuHIWrMGUaT74kMXRABX1LZ62IFjke7ocg8ws=; b=beTR8J9farLVvZlOtjRDlAmAJoJmk6JIzRN8SSgGgtVib8ElqOchmFXtjKDBYK5xsT 5MLEN9fN2NydVrPMFfgQ1UPEoat3565Z/ttcIU8O7foBiJ1ggWN6msY6nKZ4MMuc6aWz IULm9vPWiiz4+/FbUNdEpnVLpYT+FPFzbD+ZuPGtNHG/0KwaFXzn8HUBy4nZunbOr7zm JXbsvtHTYqm8W8D3+wc35MVOWpSDODi12ju91gfZWaZWyBBbUOt8asD+UJPWD/NpE8+7 VkrvckhGPT3uV2uVTk2TKUov9XM8l2XxUdmTyE3E7INkHXlaITeSXNR5p9ZaJ/ywJEU+ AHeQ== X-Gm-Message-State: AKGB3mIdbY6v20zBn0O08n4svptXTCsJRPfZNAuQrchg91TpMJK6LVK+ unpMk47yBqDLotvPnJ9w2+8= X-Google-Smtp-Source: ACJfBosIfpOZWZoydP4ouoZ9bs5d1YB+ic3vDBb4yk6PIxO80f2njqZyDJTOMHHvoiR/dwcWtEVWVQ== X-Received: by 10.84.248.134 with SMTP id q6mr26237023pll.247.1515976029188; Sun, 14 Jan 2018 16:27:09 -0800 (PST) Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp. [61.215.137.162]) by smtp.gmail.com with ESMTPSA id u26sm18365741pfk.126.2018.01.14.16.27.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Jan 2018 16:27:08 -0800 (PST) Date: Mon, 15 Jan 2018 09:27:04 +0900 From: Michael Paquier To: Dylan Luong Cc: "pgsql-general@lists.postgresql.org" Subject: Re: Missing WAL file after running pg_rewind Message-ID: <20180115002704.GA1275@paquier.xyz> References: <20180112013741.GB2222@paquier.xyz> <20180113103331.GA1477@paquier.xyz> <388af9edaa97460f8fcc528df9cc9ce7@ITUPW-EXMBOX3B.UniNet.unisa.edu.au> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: <388af9edaa97460f8fcc528df9cc9ce7@ITUPW-EXMBOX3B.UniNet.unisa.edu.au> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 15, 2018 at 12:13:46AM +0000, Dylan Luong wrote: > The content of the history file 00000006.history is: Please do not top-post. This breaks the logic of the thread. > $ more 00000006.history > 1 2CE/8A000098 no recovery target specified > 2 2CE/FF974EF0 no recovery target specified > 3 2CF/51000098 no recovery target specified > 4 2D1/C90ACD88 no recovery target specified > 5 383/C0790E50 no recovery target specified So indeed the timeline has forked at 0000000500000383000000C0, which is what the .partial file also means. > Here are the last few archive file of the old timeline (old master): >=20 > 0000000500000383000000BD > 0000000500000383000000BE > 0000000500000383000000BF > 0000000500000383000000C0 > 0000000500000383000000C1 >=20 > Here are the first few archive files of the new timeline (new master): > 0000000500000383000000C0.partial > 0000000600000383000000C0 > 0000000600000383000000C1 > 0000000600000383000000C2 > 0000000600000383000000C3 >=20 > Looks like it has folked at C0.=20 > But why is the new slave asking for 0000000600000383000000BE on > timeline during the restore after the pg_rewind? And not from C0? The rewound standby needs to recover from the point of the last checkpoint where timeline forked. So I can guess that this record is=20 located in segment 0000000500000383000000BE. Now I find strange that the standby requests for a segment on the new timeline 5, while it should start at TLI 5. Are you sure that the standby had the means been able to fetch segment 0000000500000383000000BE? Something looks weird from your operational point of view with your archives.. -- Michael --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlpb9VgACgkQnvQgOdby QH0PpQ/8DxAp0JLSiZ/oWM85gQmas7OwB/Ju6k7J+2efu62IJuPNMk/Oq39+Oh00 kzIqeGj6XkAEVemPv7spMstGG7O6zba256zEVbTaJoSL4TPrnraO49Mg2oxZwCo1 yD/eZCx6ch0GS0l1Egi0QttrOTrSN2wLBf7hf8Xxcs8sZk4NX5O2LpyGTzLIjvJh jVKFlEQOCHIfwYfwXXSbB1RwiIf5LNtM6P7EHJZszCOEtDmqGrH/tkK7HqfDTKte rUDSx1dl5z6FZ6wdqAa4CqW4ff3INdHBi5ElX60uhktjd/k/jtabwV7iag8nuTlU 2QXKDyVFGBrF9RqFBm7EfUW1q+lXD4nrwDZmlH+yMcWctvKnP8P03dkwjIDYogM4 BeWl2bwoZgqK1TeNWRUbbcDq9JUAI09QkXkpT3fCTkeVaAaDeUloMvLCHuUDHvdA MJl0nK+de9x6jcm+6mdyFGHmHU6uIsnZS7VrbJvIFUrcBPM/yeSU07fLXc5nAKVt YM+Auwbhs+3reGUiCyVonoNLv8t6Ru9gz7P2/y0q6L8I9SB4u0/mMS4z/k/pGJ+7 zXGyiPhuJWopTOk0noGlwS2tcVjKnvzo6s5fRFDwe5OSlmxagaIrMtG6wA4w0dTR eHpvLeBW9gKdE51pd2IVH+2SrjZCOy/yEf1loGmp/qhSWxMGPKs= =0ODP -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF--