pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feeddrive failure
3+ messages / 2 participants
[nested] [flat]
* drive failure
@ 2011-03-31 12:38 Tony Capobianco <tcapobianco@prospectiv.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tony Capobianco @ 2011-03-31 12:38 UTC (permalink / raw)
To: pgsql-admin
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: drive failure
@ 2011-03-31 13:41 Tony Capobianco <tcapobianco@prospectiv.com>
parent: Tony Capobianco <tcapobianco@prospectiv.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tony Capobianco @ 2011-03-31 13:41 UTC (permalink / raw)
To: pgsql-admin
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: drive failure
@ 2011-03-31 15:42 raghu ram <raghuchennuru@gmail.com>
parent: Tony Capobianco <tcapobianco@prospectiv.com>
0 siblings, 0 replies; 3+ messages in thread
From: raghu ram @ 2011-03-31 15:42 UTC (permalink / raw)
To: Tony Capobianco <tcapobianco@prospectiv.com>; +Cc: pgsql-admin
On Thu, Mar 31, 2011 at 7:11 PM, Tony Capobianco <tcapobianco@prospectiv.com
> wrote:
> 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?
>
Yes, this can be achieved by block level checking with pg_dump utility::
pg_dump -d <DB Name> -p <Port> -v >/dev/null
If there is any corrupted indexes or tables exists in the Database, it will
throw an error with block number.
> How can I determine which datafile (5875980.x) is related to which
> tablespace?
>
>
Get oid & Name of the tablespace using below command:
select oid,* from pg_tablespace;
Once you get the oid,tablespace name, you can easily identify the which
datafile is related to which tablespace in "pg_tblspc" directory.
--Raghu Ram
> 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.
>
>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2011-03-31 15:42 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-03-31 12:38 drive failure Tony Capobianco <tcapobianco@prospectiv.com>
2011-03-31 13:41 ` Tony Capobianco <tcapobianco@prospectiv.com>
2011-03-31 15:42 ` raghu ram <raghuchennuru@gmail.com>
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