Re: "invalid page header in block 597621 of relation..."error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Adam Witney <awitney(at)sgul(dot)ac(dot)uk>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: "invalid page header in block 597621 of relation..."error
Date: 2005-11-23 22:20:44
Message-ID: 27389.1132784444@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adam Witney <awitney(at)sgul(dot)ac(dot)uk> writes:
> Whats the best way to zero the bad block?

Probably dd from /dev/zero, along the lines of

dd bs=8k seek=597621 count=1 conv=notrunc if=/dev/zero of=relation

(check this before you apply it ;-)). You probably should stop the
postmaster while doing this, in case it has a cached copy of the page.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bob Pawley 2005-11-24 00:31:04 Re: Group By?
Previous Message Guy Rouillier 2005-11-23 22:17:23 Re: Group By?