Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1smChb-0040ok-1z for pgsql-docs@arkaria.postgresql.org; Thu, 05 Sep 2024 13:39:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1smChZ-00AZ52-Kd for pgsql-docs@arkaria.postgresql.org; Thu, 05 Sep 2024 13:39:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1smChZ-00AZ4V-D1 for pgsql-docs@lists.postgresql.org; Thu, 05 Sep 2024 13:39:09 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1smChT-000HaB-15 for pgsql-docs@lists.postgresql.org; Thu, 05 Sep 2024 13:39:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 485Dd2RY1827653; Thu, 5 Sep 2024 09:39:02 -0400 From: Tom Lane To: Alain Bourgeois cc: "pgsql-docs@lists.postgresql.org" Subject: Re: pg_upgrade -c cannot be run if old cluster is running In-reply-to: References: <172546462173.8361.7114078895863039790@wrigleys.postgresql.org> <1692842.1725482754@sss.pgh.pa.us> Comments: In-reply-to Alain Bourgeois message dated "Thu, 05 Sep 2024 09:24:50 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1827651.1725543542.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 05 Sep 2024 09:39:02 -0400 Message-ID: <1827652.1725543542@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alain Bourgeois writes: > /usr/lib/systemd/system/postgresql-10.service has PGDATA=3D/var/lib/pgsq= l/10/data/, /var/lib/pgsql/10/data/postgtresql.conf holds data_directory =3D= '/mnt/pgdata/pgdir' This is probably the source of your problem. IIRC, pg_upgrade needs to be pointed at the actual old data directory, not PGDATA=3D/var/lib/pgsql/10/data. regards, tom lane