X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 3C48ACC161 for ; Mon, 14 Jul 2003 21:27:14 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 12871-01 for ; Mon, 14 Jul 2003 21:27:36 +0000 (GMT) Received: from isis.pcis.net (isis.pcis.net [207.18.226.3]) by svr1.postgresql.org (Postfix) with ESMTP id 64549CC0F5 for ; Mon, 14 Jul 2003 18:27:11 -0300 (ADT) Received: from lyric.ofsloans.com (unverified [209.180.142.225]) by isis.pcis.net (Rockliffe SMTPRA 4.5.6) with ESMTP id ; Mon, 14 Jul 2003 16:27:35 -0500 Subject: Re: corrupt data - caused by lm-sensors? From: Will LaShell To: Zeno Davatz Cc: pgsql-admin In-Reply-To: <20030712194301.1623.qmail@debian> References: <20030711075859.7b0976a8.zdavatz@ywesee.com> <1057967403.24304.2052.camel@camel> <20030712194301.1623.qmail@debian> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-xWFgfJo/Ufdj+KM2GlPz" X-Mailer: Ximian Evolution 1.0.8 (1.0.8-11) Date: 14 Jul 2003 14:27:33 -0700 Message-Id: <1058218055.22244.16.camel@lyric.ofsloans.com> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/133 X-Sequence-Number: 9473 --=-xWFgfJo/Ufdj+KM2GlPz Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2003-07-12 at 12:43, Zeno Davatz wrote: > Robert Treat writes:=20 >=20 > > On Fri, 2003-07-11 at 01:58, Zeno R.R. Davatz wrote: > >> Hi List=20 > >>=20 > >> Out of some reason our data of our postgresql database has been corrup= ted. When we try to connect to the database we get:=20 > >>=20 > >> psql: ERROR: _mdfd_getrelnfd: cannot open relation pg_type_oid_index: > >> No such file or directory=20 > >>=20 > >> REINDEX does not work. We get the same error.=20=20 > >>=20 > >> pgfsck gives us: wrong blockseize.=20 > >>=20 > >> We are using postgresql 7.3.3-1 (debian).=20 > >>=20 > >=20 > > uh oh, sounds like you might have some flakey hardware.=20=20 > >=20 > > 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 wit= h=20 > pgfsck 0.14 - great tool, great maintainer, very dedicated (Tom Lane says= =20 > pgfsck does not exist).=20 >=20 > What I forgot to mention: > I installed lm-sensors (cvs) version and force-loaded some drivers. Then= =20 > sensors-detect gave me a segmentation fault. Do you think that could have= =20 > caused the data-corruption?=20 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. Sincerely, Will LaShell >=20 > Thanks for feedback.=20 >=20 > Zeno --=-xWFgfJo/Ufdj+KM2GlPz Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA/EyBFZr3R5kgOZd0RAuusAJ43RBTIiT2Xk8O8ryXWbqCBeMueYwCdFM4Q dqErubfWI2h9/u2sanWzWcQ= =q6vN -----END PGP SIGNATURE----- --=-xWFgfJo/Ufdj+KM2GlPz--