Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzusm-0007oz-B8 for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Sep 2018 02:27:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fzusk-0004dV-4r for pgsql-bugs@arkaria.postgresql.org; Wed, 12 Sep 2018 02:27:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzusj-0004cV-Ri for pgsql-bugs@lists.postgresql.org; Wed, 12 Sep 2018 02:27:54 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzusg-0006J4-4M for pgsql-bugs@lists.postgresql.org; Wed, 12 Sep 2018 02:27:52 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 5572821F3A; Tue, 11 Sep 2018 22:27:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 11 Sep 2018 22:27:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=riasfUGnpBgCnYvnA3iDitUTjTYpxkm7+8iTQXuGzj0=; b=e3lSGemA yuYPAirU2td2a1epgGKWC7MgEl+O0bJBRZct3GKhJnMMSd+/ckgzpg2IQMNhCTbq F41KOohs2rRX5/dD0jNt5MQLbfy3Uu53HexTTQmt4tDa8gATuFGYlTu5TT+YoU/F 7jyn3bOB4hhDmLxW94p9bjmqkMQZimqBqGSyw0KjXVmjGBelXxLAR0HkSstGcp/L AO+R2Lo7tU9CdnMZTdHPhgXyrIUTOdBctblNY74/bWc7NJFNVk+sPMpM5eFrMEDX 7Dn+cY7D65TZVnGWCwVEEk+q0UnePWAwMnx4bslm1xR+LtBiHRETY+DBw7gGy6O0 M6vQINPQSOKeRQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=riasfUGnpBgCnYvnA3iDitUTjTYpx km7+8iTQXuGzj0=; b=flNI1GjqF6y97rIsLqy9xz6wLUANDyD5t7NThStDB64Kf tfi9nrptRQi5kG9OB0nMpWsGrLIDq4qluPnxpENatEjS3AxeyGNsixkWVyOrvA2K ZB2SYj4z4x09rBX9vZt2xyyP/89FJ4SSVAOS0kMrfB9AYIeqoSif68Viw2eVIwyF v9Q8TaPvQgDvixV7OMjRf10suUkgX8fn+jxVFwfxwzeOZpyQ3fKwXkgmvNQjZ5/B lSDWU53mB9yzJVhWNfcXD+kEJUFD3yUbGqnr6xGkHEP1ceu28bqdUg+eDFU6z56K iXot4PMU3ph+21K42sQvYAs/vun7sjCRzs/Gf1nnA== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 88CA8102E6; Tue, 11 Sep 2018 22:27:47 -0400 (EDT) Date: Wed, 12 Sep 2018 11:27:44 +0900 From: Michael Paquier To: kalyani kaniganti Cc: Bruce Momjian , 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. Message-ID: <20180912022744.GE25160@paquier.xyz> References: <20180910161443.GC20064@momjian.us> <20180910164735.GA28597@momjian.us> <20180910174823.GD20064@momjian.us> <20180911023439.GA27769@momjian.us> <20180911161842.GL20064@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ey/N+yb7u/X9mFhi" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --ey/N+yb7u/X9mFhi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --ey/N+yb7u/X9mFhi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAluYeaAACgkQnvQgOdby QH2LShAApbzWjZHvcWwFtihTsJxSAmSWmXkVTOthLlezwwC44KpgOb2c/JEyojcL VBjAvNWjOiydJQwiQDJJ6OtpZpXZz/Vb7UB1nzKg0RvFvPfRgrlcwLllGR9XaU1y 3RbLfrVxkDVZAwHfriL3gUc9Y2ZiHXRGs2Be31r5tr1RKwTOVJkOcOt5U0ZbQZ3l PhgDTQxN8GNWBrVO4pwbzVrXh4pTKt+3scKtHEKRAPr2kwBEEzRHnC0LfRb0b/6c liSDCY1j+6XL5N6Y7jt1X+Q1Cs8jlV4tYvw8waAb3mLesSRKJqHxT6Zv+7W7AXNv fMJA+r8f+U1GmY8FQXEP4vJS0l5X3oKPi+xrsm0aAwFbOK5V1EW/zhJnXlV9KHaN IAOn1g3w9y2WaIOaOQDA2AS09hd52u3mIANvUYtbKAhwpxh2YnL+aSxyA2lEcgPo EHPOIBzB/u63HLCxl/IqTvFIuBieGKGu3Iu0U5d9AqoXCdYjiaaNnsKDk6p+hHaS YYtd9ivIfhdqymrYBSG1j2V5MjRtpdstitotq5Ro9uXC3cmWDD2iLojEReTFrgXi zOFU0tDEMg7/2YiIizYj0xaaBLKt0dMluCDc4nlPjwiPwP7M0BpZCoOVRExpqcW/ 9V/9q30+gUGt+uvnfhvDS/wvr0Xs685keqZDSrzGm1F/g7eYOcI= =0tIM -----END PGP SIGNATURE----- --ey/N+yb7u/X9mFhi--