Database migration across different operating systems - Mailing list pgsql-admin

From Natalie Wenz
Subject Database migration across different operating systems
Date
Msg-id A740E5D2-34BE-46AA-A9FE-50F510E771EC@gmail.com
Whole thread Raw
Responses Re: Database migration across different operating systems  (Robert Simmons <rsimmons514@gmail.com>)
Re: Database migration across different operating systems  (Stéphane KANSCHINE <stephane@hexack.fr>)
Re: Database migration across different operating systems  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Re: Database migration across different operating systems  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-admin
We are in an unusual circumstance, where we need to move all of our Postgres 10 databases from their homes on servers
runningFreeBSD 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.

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

Because we use ZFS on all of our current FreeBSD database hosts, one idea that we are exploring is to use filesystem
replicationto move the data ahead of time, and keep it in sync. Then we could start the databases on the Linux hosts at
anytime and it would be up to date. With that option, there’s almost no downtime.  

We’ve tested this procedure on a small database, and it starts, it runs, returns queries. There seems to be no issues.

Is this a reasonable approach? Are there any known concerns/things to investigate before choosing this course?

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. 

Many thanks,
Natalie

pgsql-admin by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Is there any way that one of the Postgres Background/Utilityprocess may go down?
Next
From: selva kumaran
Date:
Subject: Doubt On JSON in Postgresql