From: Volker <arendt@wiwi.uni-wuppertal.de>
To: pgsql-admin@postgresql.org
Subject: Re: Server Down problem
Date: Fri, 25 Aug 2006 11:13:41 +0200
Message-ID: <ecmeo3$2srq$1@news.hub.org> (raw)
In-Reply-To: <19002.1156343510@sss.pgh.pa.us>
References: <ech48l$19jl$1@news.hub.org>
<19002.1156343510@sss.pgh.pa.us>
Hi tom,
the database is on a mountable volume. So that could be our problem.
Reading your comments i would like to know if an automatic initdb on
postmaster startup can be disabled.
Is this possible?
We would receive a severe postmaster error, but this would be expected
behaviour in case that the mountable volume is temporarily unavailable.
Volker
> It looks to me like pg_control is quite out of sync with the files in
> pg_xlog. pg_control claims to have checkpointed as recently as 16-Aug
> but there is no file newer than 7-Aug in pg_xlog. The other thing that
> is strange is that the filename numbers in pg_xlog correspond to WAL
> locations much higher than what pg_control claims is the end of WAL.
>
> Is $PGDATA kept on a dismountable volume (ie, not the root disk)?
> If so it might be a good idea to unmount the volume and look to see
> if there's anything under the mount point. I recall having seen
> corruption that came from trying to start Postgres before the $PGDATA
> disk had been mounted --- the initscript happily initdb'd a new database
> under the mount-point directory, and then when the main disk did come up
> things were badly hosed because the server was working with a pg_control
> in memory that was completely out of sync with everything else. This
> looks a bit like that might have happened here.
>
> As far as running pg_resetxlog goes, there is advice about setting the
> parameters in recent releases' documentation; try
> http://developer.postgresql.org/docs/postgres/app-pgresetxlog.html
> for the latest. (Some of the parameters mentioned don't exist in
> 7.4; just ignore 'em.) I'm afraid though that you may have actual
> database corruption. If so pg_resetxlog won't fix it.
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: arendt@wiwi.uni-wuppertal.de
Subject: Re: Server Down problem
In-Reply-To: <ecmeo3$2srq$1@news.hub.org>
References: <ech48l$19jl$1@news.hub.org> <19002.1156343510@sss.pgh.pa.us> <ecmeo3$2srq$1@news.hub.org>
* 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