Unix Technical Forum

How to recover space from a failed cluster

This is a discussion on How to recover space from a failed cluster within the pgsql Novice forums, part of the PostgreSQL category; --> I have a postgres 8.1 database running under FC4 x86_64. While I was clustering a table, the machine died ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 09:22 PM
s anwar
 
Posts: n/a
Default How to recover space from a failed cluster

I have a postgres 8.1 database running under FC4 x86_64. While I was
clustering a table, the machine died (kernel/hardware issue). When I
restarted the machine, the space used by postgres during the cluster
operation was still in use. I would like to release this space and reissue
the cluster. Figuring that a vacuum may release the space, I started a
"vacuum verbose" on the database a couple of days ago. It produced a few
messages shortly after starting the vacuum but there are no new progress
messages for over two days and I am becoming impatient. The postgres vacuum
process is currently pinned at 80%. I am wondering if the vacuum is still
occurring or is it stalled? How far along is it? Is there another way of
releasing this space short of doing a dump+restore. Here are the messages
generated thus far by postgres:

INFO: "big_data6": found 0 removable, 333573644 nonremovable row versions
in 34451403 pages
DETAIL: 0 dead row versions cannot be removed yet.
Nonremovable row versions range from 132 to 2032 bytes long.
There were 0 unused item pointers.
Total free space (including removable row versions) is 15031961828 bytes.
0 pages are or will become empty, including 0 at the end of the table.
23010625 pages containing 13911976044 free bytes are potential move
destinations.
CPU 1457.42s/217.69u sec elapsed 11557.92 sec.
INFO: index "big_data6_detid_key" now contains 333573644 row versions in
914628 pages
DETAIL: 0 index pages have been deleted, 0 are currently reusable.
CPU 58.03s/10.28u sec elapsed 383.37 sec.
INFO: index "big_data6_region_detid" now contains 333573644 row versions in
914628 pages
DETAIL: 0 index pages have been deleted, 0 are currently reusable.
CPU 54.70s/9.62u sec elapsed 348.09 sec.


Thanks.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 09:23 PM
Tom Lane
 
Posts: n/a
Default Re: How to recover space from a failed cluster

s anwar <sanwar@gmail.com> writes:
> I have a postgres 8.1 database running under FC4 x86_64. While I was
> clustering a table, the machine died (kernel/hardware issue). When I
> restarted the machine, the space used by postgres during the cluster
> operation was still in use.


That would be in the form of a file that's not referenced by any value
of pg_class.relfilenode. I think you have to find and delete the file
by hand --- there is not any automated mechanism for this. See
http://www.postgresql.org/docs/8.1/static/storage.html

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com