Re: bad block problem

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-admin(at)postgresql(dot)org>,"jkells" <jtkells(at)verizon(dot)net>
Subject: Re: bad block problem
Date: 2011-12-07 23:41:03
Message-ID: 4EDFA52F0200002500043A8A@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

jkells <jtkells(at)verizon(dot)net> wrote:

> I tried to do a cold backup/copy
> cp -r * ../data2/
>
> and received the following from cp
> cp: base/9221176/9221183: I/O error

That sounds like your storage system is failing, quite independently
from PostgreSQL. Copy the entire data directory tree to some other
medium immediately, and preserve this copy. If you hit bad blocks,
retry if possible. If you just can't read some portions of it, you
need to get what you can, and make notes of any garbage or missed
portions of files. Use the copy as a source to copy onto a reliable
storage system.

Without knowing more about what sort of storage system you're
talking about it is hard to give advice or predict whether it might
be fixable somehow. If you try to run a database on failing
hardware, it will not be a pleasant experience.

-Kevin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Walter Hurry 2011-12-08 00:20:40 Re: bad block problem
Previous Message jkells 2011-12-07 22:20:30 Re: bad block problem