Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2zbC-0000cB-HP for pgsql-admin@arkaria.postgresql.org; Thu, 30 Dec 2021 17:52:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n2zbA-0003Pw-Uo for pgsql-admin@arkaria.postgresql.org; Thu, 30 Dec 2021 17:52:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2zbA-0003Pm-KL for pgsql-admin@lists.postgresql.org; Thu, 30 Dec 2021 17:52:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2zb3-0002fH-OZ for pgsql-admin@lists.postgresql.org; Thu, 30 Dec 2021 17:52:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1BUHqBZg2286515; Thu, 30 Dec 2021 12:52:11 -0500 From: Tom Lane To: Tom Korach cc: pgsql-admin@lists.postgresql.org Subject: Re: Is file system replication sufficient to recovery? In-reply-to: References: <2276564.1640884845@sss.pgh.pa.us> Comments: In-reply-to Tom Korach message dated "Thu, 30 Dec 2021 12:43:04 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2286513.1640886731.1@sss.pgh.pa.us> Date: Thu, 30 Dec 2021 12:52:11 -0500 Message-ID: <2286514.1640886731@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tom Korach writes: >> What do you mean exactly by "file-system replication"? > RAID1 setup (specifically, between two disks or EBS volumes [on AWS]), > using LVM. Maybe I'm missing something, but AFAIK plain old RAID will not protect you against any scenario except failure of a single disk. It certainly won't do anything to help you revert to a prior database state. The docs page I pointed you to is part of a chapter that lays out all the backup methods the PG community considers reliable. I strongly suggest sticking to one of those and not trying to take shortcuts. (The following chapter on high-availability setups is relevant reading as well.) regards, tom lane