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 1r8ltU-00BaEe-Fr for pgsql-general@arkaria.postgresql.org; Thu, 30 Nov 2023 18:36:13 +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 1r8ltS-00288j-AG for pgsql-general@arkaria.postgresql.org; Thu, 30 Nov 2023 18:36: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 1r8ltQ-00288a-Ex for pgsql-general@lists.postgresql.org; Thu, 30 Nov 2023 18:36:09 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8ltJ-0089A2-CN for pgsql-general@postgresql.org; Thu, 30 Nov 2023 18:36:07 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id 433CF3200A03; Thu, 30 Nov 2023 13:35:58 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 30 Nov 2023 13:35:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1701369357; x=1701455757; bh=2XPEXHulE21i7kAJWPtS4hqkGAp/PIvNscJ NJNhHvV8=; b=Z7V+6hbdCVCyjfJMf6YOrIPKYS6Lj2gCE9oionqqtj0KvF4zvgq bIrViVapa9QK+JdFbmFqo2rK3V/B/1u9PXO3cXflU56tX56OBY18p70GhON0GfBr XkZvZ6BZLfHz04fFKRXvJ3ccGiNZDrMknGCtOV8Kzs/aeyoXdYUAJD8VFl8B6BMf qREce4X6loUpRJyqGKRl9Ck7kMUnvk1a9CongaX8BpVTvyuu7QcFOBGayASKNWok iz7O5LX2PY37xKrfcOXj0NC0coXDBIgX5Sg6xY51RO6utKPwpwdLH8J/YU1cFiGK 65dKemOwAvJ9Ur1uYErjgbBqdX7zH+0yEWA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1701369357; x=1701455757; bh=2XPEXHulE21i7kAJWPtS4hqkGAp/PIvNscJ NJNhHvV8=; b=HKGbTyrRtWN68xAAKyBSqtuh6flMRE24s6AYpUw+MkeQM7F9W+P mp1ZiIDL60fewhnUMtm6s+eIAByqnImg2ABwVOoK7EGEAWXrtR869g1t3MtPas0s o7iCbO7v7ttph03jHib4InWD3CrFelo3WG/R8z375kx6PqnkM6QJDgjpEhEh7n3d EeZGCx47K3dcJIKHCwPIZi3ArM0s2FsIxmHuaFxdQ2n0t66IbRIWRq0U6d1vnfPZ oZ1Tvi+2GRwiZaaGMmDJZ3W8aMVAEk8BWgrqWLjIJGh/7cnd15AloetlD1wTSwc7 zaKvA0NtsVMJ7Vf2T/42xLk1+DP7aoiralQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeijedguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvvehfhfgjtgfgse htkeertddtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghn rdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepfeegfe eiuedtgffgteeggfehkeejheetieeliefgteeikeejvdeiveeigfehvedtnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklh grvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 30 Nov 2023 13:35:57 -0500 (EST) Message-ID: <7280c019-2c61-452c-be52-bf38604df356@aklaver.com> Date: Thu, 30 Nov 2023 10:35:56 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Two started cluster on the same data directory and port To: Loles Cc: PostgreSQL References: <477f32ab-72cc-4888-835a-0f25aa3db705@aklaver.com> <10c26017-62f2-457e-b71c-c53eada6ae5b@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/30/23 09:27, Loles wrote: > root@hostname:~# pg_lsclusters > Ver Cluster  Port Status Owner    Data directory              Log file > *14  main     5432 online* postgres /var/lib/postgresql/14/main > /var/log/postgresql/postgresql-14-main.log > *14  main_old 5432 online *postgres /var/lib/postgresql/14/main > /var/log/postgresql/postgresql-14-main_old.log > > Start, up the two cluster. > Before going any further make sure you have a current backup of the database. Hmm, are /etc/postgresql/14/main/ and /etc/postgresql/14/main_old/ symlinked together? If not what if you move the ~14/main_old/ directory somewhere else and then restart Postgres? Adrian Klaver adrian.klaver@aklaver.com