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 1v3tg7-005IcG-Cw for pgsql-admin@arkaria.postgresql.org; Wed, 01 Oct 2025 10:03:19 +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 1v3tf6-0002CX-8h for pgsql-admin@arkaria.postgresql.org; Wed, 01 Oct 2025 10:02:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v3tf5-0002CA-Sx for pgsql-admin@lists.postgresql.org; Wed, 01 Oct 2025 10:02:16 +0000 Received: from mail-yx1-xb12b.google.com ([2607:f8b0:4864:20::b12b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v3tf4-000qhK-00 for pgsql-admin@postgresql.org; Wed, 01 Oct 2025 10:02:15 +0000 Received: by mail-yx1-xb12b.google.com with SMTP id 956f58d0204a3-638d01a8719so4039373d50.2 for ; Wed, 01 Oct 2025 03:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759312933; x=1759917733; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=f6IawCnAZDbe5zPGO2jCgpUPejF2CDRBnp3OjsyJz00=; b=UpKm1Lo5ZjbHSMcG91GlysUIZcl50YLqftMNIUIJZ1qdBAZvlSM5QTl2vKdkp4cx8I 7LPKa8kkx4ByTh6OZRo0UschqvmTPKsrN3UK4KC3S76DU9kN66FSvnc5yHa7eUqvYKmB JkIDBUulKRiv00pgKy3qhSjvQnbo0xIDrVYBW7xXaCr4iTV6bwHDqSYCRGD4nIgwPa7h wU5qchemGsBTf6zAe3KguNPJAQVtWiZ73rUMcKnhTNIRVHKCbhcyNUl0ZlagC8RNnjFw VHpl9051k+Aw2MlLdP88WbS8kQ3vfsk8aqEQWz3MhHxOkp3J2eBv1CwlANe3aPyW/WKz TsUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759312933; x=1759917733; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=f6IawCnAZDbe5zPGO2jCgpUPejF2CDRBnp3OjsyJz00=; b=vEtdo4DaabnFOC/LBf8hlUIlUHvdjIRvNOjxpqkZd+I3oUYlus/Q0kTmBnFgMUTW0I E1pmOLISXzIRK6yNtopUd4/ANbWiTPSJVSTCQwk4Pup1bKR4tKNvhX/N4b0FrABDi3I6 DwSFDUN+UDtNWFDrGaFT1KBxKdR9WzbZXt1OdOtYMzDIGIE0ngNTMQxZ+8o+L8ElgPnU m93GCB6SwhtPuPgZaN3h4GB+P3j18B3MPSYOp2fC6zq9mjpWZKrsuQQSbXvDW+BYzsbT E4WGsi5TBNPrTYC32HMqSR4KdFUjnHyhu8KLv/05qA44Eqz089J0eUkZQDQ13bnex5vr u2+g== X-Gm-Message-State: AOJu0YzsO7N9avkc4ICO61WCvwTTUFEdSMM0G0O/jIuOFJ+3GZYsmvt5 mt/NDsinp5X01Ycm9iWIp8gvFM56++2+dZKsQho+9B33wNzDzIR6DwJ54hPxKM45aPVqSqTSpx3 VNpPtwy2HSa/CF6g5Xh7bVcG3aIQSxmYfkZs+hrM= X-Gm-Gg: ASbGncvkyrsEh+BRGgu5eMSTB/vqXEBBAKQAlC4+m753uU97ck5OZKZxgUDciond7xz cTvKYw3+fMVAJ+JwzVw5Yp4+ZSHh8ZMbSkrD8OS6eqI3QqtRm0jfw8gO1iEz5P79DjoRkJZNidn 67vYCGIaqfP7q0ExAc5vaCryHN+l2xvAD01ybDjljP0IKYAvwP3xgubNR8XJSvYa0CeaYQ3Gjgj 6wq2qAXVNwkhi+J8Qe+VM9KILwFqks2 X-Google-Smtp-Source: AGHT+IEDtgyJKJbRu98m/2lmZt8Q9wS4jItaT2FxiE2Rtq5kWts0oDXRMgJoOxdrIoX16yloKJqLbFyAFLr00hGA4v4= X-Received: by 2002:a05:690e:d46:b0:633:a95e:ef08 with SMTP id 956f58d0204a3-63b6fe94c01mr4093552d50.5.1759312933064; Wed, 01 Oct 2025 03:02:13 -0700 (PDT) MIME-Version: 1.0 From: Chris Lee Date: Wed, 1 Oct 2025 18:02:02 +0800 X-Gm-Features: AS18NWCyK2BAnsX_HIyYM_nC1lEz2ozz8xDQf38hPFGKUuF6ts-TSJADI4lrbso Message-ID: Subject: repmgr cannot bring up the standby database after switchover manaully To: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary="0000000000006c9393064015f614" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000006c9393064015f614 Content-Type: text/plain; charset="UTF-8" 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=DEBUG --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=1 # Use 2 on standby node_name='primary' conninfo='host=centos804 user=repmgr dbname=repmgr password=xxx connect_timeout=15' use_primary_conninfo_password=true data_directory='/var/lib/pgsql/15/data' # Adjust for your setup pg_bindir='/usr/pgsql-15/bin' service_start_command = 'sudo systemctl start postgresql-15' service_stop_command = 'sudo systemctl stop postgresql-15' <<<<< >>>>> node_id=2 # Use 2 on standby node_name='standby' conninfo='host=centos803 user=repmgr dbname=repmgr password=xxx connect_timeout=15' use_primary_conninfo_password=true data_directory='/var/lib/pgsql/15/data' # Adjust for your setup pg_bindir='/usr/pgsql-15/bin' service_start_command = 'sudo systemctl start postgresql-15' service_stop_command = 'sudo systemctl stop postgresql-15' <<<<< Regards, Chris --0000000000006c9393064015f614 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I have 2 postgresql servers. One is the pri= mary 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 bo= th servers.

I use this command "repmgr standby switchover --log= -level=3DDEBUG --verbose". The standy database is able to promote to b= e the primary. For the previous primary database, it was shutdown. It was n= ot able to bring up as standby by repmgr. =C2=A0

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

Here is my O= S and DB versions:

OS version: CentOS Stream release 8
Postgres D= B version: =C2=A015.12
rempmgr version: 5.5.0

Here is the repmgr = conf files:
>>>>>
node_id=3D1 =C2=A0# Use 2 on standby=
node_name=3D'primary'
conninfo=3D'host=3Dcentos804 user= =3Drepmgr dbname=3Drepmgr password=3Dxxx connect_timeout=3D15'
use_p= rimary_conninfo_password=3Dtrue
data_directory=3D'/var/lib/pgsql/15/= data' =C2=A0# Adjust for your setup
pg_bindir=3D'/usr/pgsql-15/b= in'
service_start_command =3D 'sudo systemctl start postgresql-1= 5'
service_stop_command =C2=A0=3D 'sudo systemctl stop postgresq= l-15'
<<<<<

>>>>>
node_id=3D= 2 =C2=A0# Use 2 on standby
node_name=3D'standby'
conninfo=3D&= #39;host=3Dcentos803 user=3Drepmgr dbname=3Drepmgr password=3Dxxx connect_t= imeout=3D15'
use_primary_conninfo_password=3Dtrue
data_directory= =3D'/var/lib/pgsql/15/data' =C2=A0# Adjust for your setup
pg_bin= dir=3D'/usr/pgsql-15/bin'
service_start_command =3D 'sudo sy= stemctl start postgresql-15'
service_stop_command =C2=A0=3D 'sud= o systemctl stop postgresql-15'
<<<<<

Regards,=
Chris
--0000000000006c9393064015f614--