pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: kalyani kaniganti <kalyanithumati@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error The source cluster was not shut down cleanly.
Date: Wed, 12 Sep 2018 11:27:44 +0900
Message-ID: <20180912022744.GE25160@paquier.xyz> (raw)
In-Reply-To: <CACAAi_6c4hhhxFnUnerrBsfkS1+9CFBt79ORgp_8m6+Snck0Qw@mail.gmail.com>
References: <20180910161443.GC20064@momjian.us>
	<20180910164735.GA28597@momjian.us>
	<CACAAi_5FnpZOjgbkUG9cM6RaKDUFNEZHi7Dt2qjQ5ueNTJtaow@mail.gmail.com>
	<20180910174823.GD20064@momjian.us>
	<CACAAi_4hHwkpjC4Qavsx3MpVEBDD_4=sDddnSRD681U2Y=5Lzg@mail.gmail.com>
	<20180911023439.GA27769@momjian.us>
	<CACAAi_45KJ2SXLPWGQSKVVGRBzq_DEYxTPt9Qj50e0TPMxVLzg@mail.gmail.com>
	<20180911161842.GL20064@momjian.us>
	<CACAAi_4zrTaGYqsc28SkcyiNdo7ECSVuap4FNG51tOPX4+YuJg@mail.gmail.com>
	<CACAAi_6c4hhhxFnUnerrBsfkS1+9CFBt79ORgp_8m6+Snck0Qw@mail.gmail.com>

On Wed, Sep 12, 2018 at 06:51:44AM +0530, kalyani kaniganti wrote:
> I have a query,in our case old db is not getting shutdown cleanly .May I
> know why the DB is unable to shutdown cleanly and this happens repeatedly
> .How we can recover the cluster state going to in production state after
> stopping the cluster.

If one of your PostgreSQL instances is not able to stop, its logs would
tell you what it did not have time to finish.  You may perhaps blame the
time it takes for the shutdown checkpoint to finish.  You should also
try to use the fast mode of "pg_ctl stop", which makes sure that all
sessions connected are forcibly finished cleanly, allowing Postgres to
not need crash recovery the next time it starts.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (24+ messages)  latest in thread

Message-ID: <20180912022744.GE25160@paquier.xyz>
Permalink:  ../20180912022744.GE25160@paquier.xyz/
Also on:    postgresql.org/message-id/20180912022744.GE25160@paquier.xyz

 · 

reply

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-bugs@postgresql.org
  Cc: michael@paquier.xyz, kalyanithumati@gmail.com, bruce@momjian.us
  Subject: Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error The source cluster was not shut down cleanly.
  In-Reply-To: <20180912022744.GE25160@paquier.xyz>
  References: <20180910161443.GC20064@momjian.us> <20180910164735.GA28597@momjian.us> <CACAAi_5FnpZOjgbkUG9cM6RaKDUFNEZHi7Dt2qjQ5ueNTJtaow@mail.gmail.com> <20180910174823.GD20064@momjian.us> <CACAAi_4hHwkpjC4Qavsx3MpVEBDD_4=sDddnSRD681U2Y=5Lzg@mail.gmail.com> <20180911023439.GA27769@momjian.us> <CACAAi_45KJ2SXLPWGQSKVVGRBzq_DEYxTPt9Qj50e0TPMxVLzg@mail.gmail.com> <20180911161842.GL20064@momjian.us> <CACAAi_4zrTaGYqsc28SkcyiNdo7ECSVuap4FNG51tOPX4+YuJg@mail.gmail.com> <CACAAi_6c4hhhxFnUnerrBsfkS1+9CFBt79ORgp_8m6+Snck0Qw@mail.gmail.com> <20180912022744.GE25160@paquier.xyz>

* 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