Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 94950B5DD30 for ; Fri, 26 Aug 2011 20:28:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 08863-03-2 for ; Fri, 26 Aug 2011 23:28:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay01.cambriumhosting.nl (relay01.cambriumhosting.nl [217.19.16.173]) by mail.postgresql.org (Postfix) with ESMTP id 949F6B5DD19 for ; Fri, 26 Aug 2011 20:27:39 -0300 (ADT) Received: from relay01.cambriumhosting.nl (localhost [127.0.0.1]) by relay01.cambriumhosting.nl (Postfix) with ESMTP id D26A860001B1 for ; Sat, 27 Aug 2011 01:27:38 +0200 (CEST) Received: from [192.168.13.15] (unknown [217.19.29.52]) by relay01.cambriumhosting.nl (Postfix) with ESMTP id B3A8B60000A5 for ; Sat, 27 Aug 2011 01:27:38 +0200 (CEST) Message-ID: <4E582BEC.7010807@alpenjodel.de> Date: Sat, 27 Aug 2011 01:27:40 +0200 From: gais User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Point-In-Time Recovery not working References: <4E57C819.1010209@alpenjodel.de> <4E578883020000250004076B@gw.wicourts.gov> <4E581A3F.2020705@alpenjodel.de> In-Reply-To: <4E581A3F.2020705@alpenjodel.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by ClamAV (clamav.cambrium.nl) at relay.cambriumhosting.nl X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201108/215 X-Sequence-Number: 38202 > I've tried to follow the directions as closely as possible, but still > the server won't start. I do get a different PANIC: > > 2011-08-26 23:55:08 CEST LOG: database system was shut down at > 2011-08-26 22:08:35 CEST > 2011-08-26 23:55:08 CEST LOG: starting archive recovery > 2011-08-26 23:55:08 CEST LOG: restore_command = 'cp > /var/lib/postgresql/8.3/main/archive/%f %p' > cp: cannot stat > `/var/lib/postgresql/8.3/main/archive/00000001.history': No such file > or directory > 2011-08-26 23:55:08 CEST LOG: restored log file > "0000000100000001000000EE" from archive > 2011-08-26 23:55:08 CEST LOG: unexpected pageaddr 1/EB01C000 in log > file 1, segment 238, offset 114688 > 2011-08-26 23:55:08 CEST LOG: invalid primary checkpoint record > 2011-08-26 23:55:08 CEST LOG: restored log file > "0000000100000001000000EE" from archive > 2011-08-26 23:55:08 CEST LOG: invalid xl_info in secondary checkpoint > record > 2011-08-26 23:55:08 CEST PANIC: could not locate a valid checkpoint > record > 2011-08-26 23:55:08 CEST LOG: startup process (PID 8975) was > terminated by signal 6: Aborted > 2011-08-26 23:55:08 CEST LOG: aborting startup due to startup process > failure > > Somehow I think the database files I used to restore are inconsistent > with the WAL's. Is there a workaround or am I still doing something > completely foolish? OK, did some more testing and it seems the pg_control file that is residing in my global directory does not match the WAL files. Is it still possible to recover the data? I came across some pages claiming you should be able to rebuild the control file from the WAL?