pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Corrupt data directory
2+ messages / 2 participants
[nested] [flat]

* Corrupt data directory
@ 2005-02-22 11:09 KÖPFERL Robert <robert.koepferl@sonorys.at>
  2005-02-22 14:33 ` Re: Corrupt data directory Bruno Wolff III <bruno@wolff.to>
  0 siblings, 1 reply; 2+ messages in thread

From: KÖPFERL Robert @ 2005-02-22 11:09 UTC (permalink / raw)
  To: ; +Cc: pgsql-admin

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?



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Corrupt data directory
  2005-02-22 11:09 Corrupt data directory KÖPFERL Robert <robert.koepferl@sonorys.at>
@ 2005-02-22 14:33 ` Bruno Wolff III <bruno@wolff.to>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruno Wolff III @ 2005-02-22 14:33 UTC (permalink / raw)
  To: KÖPFERL Robert <robert.koepferl@sonorys.at>; +Cc: pgsql-admin

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.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-02-22 14:33 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-02-22 11:09 Corrupt data directory KÖPFERL Robert <robert.koepferl@sonorys.at>
2005-02-22 14:33 ` Bruno Wolff III <bruno@wolff.to>

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