Re: Linux in-place upgrade - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Linux in-place upgrade
Date
Msg-id d64e4eb55d54623550db9ccbe54699605029752e.camel@cybertec.at
Whole thread Raw
In response to Linux in-place upgrade  (Murthy Nunna <mnunna@fnal.gov>)
Responses RE: Linux in-place upgrade  (Murthy Nunna <mnunna@fnal.gov>)
Re: Linux in-place upgrade  (Jim Mlodgenski <jimmy76@gmail.com>)
List pgsql-admin
On Mon, 2023-06-26 at 17:13 +0000, Murthy Nunna wrote:
> We are planning an in-place upgrade of Linux level from RHEL 7 to RHEL 8 or RHEL 9.
> We have several PG clusters running on this server using different versions of postgres (pg12, pg13 and pg14).
>  
> We have couple of plans:
>  
>    1. Shutdown clusters, unmount disks that contain postgres data and wals, upgrade Linux,
>       remount postgres disks and restart postgres clusters
>    2. Same as above but reinstall postgres (pg12, pg13 and pg14) before restarting postgres clusters
>  
> Questions:
>    1. Will 1 or 2 or both above work?
>    2. Is there any official documentation above OS upgrades?

The documentation is here:
https://www.postgresql.org/docs/current/upgrading.html

It depends on how you installed PostgreSQL.  If you used binary packages, Option 1 should work fine.

Don't forget to reindex all indexes on strings!

Yours,
Laurenz Albe



pgsql-admin by date:

Previous
From: Murthy Nunna
Date:
Subject: Linux in-place upgrade
Next
From: Murthy Nunna
Date:
Subject: RE: Linux in-place upgrade