From: Andreas Kretschmer <andreas@a-kretschmer.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: pg_update to a new machine?
Date: Sat, 24 Feb 2018 09:29:12 +0100
Message-ID: <43ba3bf9-9853-4516-d222-059304aaaba2@a-kretschmer.de> (raw)
In-Reply-To: <09489f15-b756-9e6d-c081-a8cdf0f9b483@cox.net>
References: <09489f15-b756-9e6d-c081-a8cdf0f9b483@cox.net>
Am 24.02.2018 um 04:57 schrieb Ron Johnson:
> The 2.8TB database must be moved to a new server in a new Data Center,
> and upgraded from 8.4.17 to 9.6.6
>
> Will this work?
>
> pg_upgrade
> --old-datadir "CURSERVER://var/lib/pgsql/data"
> --new-datadir "NEWSERVER://var/lib/pgsql/data"
> --old-bindir "CURSERVER://usr/bin"
> --new-bindir "NEWSERVER://usr/bin"
> Or must I:
> 1. temporarily allocate 3TB of scratch space on the new server,
> 2. install 8.4 on the new server,
> 3. install 9.6.6 on the new server,
> 2. rsync CURSERVER://var/lib/pgsql/data to
> NEWSERVER://var/lib/pgsql/8.4/data, and then
> 3. pg_upgrade?
>
> Are there better ways? (The pipe from current DC to new DC will be
> 10Gbps.)
>
it's a big step from 8.4 to 9.6... If you can do that with a downtime i
would prefer dump & restore.
A solution without (big) downtime would be replication with slony or
londiste.
Regards, Andreas
--
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.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: andreas@a-kretschmer.de
Subject: Re: pg_update to a new machine?
In-Reply-To: <43ba3bf9-9853-4516-d222-059304aaaba2@a-kretschmer.de>
References: <09489f15-b756-9e6d-c081-a8cdf0f9b483@cox.net> <43ba3bf9-9853-4516-d222-059304aaaba2@a-kretschmer.de>
* 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