corrupt data

Started by Zeno Davatzalmost 23 years ago3 messagesgeneral
Jump to latest
#1Zeno Davatz
zdavatz@ywesee.com

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).

Thanks for any hints and feedback.

Zeno

#2Alvaro Herrera
alvherre@dcc.uchile.cl
In reply to: Zeno Davatz (#1)
Re: corrupt data

On Fri, Jul 11, 2003 at 09:32:12AM +0200, Zeno R.R. Davatz wrote:

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.

Did you try REINDEX with a standalone backend using -P?

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Lo esencial es invisible para los ojos" (A. de Saint Ex�pery)

#3Zeno Davatz
zdavatz@ywesee.com
In reply to: Alvaro Herrera (#2)
Re: corrupt data

Alvaro Herrera writes:

On Fri, Jul 11, 2003 at 09:32:12AM +0200, Zeno R.R. Davatz wrote:

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.

Did you try REINDEX with a standalone backend using -P?

Thanks for the hint - we tried that but still could not connect to the
database. 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?

Thanks for feedback.

Zeno