Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYdvv-0001nS-79 for pgsql-general@arkaria.postgresql.org; Tue, 12 May 2020 23:03:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYdvt-0000dz-Jv for pgsql-general@arkaria.postgresql.org; Tue, 12 May 2020 23:03:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYdvt-0000bx-Br for pgsql-general@lists.postgresql.org; Tue, 12 May 2020 23:03:29 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYdvm-0002n2-3V for pgsql-general@postgresql.org; Tue, 12 May 2020 23:03:28 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D3B6B1EC; Tue, 12 May 2020 19:03:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 12 May 2020 19:03:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=m ygsfiKhn1gt6EyizhgQ34Kbx14uqGmPgrT345bwa0Q=; b=jLjoJNzIWlExsqFVQ 3/lC63aWPcqx6HkR85Z9rEccQWBTYZhAv1WeJoZSzg3ktDEIonJozpOrUzwLTnbK 1RvW3H2OBr/4v4UQ485sADmKwqPW7AuDyg1//KLRliS7/iWKOFCq/NkiarSK6sSE lpduajwWxHVWN88ahBBXcBhQPZyOx7h6QVhZXX/QjrUft0JsuGJHuQN+XSb5YIQZ K671tLFyj7Qsfd8jluSa6z8q0u6DTWBX40jjzMpuirSm8LlHUyJA8NCATXbcztg0 M96ZzBnDzqZW4efw3T5DBNMjqzVc7lhUIfHdOYNpW7NQVbqp5nP7vgwjvFqHb5Jz 5UcIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=mygsfiKhn1gt6EyizhgQ34Kbx14uqGmPgrT345bwa 0Q=; b=vITgbD5m9jsbB7+h3kXvx8CpHPX9AN7tLVZuKZ0UbZJTHtGatoxhBDtUW 0DjkO9Y2CBffb7k8SCME++TFudT60DjFYoFzvUNCCPkCe6wsleqR4+/fnuhH9sX1 wuIat1P+6o51WxpJvQfUk2qVxPLlJDv/dZ88xqpJezHkfZzcQGKyTRG9b4nvqSXY kcf/wM/1DC4Ma9JP5Y92csWytn8Jb2TA2UOGLetRISipqoC4XvYxsTnZ2+laNXdG pGXlKQKuZWAfb6Wg375qQk+/BRlRMDVNADj4fsl/RQDOfNRIW0UEbdAvYf2ro/IU gHDGJLOvTqB9NyQwcthtZUNITFP5w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrleefgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpedvveehteeiie elgfdtteduiefftddtjefhvedugefgjeekvdeghedvjeffffdthfenucffohhmrghinhep phhoshhtghhrvghsqhhlqdgrrhgthhhivhgvrdhorhhgpdhpohhsthhgrhgvshhqlhdroh hrghenucfkphepjeehrddujedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvh gvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id CCCD430662E0; Tue, 12 May 2020 19:03:18 -0400 (EDT) Subject: Re: Upgrade Process Says "The database server was not shut down cleanly" but it was To: TalGloz , pgsql-general@postgresql.org References: <1588542797966-0.post@n3.nabble.com> <1588543907769-0.post@n3.nabble.com> <1f509a30-e09f-d0bd-e48f-994146a1fb08@aklaver.com> <1589233550808-0.post@n3.nabble.com> <7156bf5e-ab7c-2156-8f66-c529b96141eb@aklaver.com> <1589320265473-0.post@n3.nabble.com> From: Adrian Klaver Message-ID: <1d7bdbd7-fd7c-54c2-f5d2-e972c5daa814@aklaver.com> Date: Tue, 12 May 2020 16:03:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <1589320265473-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/12/20 2:51 PM, TalGloz wrote: > Adrian Klaver-4 wrote >> On 5/11/20 2:45 PM, TalGloz wrote: >>> Well I tried your steps, both Postgres 10 and 12 are in perfect running >>> conditions and were shut down using the "systemctl" command. When I >>> execute: >>> >>> /usr/pgsql-12/bin/pg_upgrade --old-bindir=/usr/pgsql-10/bin/ >>> --new-bindir=/usr/pgsql-12/bin/ --old-datadir=/var/lib/pgsql/10/data >>> --new-datadir=/var/lib/pgsql/12/data --old-options '-c >>> config_file=/var/lib/pgsql/10/data/postgresql.conf' --new-options '-c >>> config_file=/var/lib/pgsql/12/data/postgresql.conf' --check >>> >>> I get: >>> >>> Performing Consistency Checks >>> ----------------------------- >>> Checking cluster versions >>> ok >>> Checking database user is the install user ok >>> Checking database connection settings ok >>> Checking for prepared transactions ok >>> Checking for reg* data types in user tables ok >>> Checking for contrib/isn with bigint-passing mismatch ok >>> Checking for tables WITH OIDS ok >>> Checking for invalid "sql_identifier" user columns ok >>> Checking for presence of required libraries ok >>> Checking database user is the install user ok >>> Checking for prepared transactions ok >>> >>> *Clusters are compatible* >>> >>> But if I execute the same command right after that without the "--check" >>> flag I get: >>> >>> Performing Consistency Checks >>> ----------------------------- >>> Checking cluster versions ok >>> >>> The target cluster was not shut down cleanly. >>> Failure, exiting >>> >>> >>> Both of the servers were still shut down. If I start form the beginning >>> with >>> a fresh Prostgres 12 installation and execute the upgrade command right >>> away >>> without the "--check" flag I get the problem described in my original >>> post. >> >> How are you installing Postgres? >> >> Are the 10 and 12 packages coming from the same location? >> >>> >>> Best regards, >>> TalGlo >>> >>> >>> >>> -- >>> Sent from: >>> https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html >>> >>> >> >> >> -- >> Adrian Klaver > >> adrian.klaver@ > > > > This is my output for "ps ax| grep post" it is always the same after > shunting down the services. > 11232 pts/0 S+ 0:00 grep --color=auto post > > I've used the same installation steps for both of the instances: > > 1. Add the PostgreSQL Yum Repository (needed to be done once) > 2. Install the desired Postgres instance using "sudo dnf install > postgresqlXX-*" Have you tried the upgrade w/o the --options switches? Do the regular Postgres logs show anything? Have the systemctl scripts been changed? And wild hunch from another thread: "Is there a significant difference in Memory settings between 9.5 and 12" In particular this message: https://www.postgresql.org/message-id/CAEaSS0YDpb_L1Ve%2B4aNhNz7nSN5M%2BEpT9fV8AUuEYnY2tDtuDw%40mail.gmail.com See bottom of message for what OP says about sysctl. > > Best regards, > TalGloz > > > > -- > Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html > > -- Adrian Klaver adrian.klaver@aklaver.com