Re: Database migration across different operating systems

From: Stéphane KANSCHINE <stephane(at)hexack(dot)fr>
To: Natalie Wenz <nataliewenz(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Database migration across different operating systems
Date: 2019-01-08 09:01:44
Message-ID: 20190108090144.rdrtfh6wznoolsww@office.hexack.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Hey !

Le lun. 7 janv., vers 22:51, Natalie Wenz exprimait :
>
> We are in an unusual circumstance, where we need to move all of our
> Postgres 10 databases from their homes on servers running FreeBSD 11
> with ZFS to servers in another data center running Red Hat Linux 7.6
> (also with ZFS), with minimal downtime.
>
> I understand that the recommended, safest, approach would be to
> dump/restore. We intend to do that wherever possible.

It's not anymore since PostgreSQL have logical replication. You can
initialize you FreeBSD cluster with a pg_basebackup and you follow
updates with logical streaming.

> However, we have some databases that require high
> availability/minimal downtime that are also very large. (50 TB, for
> example)

With logical replication, is it's permanently up to date in
miliseconds, you can switch when you want.

> If it helps: The cpu architecture is the same on both hosts, and
> we’ll be running Postgres with the same version and same build
> options.

Your OS or cpu architecture doesn't matter, really :-)

Regards,
--
Stéphane KANSCHINE - https://www.hexack.fr./ - https://www.nuajik.io./
@ stephane(at)hexack(dot)fr
 +33 6 64 31 72 52

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Achilleas Mantzios 2019-01-08 09:05:30 Re: Database migration across different operating systems
Previous Message Stéphane KANSCHINE 2019-01-08 08:50:32 Re: Multiple postgresql clusters with same version and separate binaries