Re: FATAL 2: invalid checksum in control file

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David Martin" <martin-family(at)blueyonder(dot)co(dot)uk>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: FATAL 2: invalid checksum in control file
Date: 2007-02-07 02:18:36
Message-ID: 27125.1170814716@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"David Martin" <martin-family(at)blueyonder(dot)co(dot)uk> writes:
> I am trying to restore a database from a machine which has died. The
> machine was taken down normally but refused to restart so the data has
> been copied elsewhere.

> The database is in version 7.2 so I installed 7.2.8, but upon pointing
> the postmaster at the relevant data directory I get the error in the
> subject line.

Lessee ... 7.2 had pg_controldata and pg_resetxlog, so you have some
hope. Try the former and see if it can extract anything. Then try
the latter. Definitely RTFM on pg_resetxlog before using it.

Also: is the "elsewhere" the same machine architecture as the original
server? Do not even think about trying to recover x86 files on x86_64,
for example.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Phillip Smith 2007-02-07 03:13:17 Re: RPM based install
Previous Message Trula Thomas 2007-02-07 01:35:53 RPM based install