Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sy5eP-00EFsa-Qs for pgsql-admin@arkaria.postgresql.org; Tue, 08 Oct 2024 08:33:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sy5eN-005H6q-CI for pgsql-admin@arkaria.postgresql.org; Tue, 08 Oct 2024 08:32:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sy5eN-005H6h-16 for pgsql-admin@lists.postgresql.org; Tue, 08 Oct 2024 08:32:59 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sy5eK-003AAb-Qp for pgsql-admin@lists.postgresql.org; Tue, 08 Oct 2024 08:32:58 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-5c8784e3bc8so7353704a12.1 for ; Tue, 08 Oct 2024 01:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728376375; x=1728981175; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=r33nZlaO0O0Bw6tjAPYxpbt4H2dTs/UPlL/Sm/f/3o4=; b=DjI9KpaMNyUOLupSgOslpQdhIe/ue/IPbhfM1jfwPazNRcuYnU4Qv2L26lSAiN1wv9 UuyWXIn1tocmxc8omBGl98J6XpNchoXTroaFHFZGoaPDWC2LK0JR0mJMbid8S/uS8D4t 6Qe18V0RAph7HE94xnQGKbbsCFrFMEF/bTgyIBg0E2ATgSDmE1mOIlJ/9ZMywadCWIyb aMuNC77IEbOu1gmjEm+w8eBss+fqwv5NF7pwBNOt03ieIYV5DeXZXg3XD/TI54ECtVs0 4Fd8dhbkIbThE/QaYwIkVZWuPcxK2a7MxLs/LLSWrlwT1pfsaVgCZcBPuxxcUEOdRHgH 8HDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728376375; x=1728981175; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=r33nZlaO0O0Bw6tjAPYxpbt4H2dTs/UPlL/Sm/f/3o4=; b=i4ILWX8fxKFvSvlT0nIbwMQR7V6dpWBE5Vf9PdMeVy4dke5RbdHBsEParKSSQRckJA 8FWaIQx/kTHMX+YjjbHVRy7gf/n9709P2a4Lelc34N0RLNepvhtCF5V2b48gDuLrTNyX cJFQ++d5Nj717WGFcsNnb7pKvc5Id9W37NgOSZJbG11D8gygQX5eS8T31SFhzc6Rsw4m IYjYGXtJqUbmebzSq9Mj8c6C3if4DcPVNwTCujOFsCzj5iNn5HfbhRzgJqJwD+TiGUTS ecZbsz4QNU46dKlzl8GIaVteAUSzKBQ7xatyS9segod5dGEL3K5SipSeV/NNMg6mwL5S MLcQ== X-Gm-Message-State: AOJu0Yykhj9a9akJB7f0pcp0BfnVcF1tKATBSg4U1gScuo7J1Ib3B7jv aVkGzspXYlCiMRF2ozGpC6C3EmXEpoUveFC/WIfRH3edbIwyselfJIooTY5ULPpn31ADf1eDC3I FsAh4SlFZRnGG225B7QD+P/Kzl08= X-Google-Smtp-Source: AGHT+IF/mJuIX1oEIzJq3qvZEUYLwMe46ZqRlJLkaYCw4PvUvfwjlhqO0mMEHu0bIZzxTmXzpddkOMW7/zKNbPbCnPQ= X-Received: by 2002:a17:907:96aa:b0:a99:497f:317 with SMTP id a640c23a62f3a-a99497f0634mr900963366b.62.1728376375200; Tue, 08 Oct 2024 01:32:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: obi reddy Date: Tue, 8 Oct 2024 14:02:42 +0530 Message-ID: Subject: Re: RHEL certified repo provided PostgreSQL Major Version Upgrade. To: Sameer Malve Cc: pgsql-admin , Sameer.Malve@mobileum.com Content-Type: multipart/alternative; boundary="000000000000e1d8c50623f2fb51" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e1d8c50623f2fb51 Content-Type: text/plain; charset="UTF-8" Hi Sameer, Please try with this command. /usr/bin/pg_upgrade -b /usr/pgsql-15/bin/ -B /usr/pgsql-16/bin/ -d /pgData/pgsql/15/data -D /pgData/pgsql/16/data -c If above command is not working check the below one. /usr/pgsql-16/bin/pg_upgrade -b /usr/pgsql-15/bin/ -B /usr/pgsql-16/bin/ -d /pgData/pgsql/15/data -D /pgData/pgsql/16/data -c Thanks & Regards Obireddy On Tue, 8 Oct 2024, 13:54 Sameer Malve, wrote: > Hi Team, > > We are trying to perform the Major version upgrade on RHEL 8 using > RHEL-certified repo `rhel-8-for-x86_64-appstream-rpms` from PG 15.6 to PG > 16.4 using `pg_upgrade` but we are facing the below issue. > > As the binaries are getting upgraded in-place `/usr/bin` hence while > performing pg_upgrade we are not getting the older binaries. > > pg_upgrade command is as follows. > > [2024-10-04 11:18:47] $ /usr/bin/pg_upgrade -b /usr/bin/ -B /usr/bin/ -d >> /pgData/pgsql/15/data -D /pgData/pgsql/16/data -c >> [2024-10-04 11:19:19] >> [2024-10-04 11:19:19] You must identify the directory where the old >> cluster binaries reside. >> [2024-10-04 11:19:19] Please use the -b command-line option or the >> PGBINOLD environment variable. >> [2024-10-04 11:19:19] Failure, exiting >> > > > Regards, > Sameer Malve > --000000000000e1d8c50623f2fb51 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Sameer,

Please try with this command.

/usr/bin/pg_upgrade -b /usr/pgsql-15/bin/ -B /u= sr/pgsql-16/bin/ -d /pgData/pgsql/15/data -D /pgData/pgsql/16/data -c
=

If above command is not worki= ng check the below one.

=
/usr/pgsql-16/bin/pg_upgrade -b /usr/pgsql-15/bin/ -B /us= r/pgsql-16/bin/ -d /pgData/pgsql/15/data -D /pgData/pgsql/16/data -c
<= div dir=3D"auto">
Thanks & Regards
Obireddy



On Tue, 8 Oct 2024, 13:54 Sameer Malve, <malvesameer@gmail.com> wrote:
Hi Team,

We are trying to perform the Major version upgrade on RHEL 8 using RHEL-= certified repo `rhel-8-for-x86_64-appstream-rpms` from PG 15.6 to PG 16.4 u= sing `pg_upgrade` but we are facing the below issue.

As the binaries are getting upgraded in-place `/usr/bin` hence=C2=A0whil= e performing pg_upgrade we are not getting the older binaries.
pg_upgrade command is as follows.

[2024-10-04 11:18:47]=C2=A0 $ /us= r/bin/pg_upgrade -b /usr/bin/ -B /usr/bin/ -d /pgData/pgsql/15/data -D /pgD= ata/pgsql/16/data -c
[2024-10-04 11:19:19] =C2=A0
[2024-10-04 11:19:1= 9] =C2=A0You must identify the directory where the old cluster binaries res= ide.
[2024-10-04 11:19:19] =C2=A0Please use the -b command-line option o= r the PGBINOLD environment variable.
[2024-10-04 11:19:19] =C2=A0Failure= , exiting
=C2=A0

Regards,
Sameer Malve
--000000000000e1d8c50623f2fb51--