Re: ERROR: could not read block 4 ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Leonardo M(dot) Ramé <l(dot)rame(at)griensu(dot)com>
Cc: PostgreSql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: ERROR: could not read block 4 ...
Date: 2016-09-15 14:05:31
Message-ID: 7846.1473948331@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"=?UTF-8?Q?Leonardo_M._Ram=c3=a9?=" <l(dot)rame(at)griensu(dot)com> writes:
> Hi, I'm getting this error:
> 2016-09-15 09:35:24 ART [13984-1] ERROR: could not read block 4 in file
> "base/12210/11965": Error de entrada/salida

That looks like a hardware problem ... might want to budget for a new disk
sometime soon, before failures become more prevalent.

> 1) Is this caused by a bad block?, can fsck fix it?.

yes, and fsck is unlikely to help, though you could try.

> 2) Is there a way to re-generate template0?.

If you've never modified template1, you could drop template0 and re-create
it from template1. Otherwise, pg_dumpall/initdb/reload would seem to be
called for. A cautious person might want to do the latter anyway in case
there's more problems than just this one.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Leonardo M. Ramé 2016-09-15 14:11:28 Re: ERROR: could not read block 4 ...
Previous Message Tom Lane 2016-09-15 13:52:07 Re: Request to share information regarding postgresql pg_xlog file.