Re: cannot read block errors ! - Mailing list pgsql-admin

From Tom Lane
Subject Re: cannot read block errors !
Date
Msg-id 4413.1252520549@sss.pgh.pa.us
Whole thread Raw
In response to cannot read block errors !  (Kevin Kempter <kevink@consistentstate.com>)
Responses Re: cannot read block errors !  (Kevin Kempter <kevink@consistentstate.com>)
List pgsql-admin
Kevin Kempter <kevink@consistentstate.com> writes:
> we're getting these errors on our system today:

> Sep  9 00:53:45 ux-rqs04-atl2 ri_load[5846]: Caught Exception!
> Shutting down: ERROR:  could not read block 703769 of relation
> 37698/17627/38565: Input/output error CONTEXT:  SQL statement "SELECT
> 1 FROM ONLY "our_schema"."big_table" x WHERE "id" OPERATOR(pg_catalog.=) $1
> FOR SHARE OF x"

> Sep  9 15:34:36 ux-rqs04-atl2 ri_load[23717]: Caught Exception! Shutting
> down: PANIC:  right sibling's left-link doesn't match: block 1377627
> links to 3120580 instead of expected 1736900 in index "no_dups" CONTEXT:  COPY
> big_table, line 1563: "157945230    x/1739441607/false/p_1378267744=0"
> \copy: unexpected response (7)

> Anyone have any ideas what's gone wrong and how to fix it?

"Input/output error" generally means you've got hardware problems.
Have you looked into the kernel logs to see if there are device driver
complaints?

The other one indicates index corruption, which I might think suggested
a Postgres bug if I hadn't seen the first one.  You can fix that index
with REINDEX, but you'd better deal with the underlying issue first
before it corrupts data that's not so easily fixed.

            regards, tom lane

pgsql-admin by date:

Previous
From: Kevin Kempter
Date:
Subject: cannot read block errors !
Next
From: Kevin Kempter
Date:
Subject: Re: cannot read block errors !