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 1foA21-0006Iz-5N for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Aug 2018 16:12:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1foA1x-0002nF-9R for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Aug 2018 16:12:49 +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 1foA1w-0002n8-Vh for pgsql-bugs@lists.postgresql.org; Fri, 10 Aug 2018 16:12:49 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1foA1u-00045J-10 for pgsql-bugs@postgresql.org; Fri, 10 Aug 2018 16:12:47 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1foA1t-00053M-4H; Fri, 10 Aug 2018 12:12:45 -0400 Date: Fri, 10 Aug 2018 12:12:45 -0400 From: Bruce Momjian To: DEGLAVE Remi Cc: "pgsql-bugs@postgresql.org" Subject: Re: [PG_UPGRADE] 9.6 to 10.5 Message-ID: <20180810161245.GA7815@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Aug 10, 2018 at 12:51:29PM +0000, DEGLAVE Remi wrote: > The source cluster was not shut down cleanly. > > Failure, exiting > > > > I tried to restart and shutdown clusters with another methods (-m options of > pg_ctl, killing processes, …) still have the same issue. There is new code in PG 10.5 thta detects that the server is cleanly shut down. You can no longer use '-m immediate' to shut down either server, but 'smart' and 'fast' should be fine. Can you run pg_controldata on each cluster before you run pg_upgrade to verify that they say "Shutdown": $ pg_controldata /u/pg/data ... Database cluster state: shut down --------- -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +