From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Maciek Sakrejda <maciek@heroku.com>
Cc: Daniel Farina <daniel@heroku.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7883: "PANIC: WAL contains references to invalid pages" on replica recovery
Date: Thu, 21 Feb 2013 14:04:09 +0200
Message-ID: <51260D39.5020505@vmware.com> (raw)
In-Reply-To: <CAKwe89DSA37XTktbw+AVAT6VdWYO25s265JiqzxKQw0Ss9eHvw@mail.gmail.com>
References: <E1U6AQu-0002rq-4b@wrigleys.postgresql.org>
<511E4FD1.4000902@vmware.com>
<CAKwe89AJRwsNhVgrCVPxk1cHgayb1XBcVZuGhS8pWkwFp=i-DQ@mail.gmail.com>
<CAAZKuFbE54nedkGfn7Z-xBRdXaMzCBCiOOkHYEk8Owu0yZ0XaQ@mail.gmail.com>
<CAKwe89B8VdLNqkNmaM5uYCAGUFLN5nzMUD1-FciF9eZH6m9GUw@mail.gmail.com>
<CAAZKuFa+Aj1TOviYrzcoA+f_060Rv=JXVSsAErk7=ViWjzTWbA@mail.gmail.com>
<5121ECDD.3000508@vmware.com>
<CAKwe89DSA37XTktbw+AVAT6VdWYO25s265JiqzxKQw0Ss9eHvw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 19.02.2013 00:19, Maciek Sakrejda wrote:
> On Mon, Feb 18, 2013 at 12:57 AM, Heikki Linnakangas<
> hlinnakangas@vmware.com> wrote:
>
>> On 16.02.2013 01:49, Daniel Farina wrote:
>>
>>> I guess that means Ubuntu (and probably Debian?) libpq-dev breaks
>>> PG_VERSION_NUM for PGXS=1.
>>>
>>
>> That obviously needs to be fixed in debian. Meanwhile, Maciek, I'd suggest
>> that you build PostgreSQL from sources, install it to some temporary
>> location, and then build xlogdump against that.
>
> That worked, thanks. I have a working xlogdump. Any pointers as to what I
> should look for? This is the contents of the pg_xlog directory:
>
> total 49160
> -rw------- 1 udrehggpif7kft postgres 16777216 Feb 15 00:00
> 000000010000003C00000093
> -rw------- 1 udrehggpif7kft postgres 16777216 Feb 15 00:47
> 000000010000003C00000094
> -rw------- 1 udrehggpif7kft postgres 16777216 Feb 15 00:49
> 000000020000003C00000093
> -rw------- 1 udrehggpif7kft postgres 56 Feb 15 00:49 00000002.history
> drwx------ 2 udrehggpif7kft postgres 4096 Feb 15 00:49 archive_status
I'd like to see the contents of the WAL, starting from the last
checkpoint, up to the point where failover happened. In particular, any
actions on the relation base/16385/16430, which caused the error.
pg_controldata output on the base backup would also interesting, as well
as the contents of backup_label file.
How long did the standby run between the base backup and the failover?
How many WAL segments?
One more thing you could try to narrow down the error: restore from the
base backup, and let it run up to the point of failover, but shut it
down just before the failover with "pg_ctl stop -m fast". That should
create a restartpoint, at the latest checkpoint record. Then restart,
and perform failover. If it still throws the same error, we know that
the WAL record that touched the page that doesn't exist was after the
last checkpoint.
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: hlinnakangas@vmware.com, maciek@heroku.com, daniel@heroku.com
Subject: Re: BUG #7883: "PANIC: WAL contains references to invalid pages" on replica recovery
In-Reply-To: <51260D39.5020505@vmware.com>
References: <E1U6AQu-0002rq-4b@wrigleys.postgresql.org> <511E4FD1.4000902@vmware.com> <CAKwe89AJRwsNhVgrCVPxk1cHgayb1XBcVZuGhS8pWkwFp=i-DQ@mail.gmail.com> <CAAZKuFbE54nedkGfn7Z-xBRdXaMzCBCiOOkHYEk8Owu0yZ0XaQ@mail.gmail.com> <CAKwe89B8VdLNqkNmaM5uYCAGUFLN5nzMUD1-FciF9eZH6m9GUw@mail.gmail.com> <CAAZKuFa+Aj1TOviYrzcoA+f_060Rv=JXVSsAErk7=ViWjzTWbA@mail.gmail.com> <5121ECDD.3000508@vmware.com> <CAKwe89DSA37XTktbw+AVAT6VdWYO25s265JiqzxKQw0Ss9eHvw@mail.gmail.com> <51260D39.5020505@vmware.com>
* 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