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 1nePbT-0003l3-Cy for pgsql-general@arkaria.postgresql.org; Tue, 12 Apr 2022 23:07:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nePbQ-0005Bi-8q for pgsql-general@arkaria.postgresql.org; Tue, 12 Apr 2022 23:07:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nePbP-0005BY-B7 for pgsql-general@lists.postgresql.org; Tue, 12 Apr 2022 23:07:15 +0000 Received: from resqmta-a1p-077723.sys.comcast.net ([2001:558:fd01:2bb4::9]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nePbG-0001Wv-Vz for pgsql-general@lists.postgresql.org; Tue, 12 Apr 2022 23:07:12 +0000 Received: from resomta-a1p-077252.sys.comcast.net ([96.103.145.241]) by resqmta-a1p-077723.sys.comcast.net with ESMTP id ePMwnQY4oG578ePbEn9Ck9; Tue, 12 Apr 2022 23:07:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1649804824; bh=pnEKilHD6cU61bTEffOEkSkD7CxfToz0Zsz1UQHx15A=; h=Received:Received:From:Content-Type:Mime-Version:Subject: Message-Id:Date:To; b=wvh1r8ah+bW3+QIGNwK7kf+Ew4NUIhES5x4pzocD0al0lvh53ZeCl8vpvMcSS33AO zNKqD8whjm9sm7Y3eRu7U/bcsI38Zr1MRy1lhFehztSU8m6a5AJyzzRk8sjVB7kd9Y 8e9rEl8NYLkmf02BfEE+Ra8Xh7F6+Xuw5lUt0dBx2B8JOR7CARToPxeCgD9UBc9rYH e9gMAjw/U3Ksa1Mk8cAiaGutIy7AJjZ74naUikmSlVqIcv4XX1VEo+sU5na5cSDLPo wQ6A8VvWPd5tn1YD7cNI09k0UFmKHHuKFNDY1cWiAiTbMpxYLt4g0j872AIhXnlQw+ HXpiwHGrdYtOA== Received: from [IPv6:2601:240:d300:1e70:6c23:f5a5:aa8b:b6e0] ([IPv6:2601:240:d300:1e70:6c23:f5a5:aa8b:b6e0]) by resomta-a1p-077252.sys.comcast.net with ESMTPSA id ePbCnVnx13kZrePbDnpTv7; Tue, 12 Apr 2022 23:07:04 +0000 X-Xfinity-VMeta: sc=0.00;st=legit From: Jerry Sievers Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Feedback about hybrid SAN snap and rsync'd approach for large systemcloning Message-Id: Date: Tue, 12 Apr 2022 18:07:02 -0500 To: pggeneral X-Mailer: Apple Mail (2.3608.120.23.2.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Suppose we have a DB cluster with an additional tablespace and we are able to make an atomic SAN snapshot of *only* the main cluster volume... The additional tablespace contains only UNLOGGED relations. We cannot snap that volume so we use rsync as follows... 1. pg_start_backup('foo'); make SAN snapshot rsync the add'l tablespace pg_stop_backup() Now provision a new cluster around the snapshot and rsync'd volume, rejigger the pg_tblspc link if necessary... and start it up maybe or not having it remain as a streaming replica. It's been my experience that possibly bulky data in the additional tablespace does *not* need be rsync'd if we capture only the *_init files. Id' be curious to here feedback re the sanity of this approach. And would also like to know if perhaps *only* the directories under the rsync'd tablespace actually must be present for a successful recovery. The above approach has worked mumerous times even with origin systems having large, churny contents in the dedicated unlogged tablespace (which is on a much faster local NVME volume than the main SAN volume.) Thanks!