RE: Linux in-place upgrade

From: Murthy Nunna <mnunna(at)fnal(dot)gov>
To: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: RE: Linux in-place upgrade
Date: 2023-06-26 18:22:38
Message-ID: DM8PR09MB66777FED339730AE34F39790B826A@DM8PR09MB6677.namprd09.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Laurenz -

Thanks for responding. The URL posted is taking me to "19.6. Upgrading a PostgreSQL Cluster"... Is there another one that is meant for OS upgrades. We do not want to upgrade postgres, we just want to upgrade OS only.

Thanks again.

-----Original Message-----
From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Sent: Monday, June 26, 2023 12:36 PM
To: Murthy Nunna <mnunna(at)fnal(dot)gov>; pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Linux in-place upgrade

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://urldefense.proofpoint.com/v2/url?u=https-3A__www.postgresql.org_docs_current_upgrading.html&d=DwIFaQ&c=gRgGjJ3BkIsb5y6s49QqsA&r=0wrsmPzpZSao0v32yCcG2Q&m=dr5mJ5o4-e7RnK5eDhw_s3KXv0QZoDPYsOKPbwrSJET4XBmkr-T3qhnUQCGc_gUS&s=3WcKsIB6Ua9jg6c7THIRy-bJ2ZwZuE4MGlUHtxM-ybs&e=

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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jim Mlodgenski 2023-06-26 18:35:52 Re: Linux in-place upgrade
Previous Message Laurenz Albe 2023-06-26 17:35:45 Re: Linux in-place upgrade