Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WHh3l-0003DF-7G for pgsql-performance@arkaria.postgresql.org; Sun, 23 Feb 2014 21:58:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WHh3k-0007xb-AX for pgsql-performance@arkaria.postgresql.org; Sun, 23 Feb 2014 21:58:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WHh3i-0007xS-6r for pgsql-performance@postgresql.org; Sun, 23 Feb 2014 21:58:02 +0000 Received: from mail.gransy.com ([2001:1528:137::f1]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WHh3f-0000Hr-Rw for pgsql-performance@postgresql.org; Sun, 23 Feb 2014 21:58:01 +0000 Received: from antispam.gransy.com (antispam.gransy.com [77.78.104.124]) by mail.gransy.com (Postfix) with ESMTP id A617B48A025 for ; Sun, 23 Feb 2014 22:57:56 +0100 (CET) X-Virus-Scanned: G-Hosting.cz + Station.cz + Klenot.cz + Subreg.cz amavisd-new at antispam.gransy.com Received: from mail.gransy.com ([82.208.29.194]) by antispam.gransy.com (antispam.gransy.com [77.78.104.124]) (amavisd-new, port 10024) with ESMTP id Ir2JARxAmqpY for ; Sun, 23 Feb 2014 22:58:09 +0100 (CET) Received: from [192.168.1.163] (ip-78-45-139-138.net.upcbroadband.cz [78.45.139.138]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: tv@fuzzy.cz) by mail.gransy.com (Postfix) with ESMTPSA id 297C548A01F for ; Sun, 23 Feb 2014 22:57:56 +0100 (CET) Message-ID: <530A6EE3.9000508@fuzzy.cz> Date: Sun, 23 Feb 2014 22:57:55 +0100 From: Tomas Vondra User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: 9.1.2 Postgres corruption, any way to recover? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 23.2.2014 21:42, Tory M Blue wrote: > Appears one of my bigger, but older DB's cored or other this morning and > when it came back up the DB shows that it can't start and is possibly > corrupted. I've read this was actually due to a kernel bug sometime back > (or at least tied to the kernel bug). ... > > Not holding out hope, but maybe just maybe someone has some > ideas/shortcuts to maybe get this DB back up I think the first thing you should ask yourself is why you're running 9.1.2, i.e. a 3 years old revision, instead of the current 9.1.12. Maybe it's not the cause of the bug, but still ... Also, it seems to me that the corruption happened some time ago and you only discovered it now. Which is strange, because corrupted page header should kill every backup attempt. Are you sure you really have backups? I mean, tested and working backups? Do you have an idea how many blocks are actually corrupted? Is it just this single one, or are there more? Are you sure it's a actually due to a kernel bug, and not a storage failure (for example)? And what kernel do you have in mind? There are certainly tricks to make it work (e.g. zeroing the block with corrupted header), but that means data loss (you won't have data from the block) and it's tedious / time consuming. If you have a working backup, and if it's acceptable to loose the data since then, you should probably do that. The only thing that might help you to recover all the data is probably PITR, i.e. a base backup + WAL archive (or replication). regards Tomas -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance