From: Bruno Wolff III <bruno@wolff.to>
To: KÖPFERL Robert <robert.koepferl@sonorys.at>
Cc: pgsql-admin@postgresql.org
Subject: Re: Corrupt data directory
Date: Tue, 22 Feb 2005 08:33:37 -0600
Message-ID: <20050222143337.GA22550@wolff.to> (raw)
In-Reply-To: <ED4E30DD9C43D5118DFB00508BBBA76EB165D5@neptun.sonorys.at>
References: <ED4E30DD9C43D5118DFB00508BBBA76EB165D5@neptun.sonorys.at>
On Tue, Feb 22, 2005 at 12:09:28 +0100,
KÖPFERL Robert <robert.koepferl@sonorys.at> wrote:
> Hi,
> what is to do if somehow, someif the data directory went corrupt?
> (kill -9, Plug out)
> Are there any tools or other ways to rescue that or is the only way
> rm *; initdb
> and restore a backup?
You just restart postgres. It will clean up properly.
Note this assumes that you haven't disabled fsync or left write caching
on for your disk drives.
If a disk drive actually goes bad (or enough drives to lose a raid array),
then you need to go to backups.
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: bruno@wolff.to, robert.koepferl@sonorys.at
Subject: Re: Corrupt data directory
In-Reply-To: <20050222143337.GA22550@wolff.to>
References: <ED4E30DD9C43D5118DFB00508BBBA76EB165D5@neptun.sonorys.at> <20050222143337.GA22550@wolff.to>
* 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