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 1jUxLN-0007Bw-Sy for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 18:58:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUxLL-0003xx-KQ for pgsql-general@arkaria.postgresql.org; Sat, 02 May 2020 18:58:31 +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 1jUxLL-0003xq-D0 for pgsql-general@lists.postgresql.org; Sat, 02 May 2020 18:58:31 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jUxLI-0006XH-Kw for pgsql-general@lists.postgresql.org; Sat, 02 May 2020 18:58:30 +0000 Received: from [188.174.50.249] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1jUxLF-0008OH-81; Sat, 02 May 2020 20:58:25 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id 042IwOuG003833 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 2 May 2020 20:58:24 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id 042IwNR0003832; Sat, 2 May 2020 20:58:23 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sat, 2 May 2020 20:58:23 +0200 From: Matthias Apitz To: Adrian Klaver Cc: Paul =?utf-8?Q?F=C3=B6rster?= , Matthias Apitz , pgsql-general Subject: Re: How to move a 11.4 cluster to another Linux host, but empty? Message-ID: <20200502185823.GA3774@c720-r342378> Reply-To: Matthias Apitz 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> <48137a5a-3bfe-500d-0d8a-7dc96b12ac37@aklaver.com> <84cd86a4-6757-2ae0-74bd-e36e86ee0c45@aklaver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <84cd86a4-6757-2ae0-74bd-e36e86ee0c45@aklaver.com> X-Operating-System: FreeBSD 13.0-CURRENT r342378 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.11.1 (2018-12-01) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.50.249 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El día sábado, mayo 02, 2020 a las 08:23:52a. m. -0700, Adrian Klaver escribió: > On 5/2/20 8:02 AM, Paul Förster wrote: > > Hi Adrian, > > > >> On 02. May, 2020, at 16:59, Adrian Klaver wrote: > >> 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/. > > > > you do the initdb and then copy the *.conf files from the tar over the newly created ones. After that, launch the cluster. > > Yeah I know, I do that on a fairly regular basis. The intent was to let > the OP know that ripping base/ out of cluster and transplanting a new > one in is not possible. OK, lesson learned: Next time I will do a tar backup of PGDATA after the configuration of the cluster and before creating any database in it. Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub