From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Matthias Apitz <guru@unixarea.de>
To: Paul Förster <paul.foerster@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: How to move a 11.4 cluster to another Linux host, but empty?
Date: Sat, 2 May 2020 07:59:50 -0700
Message-ID: <48137a5a-3bfe-500d-0d8a-7dc96b12ac37@aklaver.com> (raw)
In-Reply-To: <20200502143031.GA16477@c720-r342378>
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>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, guru@unixarea.de, paul.foerster@gmail.com
Subject: Re: How to move a 11.4 cluster to another Linux host, but empty?
In-Reply-To: <48137a5a-3bfe-500d-0d8a-7dc96b12ac37@aklaver.com>
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>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox