Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iL2rp-0006N3-Sq for pgsql-general@arkaria.postgresql.org; Thu, 17 Oct 2019 10:18:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iL2ro-0007sl-CR for pgsql-general@arkaria.postgresql.org; Thu, 17 Oct 2019 10:18:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iL2rn-0007sW-Vq for pgsql-general@lists.postgresql.org; Thu, 17 Oct 2019 10:18:48 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iL2rl-0006Pn-MO for pgsql-general@lists.postgresql.org; Thu, 17 Oct 2019 10:18:46 +0000 Received: from Davids-MacBook.local (unknown [213.215.245.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 0CDBB54662 for ; Thu, 17 Oct 2019 10:18:43 +0000 (UTC) Subject: Re: pgbackrest with PAF(corosync and pacmaker) To: pgsql-general@lists.postgresql.org References: From: David Steele Message-ID: Date: Thu, 17 Oct 2019 12:18:42 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/17/19 9:48 AM, Ajay Pratap wrote: > > I am using pacemaker and corosync to setup two nodes High availability > cluster for postgreSQL 10. In the scenario I want to setup timely backup > with pgbackrest. > Using the _backup from standby_ feature I could able to take backup from > my secondary  postgres. But if secondary postgres is down, it does not > take backup from primary. This is entirely on purpose. Backup from standby is designed to reduce load on the primary so we believe it is counter-intuitive to put load back on the primary when the standby is down. Running backups *at all* when degraded is usually a bad idea. > Is there any way to achieve this? You can run more than one standby and pgBackRest will automatically select the first one it finds that is up. If you must take a backup when degraded then you can specify --no-backup-standby on the command line to disable standby for that one backup. Regards, -- -David david@pgmasters.net