Re: Postgresql 9.3 not coming up after restart in centos

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: "balajishanmugam(at)live(dot)in" <balajishanmugam(at)live(dot)in>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgresql 9.3 not coming up after restart in centos
Date: 2016-01-07 18:22:34
Message-ID: CAOR=d=3UG4-Y7i1eDAA8O5VY4B-uRiVioKzfGiYn=86NfK1_-g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jan 6, 2016 at 2:08 PM, balajishanmugam(at)live(dot)in
<balajishanmugam(at)live(dot)in> wrote:
> Most of the time I will be restarting centOS by issuing reboot command. Which
> will do the orderly shutdown of all the service and sometimes just pull the
> plug.
>
> But the issue appears to be random. Is there a way that before Postgres
> starts we can check whether data is flushed, if not flush it manually or any
> other better way to avoid this issue.

As Adrian mentioned, by the time you go for a startup of pgsql, the
damage is already done during the previous shut down.

The real issue here is that a properly operating server should be able
to have the power plug pulled, and on boot up postgres should be able
to come back up. When pgsql can't come back up, it's usually due to an
unreliable storage subsystem. So what are you using for storage?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Igal @ Lucee.org 2016-01-07 20:32:26 pg_upgrade on Windows
Previous Message Ted Toth 2016-01-07 15:45:12 Re: 9.5rc1 RLS select policy on insert?