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 1srFRV-00GMMB-WF for pgsql-admin@arkaria.postgresql.org; Thu, 19 Sep 2024 11:35:26 +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 1srFRU-00A6lJ-L1 for pgsql-admin@arkaria.postgresql.org; Thu, 19 Sep 2024 11:35:24 +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 1srFRU-00A6lB-9R for pgsql-admin@lists.postgresql.org; Thu, 19 Sep 2024 11:35:24 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1srFRQ-0000Uc-1J for pgsql-admin@lists.postgresql.org; Thu, 19 Sep 2024 11:35:23 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-42cbaf9bfdbso6462985e9.0 for ; Thu, 19 Sep 2024 04:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726745720; x=1727350520; 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=GaH397bPQrEOcC+KkD8Sos9Od3Sc1O8t5XFJeISldcI=; b=kVWsJGdlvLd0nrPRdqkXp8IFN0WJmzuvCoR+1s4QcRCAYLFYRy5kSB/+0rogCELxei QVgVRf++8ybn4VRoVuPvEVtBdYV2vdl78CATvUT6jLf7UsnIrMbPSHyIShUTMlVcY3/l 4d8Ske0mcwhQNlp3KW5mukOFuNj1b6VKePLBnJJ0Z1fyS30V0aW7io8LVYFAFfWrcBmk bBLl7nHQlVeqLA9/P0+8l00yTSvKcskJOPVLKsvd8Th/0jjMSsyktw209lS8hd5D42lf dVdQhDF8WediOj4aIDeQ5ZDSLzJr09E7iNiaIJ8TsexBgxvV6Bzw+C87ha6mvax8QFiL KtLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726745720; x=1727350520; 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=GaH397bPQrEOcC+KkD8Sos9Od3Sc1O8t5XFJeISldcI=; b=tP16GD0dCreBN429jYGKF5Ef+oTZNLmuyEZS17t7gL8ahemJNc5G46KaSq+hErijLI P4O+nQx0+HoJCi+kQp/oWIaR5nuoyJjFuLnZP9zsJ9HIjhbcCHvjOESg29d+5eLEyvaK FK0weWufphy8eyvuy6cI/UFV3TzLZ7jlQvcKTXXJgPmja3GTyqo8THLyjKPzJ0+nnhVP k8o9A9XhXYx3uPrLqvGgGK3REte0HEhFLNDAVCGCLwSOzwI3bggqh5xJeDynBtzxsGKl dr/5zuFjCOpZpr3xHNj91ZIwpRObzCti0TATQ32shxhBFUzB1yzeWLAQdI/k9QTqgwGl xRcQ== X-Gm-Message-State: AOJu0Yy1fKWU8WKjYqpwjkyMtd+dh1OwD7Cfzmol3ZWwddLLVt08dZ0+ bJy9jKXXmVtNogHopvD+MFH8v3JPiSHA8Nyit8dHVVYmlouM+Caidi9ZFen3d6DBnVEyCNK2bWK zNj8teGyNw0sCZ9BGxge2EYunaQw= X-Google-Smtp-Source: AGHT+IHWguoKUx9HH1uK2/n6MDH4NuosK6FiP+Ufz+Ecu/PiB2hDo86uVAr4YkZtRDO2tddcTfaqgnvQGl4AGg2n50Q= X-Received: by 2002:a05:6000:c89:b0:374:b9a0:ddee with SMTP id ffacd0b85a97d-378d625a9d0mr10900157f8f.56.1726745719853; Thu, 19 Sep 2024 04:35:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: sethu mathavan Date: Thu, 19 Sep 2024 17:05:06 +0530 Message-ID: Subject: Re: Failover and Failback To: "Narendran .j" Cc: pgsql-admin@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000003fdde10622775171" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000003fdde10622775171 Content-Type: text/plain; charset="UTF-8" Hi Narendran, Before running rewind command,need to change few parameters in postgresql.conf file.like primary_conninfo in old_master. Regards, Sethu On Thu, 19 Sep, 2024, 4:46 pm Narendran .j, wrote: > Hello Team, > > I have facing a problem in failback. I just promoted my secondary as > master by using pg_ctl promote.it was successful.so now how can I bring > my old master as primary I tried with pg_rewind it's not working. So is > there any other way to perform failback. Is there any procedure to perform > failback and failover please share with me. Additionally we don't use any > tool for it. > > Regards > Narendran J > --0000000000003fdde10622775171 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi Narendran,

Before running rewind command,need to change few parameters = in postgresql.conf file.like primary_conninfo in old_master.

Regards,
Sethu


On Thu= , 19 Sep, 2024, 4:46 pm Narendran .j, <jnarendran3@gmail.com> wrote:
Hello Team,

I have facing a problem in failback. I just promoted my secondary= as master by using pg_ctl promote.it was successful.so now how can I bring my = old master as primary I tried with pg_rewind it's not=C2=A0working. So = is there any other way to perform failback. Is there any procedure to perfo= rm failback and failover please share with me. Additionally we don't us= e any tool for it.

Regar= ds=C2=A0
Narendran J
--0000000000003fdde10622775171--