Re: File System backup

From: Alban Hertroys <haramrae(at)gmail(dot)com>
To: itishree sukla <itishree(dot)sukla(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: File System backup
Date: 2013-06-21 18:00:42
Message-ID: 80315761-E81A-4824-A568-D672DB7E933A@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Jun 21, 2013, at 12:53, itishree sukla <itishree(dot)sukla(at)gmail(dot)com> wrote:

> Hi all,
>
> Can any one give me more suggestion, about this problem. Every time my os got restart, postmaster.pid is missing.

Did you perhaps use reboot instead of shutdown -r? The former doesn't do a clean shutdown. That's how it is on *BSD at least, I don't know about Linux but I assume it behaves the same.

> After that createing postmaster.pid is also not helping to start the server.

Ehrm no, the opposite in fact. If the postmaster PID exists, the postmaster won't start because having multiple postmasters running would get you data corruption.

> I am using postgresql 9.2 in ubuntu, with default installation. Is there any possibility i can take the Data directory backup, and install postgresql server, then restore Data directory. Will it work to get back my databases.

What do you hope to accomplish by reinstalling the software? That's most likely not where the problem is.

Check the logs to see if there are any errors when postgres tries to start up. It could be something as simple as a library version mismatch, or it could be data corruption in the database files.

What file-system is the database on? Is it possible a journal rollback caused inconsistency in the database?

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2013-06-21 18:05:47 Re: 9.3-beta postgres-fdw COPY error
Previous Message Lonni J Friedman 2013-06-21 17:56:47 Re: 9.3-beta postgres-fdw COPY error