Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id E489E9ED582 for ; Wed, 7 Dec 2011 19:41:20 -0400 (AST) Received: from gwmta.wicourts.gov ([165.219.244.99] helo=gw.wicourts.gov) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RYR72-00072W-Np for pgsql-admin@postgresql.org; Wed, 07 Dec 2011 23:41:21 +0000 Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 07 Dec 2011 17:41:07 -0600 Message-Id: <4EDFA52F0200002500043A8A@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 07 Dec 2011 17:41:03 -0600 From: "Kevin Grittner" To: ,"jkells" Subject: Re: bad block problem References: <1OQDq.131420$034.90105@en-nntp-06.dc1.easynews.com> In-Reply-To: <1OQDq.131420$034.90105@en-nntp-06.dc1.easynews.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Pg-Spam-Score: -5.4 (-----) X-Archive-Number: 201112/55 X-Sequence-Number: 38813 jkells 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