X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id B94EFCBB42 for ; Tue, 15 Jul 2003 05:23:13 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 24943-09 for ; Tue, 15 Jul 2003 05:23:40 +0000 (GMT) Received: from debian (unknown [62.12.131.37]) by svr1.postgresql.org (Postfix) with SMTP id 0795ECBB3A for ; Tue, 15 Jul 2003 02:23:12 -0300 (ADT) Received: (qmail 3656 invoked by uid 74); 15 Jul 2003 05:23:09 -0000 Received: from zdavatz@ywesee.com by debian by uid 71 with qmail-scanner-1.15 (clamscan: 0.54. Clear:. Processed in 0.325627 secs); 15 Jul 2003 05:23:09 -0000 Received: from dclient217-162-81-126.hispeed.ch (HELO zrr) (217.162.81.126) by 0 with SMTP; 15 Jul 2003 05:23:08 -0000 Date: Tue, 15 Jul 2003 07:23:01 +0200 From: "Zeno R.R. Davatz" To: Will LaShell Cc: pgsql-admin Subject: Re: corrupt data - caused by lm-sensors? Message-Id: <20030715072301.67c8fb62.zdavatz@ywesee.com> In-Reply-To: <1058218055.22244.16.camel@lyric.ofsloans.com> References: <20030711075859.7b0976a8.zdavatz@ywesee.com> <1057967403.24304.2052.camel@camel> <20030712194301.1623.qmail@debian> <1058218055.22244.16.camel@lyric.ofsloans.com> Organization: ywesee - intellectual capital connected X-Mailer: Sylpheed version 0.9.0claws (GTK+ 1.2.10; powerpc-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/185 X-Sequence-Number: 9525 On 14 Jul 2003 14:27:33 -0700 Will LaShell wrote: > On Sat, 2003-07-12 at 12:43, Zeno Davatz wrote: > > Robert Treat writes: > > > > > On Fri, 2003-07-11 at 01:58, Zeno R.R. Davatz wrote: > > >> Hi List > > >> > > >> Out of some reason our data of our postgresql database has been corrupted. When we try to connect to the database we get: > > >> > > >> psql: ERROR: _mdfd_getrelnfd: cannot open relation pg_type_oid_index: > > >> No such file or directory > > >> > > >> REINDEX does not work. We get the same error. > > >> > > >> pgfsck gives us: wrong blockseize. > > >> > > >> We are using postgresql 7.3.3-1 (debian). > > >> > > > > > > uh oh, sounds like you might have some flakey hardware. > > > > > > try vacuumdb template1 and if that gets you in you might want to do a > > > pg_dump and then do some hardware testing. > > Thanks for the hint. In the meantime we could get access to some data with > > pgfsck 0.14 - great tool, great maintainer, very dedicated (Tom Lane says > > pgfsck does not exist). > > > > What I forgot to mention: > > I installed lm-sensors (cvs) version and force-loaded some drivers. Then > > sensors-detect gave me a segmentation fault. Do you think that could have > > caused the data-corruption? > > You did this on a production system? At any rate, depending on what / > how it segfaulted it has a good chance of confirming what the others > have suggested in that you have some bad hardware on that machine. Note > that this shouldn't have caused the drive corruption unless the segfault > took out a piece of the disk io kernel subsystem. Although I have to say > that using development versions of software on production machines is > not necessarily the most safe practice one can engage in. Thanks for the info. Do you know of any tool to check my hardware especially the hdd's? Thanks for feedback. Zeno