Re: [ADMIN] vacuum ran out of space and now i cant get back into db

From: Rick Apichairuk <rapichai(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [ADMIN] vacuum ran out of space and now i cant get back into db
Date: 2005-02-04 17:55:39
Message-ID: 9776bb6605020409555528d552@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Hi,

On Thu, 03 Feb 2005 10:03:34 -0600, Pam Eggler <peggler(at)hotmail(dot)com> wrote:
> I noticed I was running low on space on my system, so I found this vacuum
> command. I ran it and it failed because it ran out of space:
>
> vacuum mytable;
> FATAL 2: ZeroFill failed to write
> /var/lib/pgsql/data/pg_xlog/xlogtemp.23895: No space left on device
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> The connection to the server was lost. Attempting reset: NOTICE: Message
> from PostgreSQL backend:
> The Postmaster has informed me that some other backend
> died abnormally and possibly corrupted shared memory.
> I have rolled back the current transaction and am
> going to terminate your database system connection and exit.
> Please reconnect to the database system and repeat your query.

I would check your disk space and make sure that you did not run out.
Maybe your var partition is too small. Also you might want to look at
this url: http://www.issociate.de/board/goto/577586/Vacuum_full_-_disk_space_eaten_by_WAL_logfiles.html#msg_577586

> I cleared out that dir and then tried to go back into my database and I get
> this error:
>
> psql fsp
> psql: could not connect to server: No such file or directory
> Is the server running locally and accepting
> connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
>
> Help?

Postgresql is not running anymore. You have to restart it. How you
would do that depends on the operating system you are using. But
usually the startup scripts are in either /etc/rc.d or
/usr/local/etc/rc.d. You could also use the postmaster or pg_ctl to
start it up manually. Read the man pages on what options to pass. I
hope this helps.

Sincerely,

Rick Apichairuk

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Gary Jackson 2005-02-04 18:41:14 Re: Downlevel database
Previous Message Tom Lane 2005-02-04 17:08:25 Re: Downlevel database

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-02-04 17:56:37 Re: Duration between two timestamps
Previous Message Bricklen Anderson 2005-02-04 17:55:00 Re: Questions about functionality