Обсуждение: error on vacuum - could not read block

Поиск
Список
Период
Сортировка

error on vacuum - could not read block

От
glok_twen
Дата:
i have a big table - about 450GB each of data and index use.

i keep getting a hint saying the database needs a vacuum:
WARNING:  database "postgres" must be vacuumed within 10970738 transactions
HINT:  To avoid a database shutdown, execute a full-database VACUUM in
"postgres".

however when i run the vacuum i always get this error when it vacuums the
big table:

INFO:  vacuuming "public.monthly_res_01"

ERROR:  could not read block 43775860 of relation 1663/11511/24873: read
only 4096 of 8192 bytes

ERROR:  could not read block 43775860 of relation 1663/11511/24873: read
only 4096 of 8192 bytes

do you know the process i should follow to diagnose and repair?


--
View this message in context: http://www.nabble.com/error-on-vacuum---could-not-read-block-tp20490557p20490557.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: error on vacuum - could not read block

От
Alan Hodgson
Дата:
On Thursday 13 November 2008, "glok_twen" <glok_twen@yahoo.com> wrote:
> INFO:  vacuuming "public.monthly_res_01"
>
> ERROR:  could not read block 43775860 of relation 1663/11511/24873: read
> only 4096 of 8192 bytes
>
> ERROR:  could not read block 43775860 of relation 1663/11511/24873: read
> only 4096 of 8192 bytes
>
> do you know the process i should follow to diagnose and repair?

You have an underlying hardware issue that needs to be repaired. Then you'll
probably need to recover at least this table from a backup.


--
Alan