pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: pgsql-admin@postgresql.org
To: jkells <jtkells@verizon.net>
Subject: Re: bad block problem
Date: Wed, 07 Dec 2011 17:41:03 -0600
Message-ID: <4EDFA52F0200002500043A8A@gw.wicourts.gov> (raw)
In-Reply-To: <1OQDq.131420$034.90105@en-nntp-06.dc1.easynews.com>
References: <1OQDq.131420$034.90105@en-nntp-06.dc1.easynews.com>

jkells <jtkells@verizon.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



view thread (8+ messages)  latest in thread

Message-ID: <4EDFA52F0200002500043A8A@gw.wicourts.gov>
Permalink:  ../4EDFA52F0200002500043A8A@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4EDFA52F0200002500043A8A@gw.wicourts.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, jtkells@verizon.net
  Subject: Re: bad block problem
  In-Reply-To: <4EDFA52F0200002500043A8A@gw.wicourts.gov>
  References: <1OQDq.131420$034.90105@en-nntp-06.dc1.easynews.com> <4EDFA52F0200002500043A8A@gw.wicourts.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox