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 1v3tjU-005JO3-VR for pgsql-admin@arkaria.postgresql.org; Wed, 01 Oct 2025 10:06:49 +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 1v3tjT-0009T7-0G for pgsql-admin@arkaria.postgresql.org; Wed, 01 Oct 2025 10:06:47 +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 1v3tjS-0009Sw-I4 for pgsql-admin@lists.postgresql.org; Wed, 01 Oct 2025 10:06:47 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v3tjR-0013dF-0Z for pgsql-admin@postgresql.org; Wed, 01 Oct 2025 10:06:46 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-57e8e67aa3eso1095290e87.1 for ; Wed, 01 Oct 2025 03:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759313204; x=1759918004; darn=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=oh1I12V139H0JqhaRDeN7sOY7ixgo8sG9zUq078uMrI=; b=Ss/Z6EC4NEBPw8THZzfDLf+lS5mSEAy6qSmIDmuzk9bHhx4N3ysLH71U+ZaqhQ2fT8 s8YJuY+rfOEGfxZuOZ5fx09JDHKYk8YnNoXcsXFgVn3fvm3FFchD9zmOfjC/cDU3TmaY B1Kg5XHU/D7JF8fdtQwoT0xkoGpFF8NQ87zd5qlzlbQQbtU1CuLPpU2GmrtTmTGc4ZyT K7PpP4vgIJ1rCK/UGtHyL/MnzqY/mRaFNZX9QR78JLDHmeTB2FWalczzqX94eD789uX7 URTA3eJmUOFWN4Mpf2ZgpFTRLqH+8jC1mPLU+DV29GxhFEhkpZCegkHBZKWBm9+6mvIW uBAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759313204; x=1759918004; 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=oh1I12V139H0JqhaRDeN7sOY7ixgo8sG9zUq078uMrI=; b=H+suKFUgWtfhdl4wbnQ4sXInvIoqkgjB2yh5hvcSdeHSrJZfhNQDSEjvqOw31DO8YP ICG4if14TXLk4NG5M7YaMRWRRko90QyJoPzFz5Hheo8A9n6uCu+0Q0iFeYKzCkyht+HB tmo51qtIPZ26nt7b6Ljh9kfecVxF24+GO3sXsmH30ZO/z7d1YGTUuY7pn9FIyxHqSJ41 FoetLTe91HtnauGCEIrcKcg8T+1hYfzwjJnafrQFftquE18W6HZWz7YPz+PPYqq8CeKo Y/SFoVRkJE2fVdyjWI51T0ThCOQlrljya38/tY+NcxHijwEF/juHAjql/DNhliKL0Va9 M9/Q== X-Gm-Message-State: AOJu0YxjC9fJ1OmfnaNogZvVaJpEEbWprRR0mpGnfpyyhrtldXwmcI0P O2M36Wn+L9x/Wt1OW1EDZzjcQGd8iDlLhTJXxUrOzj3JthuZMxcZtG2hRl/aQOgfJAwVBofWJfJ Nqn2yK3DjxPVEOfE6um2q+G4HcctVF30= X-Gm-Gg: ASbGnctv6QGLq7L08gyhxR29oG64ieHgR1to9Bsqi/jodHPH0E8H3NgguNEfXx6RqoT q8FKdd/4HHTyOuMOxYc1q1LFWwxa5dFcNC5Tt4U5KqKn8BnYU3GcsUvNvgubwZJXCN72Am5Juru eOd90MdyaYgWHvHbV0+rGyAySPrViWoRmTHWMNNxHo/+koSf3/c+xyF2xVH/iLx51Vn0qspJ9Cf THu4aBMakA3cqndY0ymVIDBhEn7xtJPX2jdmstDECzgC2/7+oxEDrnLXlVVjexxldn2UYbA6P81 X-Google-Smtp-Source: AGHT+IGj/v38EsDa8bF9EoqCJJrvOEHCgwSiaeBrd+JZSJBRlD1ZxmPcRo5nX8Wanv4IRcjRFxt/t2zdtjCAn2RjTjs= X-Received: by 2002:a05:6512:1056:b0:570:a8d4:a79c with SMTP id 2adb3069b0e04-58af92ba320mr1124722e87.0.1759313203891; Wed, 01 Oct 2025 03:06:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Imran Khan Date: Wed, 1 Oct 2025 13:06:33 +0300 X-Gm-Features: AS18NWC6rESB9Zm-j33RO6p8CuTRxh1iDaI3tF5DmanrZaIFv5P_0XoSd9U5dvM Message-ID: Subject: Re: repmgr cannot bring up the standby database after switchover manaully To: Chris Lee Cc: pgsql-admin Content-Type: multipart/alternative; boundary="0000000000009111a20640160664" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000009111a20640160664 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Chris, Why are you risking by having only two node repmgr setup? Why not 3 nodes? Thanks, Imran On Wed, Oct 1, 2025, 1:02=E2=80=AFPM Chris Lee wrote: > Hi all, > > I have 2 postgresql servers. One is the primary and another one is the > standby. I am trying to setup repmgr to do the switchover manually. > Passwordless ssh have been setup for postgres ID on both servers. > > I use this command "repmgr standby switchover --log-level=3DDEBUG > --verbose". The standy database is able to promote to be the primary. For > the previous primary database, it was shutdown. It was not able to bring = up > as standby by repmgr. > > Does anyone encounter this issue before? Thanks a lot for any suggestions= . > > Here is my OS and DB versions: > > OS version: CentOS Stream release 8 > Postgres DB version: 15.12 > rempmgr version: 5.5.0 > > Here is the repmgr conf files: > >>>>> > node_id=3D1 # Use 2 on standby > node_name=3D'primary' > conninfo=3D'host=3Dcentos804 user=3Drepmgr dbname=3Drepmgr password=3Dxxx > connect_timeout=3D15' > use_primary_conninfo_password=3Dtrue > data_directory=3D'/var/lib/pgsql/15/data' # Adjust for your setup > pg_bindir=3D'/usr/pgsql-15/bin' > service_start_command =3D 'sudo systemctl start postgresql-15' > service_stop_command =3D 'sudo systemctl stop postgresql-15' > <<<<< > > >>>>> > node_id=3D2 # Use 2 on standby > node_name=3D'standby' > conninfo=3D'host=3Dcentos803 user=3Drepmgr dbname=3Drepmgr password=3Dxxx > connect_timeout=3D15' > use_primary_conninfo_password=3Dtrue > data_directory=3D'/var/lib/pgsql/15/data' # Adjust for your setup > pg_bindir=3D'/usr/pgsql-15/bin' > service_start_command =3D 'sudo systemctl start postgresql-15' > service_stop_command =3D 'sudo systemctl stop postgresql-15' > <<<<< > > Regards, > Chris > --0000000000009111a20640160664 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Chris,

Wh= y are you risking by having only two node repmgr setup? Why not 3 nodes?

Thanks,=C2=A0
Imran

On Wed, Oct 1, 2025, 1:02=E2=80= =AFPM Chris Lee <clee.hk@gmail.com<= /a>> wrote:
Hi = all,

I have 2 postgresql servers. One is the primary and another one= is the standby. I am trying to setup repmgr to do the switchover manually.= Passwordless ssh have been setup for postgres ID on both servers.

I= use this command "repmgr standby switchover --log-level=3DDEBUG --ver= bose". The standy database is able to promote to be the primary. For t= he previous primary database, it was shutdown. It was not able to bring up = as standby by repmgr. =C2=A0

Does anyone encounter this issue before= ? Thanks a lot for any suggestions.

Here is my OS and DB versions:
OS version: CentOS Stream release 8
Postgres DB version: =C2=A015.= 12
rempmgr version: 5.5.0

Here is the repmgr conf files:
>&= gt;>>>
node_id=3D1 =C2=A0# Use 2 on standby
node_name=3D'= ;primary'
conninfo=3D'host=3Dcentos804 user=3Drepmgr dbname=3Dre= pmgr password=3Dxxx connect_timeout=3D15'
use_primary_conninfo_passw= ord=3Dtrue
data_directory=3D'/var/lib/pgsql/15/data' =C2=A0# Adj= ust for your setup
pg_bindir=3D'/usr/pgsql-15/bin'
service_st= art_command =3D 'sudo systemctl start postgresql-15'
service_sto= p_command =C2=A0=3D 'sudo systemctl stop postgresql-15'
<<= <<<

>>>>>
node_id=3D2 =C2=A0# Use 2 on st= andby
node_name=3D'standby'
conninfo=3D'host=3Dcentos803 = user=3Drepmgr dbname=3Drepmgr password=3Dxxx connect_timeout=3D15'
u= se_primary_conninfo_password=3Dtrue
data_directory=3D'/var/lib/pgsql= /15/data' =C2=A0# Adjust for your setup
pg_bindir=3D'/usr/pgsql-= 15/bin'
service_start_command =3D 'sudo systemctl start postgres= ql-15'
service_stop_command =C2=A0=3D 'sudo systemctl stop postg= resql-15'
<<<<<

Regards,
Chris
--0000000000009111a20640160664--