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 1jUtd4-0006FM-Hb for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 15:00:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUtcW-0004eo-VL for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 15:00:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUtcU-0004eg-SV for pgsql-general@lists.postgresql.org; Sat, 02 May 2020 15:00:00 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUtcR-0004Vn-0s for pgsql-general@lists.postgresql.org; Sat, 02 May 2020 14:59:57 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 31415537; Sat, 2 May 2020 10:59:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 02 May 2020 10:59:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=5 Lv0YGx2qzBwuOfPHJRtKe5ZeU/q0YJ6eS6R/6rThks=; b=vuY4A2X+9bB+ol+GD D+13NPdWOS139YbJsiozKUdTYmalHoPn4BaB3n2PoYQv42xUt7Ml/Z2XkVaTyY+R ITE+ICbIbrv4nhSWmX6PRcgY4P9ZpNN2a0GcydLKp3DO6Y+1HFSNwuLuIe39YaMX Fyud4Gi9kDIrRdAiV5bD6JuGQIjKuGBh4ItMpI6/gEjAEXBdT7AtmOQdNz6NBMww gtBURJd0S67HDNvtUogOvSlykqXR08cQzZVqQLUSflvqLe2Fx+RXKwOA92mw2azO bopcnql1pXR4uAXBpV75zQT6Wq8QEsQwL9VmeBBo2I5ubZA7SXn6zgAj53GTkEvU 2RlqA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=5Lv0YGx2qzBwuOfPHJRtKe5ZeU/q0YJ6eS6R/6rTh ks=; b=IQtgl9+Sk9gIscL2QOgfDJ6s/kN6J1WKKkvkEEaJRJTIex/HMpofc/cbs U+k+GEIwL9s9RPtWMuuuK2KI12sS8Wwoa0TMwJY/ucEnFDUjIoF/DZFoBzdEMDQ5 tFEo7VcYqhL2Ctzsa9l2AgSvqvB9AmyYN5WIWe8Bwc3/rbt6ZfVI92bA0zAbqmVY K+Dy+NdRLv/pSLfZymXpjXnK6hjVcSIRbcfCvFLgv79ChidDK6Hydtx3Crg0h5h2 BOe5JAs3Pl2T/cB3oyDs4Eyo1vX1UczOSrLw3Nu5gLWmy+Sxw3o83plYPEt8deBX 2x78pFLdogl1uR/j0ROfRpQMTIimw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieelgdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeevveefveefue egffekkefhgeeiueffgfetueejvdfghfeujeejhfekjeelgedtgeenucfkphepjeehrddu jedvrdehrddvfedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh 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 A084E328005D; Sat, 2 May 2020 10:59:51 -0400 (EDT) Subject: Re: How to move a 11.4 cluster to another Linux host, but empty? To: Matthias Apitz , =?UTF-8?Q?Paul_F=c3=b6rster?= Cc: pgsql-general References: <20200501081029.GA3261@c720-r342378> <999AE92C-F74D-4399-8FE1-1DB80D08915D@gmail.com> <20200501083148.GA3595@c720-r342378> <20200502102329.GA14178@c720-r342378> <6DC33DF2-120E-4EA7-B764-F1770EB66EE9@gmail.com> <20200502143031.GA16477@c720-r342378> From: Adrian Klaver Message-ID: <48137a5a-3bfe-500d-0d8a-7dc96b12ac37@aklaver.com> Date: Sat, 2 May 2020 07:59:50 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200502143031.GA16477@c720-r342378> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/2/20 7:30 AM, Matthias Apitz wrote: > El día sábado, mayo 02, 2020 a las 03:23:52p. m. +0200, Paul Förster escribió: > >> /usr/local/sisis-pap/pgsql <= software with bin, lib64, share, etc... >> /data/postgresql11/data <= PGDATA > > Exactly, his is the setup above. > > I will move /usr/local/sisis-pap/pgsql by tar; and I want to move some parts(!) > of the cluster /data/postgresql11/data (configuration etc.), but not the databases > included in /data/postgresql11/data, like the cluster(!) in PGDATA was before having > created any database(!) in it. That won't work for the following reasons: 1) A lot of the files/dirs included in /data/postgresql11/data are specific to the files in /data/postgresql11/data/base as they where created over time. They will fail when you try to merge them with new data. More importantly see 2) below. 2) To create a new base/ you will need to initdb data/ and that is not possible as initdb will not work on a populated data/. > > As I said from the beginning: moving the cluster but without the > databases in it. > > Thanks > > matthias > -- Adrian Klaver adrian.klaver@aklaver.com