pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: GB Clark II <postgres@vsservices.com>
To: Nick Fankhauser <nickf@doxpop.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Can't get postmaster to restart after removing WAL files
Date: Sat, 15 Sep 2001 08:04:34 -0500
Message-ID: <0109150804340G.73075@prime.vsservices.com> (raw)
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGOEGIDKAA.nickf@doxpop.com>
References: <NEBBLAAHGLEEPCGOBHDGOEGIDKAA.nickf@doxpop.com>

On Tuesday 11 September 2001 06:04, Nick Fankhauser wrote:
> Hi all-
>
> I caused a crash by filling up the filesystem that pg_xlog lives on whilst
> doing a vacuum analyze. When I looked at the remains, there were 3 WAL
> files out there & no space left.
>
> I tried simply restarting (/etc/init.d/postgresql start) in the hopes that
> the mess would get cleaned, but with no luck. The startup script reported
> success, but no postmaster was running.
>
> I tried removing the WAL files & restarting again with the same results-
> the startup script reports success, but postmaster isn't running.
>
> I'm not worried about the data- this is on a demo system, so I can
> regenerate it quickly, but I can't even get the postmaster started so I can
> begin the restore. I guess I've learned that removing a WAL file is a Bad
> Idea (tm)... but now I need a good idea to get me back to the starting
> point.
>
> Any ideas?
>
> TIA-
>
> -Nick
Nick,

I got bit by the same thing!
Take a look in the contrib directory for pg_resetxlog.  Thats what saved me...

GB

-- 
GB Clark II             | Roaming FreeBSD Admin
gclarkii@VSServices.COM | General Geek 
           CTHULU for President - Why choose the lesser of two evils?



view thread (7+ messages)

Message-ID: <0109150804340G.73075@prime.vsservices.com>
Permalink:  ../0109150804340G.73075@prime.vsservices.com/
Also on:    postgresql.org/message-id/0109150804340G.73075@prime.vsservices.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: postgres@vsservices.com, nickf@doxpop.com
  Subject: Re: Can't get postmaster to restart after removing WAL files
  In-Reply-To: <0109150804340G.73075@prime.vsservices.com>
  References: <NEBBLAAHGLEEPCGOBHDGOEGIDKAA.nickf@doxpop.com> <0109150804340G.73075@prime.vsservices.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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