From: Michael Paquier <michael.paquier@gmail.com>
To: Dylan Luong <Dylan.Luong@unisa.edu.au>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Missing WAL file after running pg_rewind
Date: Mon, 15 Jan 2018 09:27:04 +0900
Message-ID: <20180115002704.GA1275@paquier.xyz> (raw)
In-Reply-To: <388af9edaa97460f8fcc528df9cc9ce7@ITUPW-EXMBOX3B.UniNet.unisa.edu.au>
References: <ab82d7fd35ef4394bc5dfc6a6e2f1266@ITUPW-EXMBOX3B.UniNet.unisa.edu.au>
<20180112013741.GB2222@paquier.xyz>
<a7ad1502b60f4e4fae8ae9e8575b8e83@ITUPW-EXMBOX3B.UniNet.unisa.edu.au>
<20180113103331.GA1477@paquier.xyz>
<388af9edaa97460f8fcc528df9cc9ce7@ITUPW-EXMBOX3B.UniNet.unisa.edu.au>
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):
>
> 0000000500000383000000BD
> 0000000500000383000000BE
> 0000000500000383000000BF
> 0000000500000383000000C0
> 0000000500000383000000C1
>
> Here are the first few archive files of the new timeline (new master):
> 0000000500000383000000C0.partial
> 0000000600000383000000C0
> 0000000600000383000000C1
> 0000000600000383000000C2
> 0000000600000383000000C3
>
> Looks like it has folked at C0.
> 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
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
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: michael.paquier@gmail.com, Dylan.Luong@unisa.edu.au
Subject: Re: Missing WAL file after running pg_rewind
In-Reply-To: <20180115002704.GA1275@paquier.xyz>
References: <ab82d7fd35ef4394bc5dfc6a6e2f1266@ITUPW-EXMBOX3B.UniNet.unisa.edu.au> <20180112013741.GB2222@paquier.xyz> <a7ad1502b60f4e4fae8ae9e8575b8e83@ITUPW-EXMBOX3B.UniNet.unisa.edu.au> <20180113103331.GA1477@paquier.xyz> <388af9edaa97460f8fcc528df9cc9ce7@ITUPW-EXMBOX3B.UniNet.unisa.edu.au> <20180115002704.GA1275@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox