From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: mbroers@gmail.com
To: pgsql-admin@postgresql.org
Subject: Re: starting postgres with an empty px_xlog folder
Date: Sat, 23 Jun 2012 14:45:30 -0500
Message-ID: <4FE5D68A0200002500048A32@gw.wicourts.gov> (raw)
Mike Broers wrote:
> Mike Broers wrote:
>> We shut down our postgres 8.3 server last night cleanly for some
>> hosted services maintenance. When we got our server back, it didnt
>> have the pg_xlog mount with files and now when we start the
>> server, it complains
>> Since we had a clean shut down is there an easy or relatively
>> clean way to start back up? the pg_xlog folder is there, just with
>> no files. i wouldnt think it would be needed for a clean restart.
It is.
> I was able to duplicate the error in a test environment and get the
> database started back up wtih the pg_resetxlog $PGDATA command, but
> i am concerned about the fallout and not sure if i need to use any
> of the option switches. We also have archived log files up to the
> point of server shutdown if that provides a better option.
I would make a copy of the directory tree of the database cluster
while the server is stopped before attempting any recovery.
http://wiki.postgresql.org/wiki/Corruption
The archived WAL files, may provide a better option that
pg_resetxlog.
If it were my data, I would be inclined to use pg_dump to create a
fresh version of the database after recovery, although if you really
have a full set of archived WAL files and the server starts up
without any indications of problems in the server log, you might be
OK without doing that.
As previously stated, make sure you understand how this happened, so
you can make sure it doesn't happen again. The contents of the
pg_xlog directory are an integral part of your database cluster.
-Kevin
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: Kevin.Grittner@wicourts.gov, mbroers@gmail.com
Subject: Re: starting postgres with an empty px_xlog folder
In-Reply-To: <4FE5D68A0200002500048A32@gw.wicourts.gov>
References: <4FE5D68A0200002500048A32@gw.wicourts.gov>
* 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