Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1CAA41337B3E for ; Thu, 31 Mar 2011 10:41:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 42693-09 for ; Thu, 31 Mar 2011 13:41:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from stan.prospectivdirect.com (mail.prospectiv.com [155.212.59.212]) by mail.postgresql.org (Postfix) with SMTP id B83B01337B82 for ; Thu, 31 Mar 2011 10:41:27 -0300 (ADT) Received: (qmail 28063 invoked from network); 31 Mar 2011 13:41:28 -0000 Received: from unknown (HELO ?192.168.1.87?) (192.168.1.87) by 0 with SMTP; 31 Mar 2011 13:41:28 -0000 Subject: Re: drive failure From: Tony Capobianco To: pgsql-admin@postgresql.org In-Reply-To: <1301575122.2019.2.camel@tony1.localdomain> References: <1301575122.2019.2.camel@tony1.localdomain> Content-Type: text/plain; charset="UTF-8" Date: Thu, 31 Mar 2011 09:41:27 -0400 Message-ID: <1301578887.2019.4.camel@tony1.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 (2.32.2-1.fc14) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/294 X-Sequence-Number: 37166 We were able to determine through a few of our queries that an index was corrupt. We did this through the process of elimination however. As a result, I have two questions: How can I determine that we have a corrupt index? How can I determine which datafile (5875980.x) is related to which tablespace? On Thu, 2011-03-31 at 08:38 -0400, Tony Capobianco wrote: > Hello, > He had a drive fail in an array and the spare kicked in to replace the > failed drive. However, when I query a specific table, I get the below > error: > > ERROR: could not open file > "pg_tblspc/16412/PG_9.0_201008051/16419/5875980.7" (target block > 2968776487): No such file or directory > > > When I change to this directory, the file in question does not exist. > Am I to assume that I'm completely hosed? If the spare kicked in, what > happened to the file listed above? Any hints would be most appreciated. > > Thanks.