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 1neYWt-0007uq-6X for pgsql-general@arkaria.postgresql.org; Wed, 13 Apr 2022 08:39:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1neYWs-0005ZX-4R for pgsql-general@arkaria.postgresql.org; Wed, 13 Apr 2022 08:39:10 +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 1neYWr-0005ZN-PA for pgsql-general@lists.postgresql.org; Wed, 13 Apr 2022 08:39:09 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1neYWn-0006Pl-Cr for pgsql-general@lists.postgresql.org; Wed, 13 Apr 2022 08:39:09 +0000 Received: by mail-ej1-x632.google.com with SMTP id r13so2460766ejd.5 for ; Wed, 13 Apr 2022 01:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=fnEZ7X2AzG1AGlQPsocBnvo5WnvXZ1mb1+h+9pfHnXU=; b=mqU7UMHV/9InwSuVFJ+ciiJiCePlMqOU4IuWD6CYlIaWx8pFo2f7wHhSQvQi3cJnmT EU1azMqprR/1F9Nvpz1L1ZXa0i5gALd7kfRlQ7CoCEJVHPTC/68HHFMgQTjWmpJZhUlJ F6SiEHr6RMemqbbCkWOAKmGpdlKgrSOVDOopf3/D/QcebKyM/HbGoEzXNU7qKbWtsmBX gnAE8Nhs+2Z6T4wl93R0kQ44vsXFS1lAHhiyH2bTQtD9NvyZd5f5LAy/DpHMEz2sJXWa m7WUhfG/J2FZe8DWBuh4smbsAETgmYBzJzxksEvA9yQg+OdDu9vvt9U1SZc1dU4D+umg RPvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=fnEZ7X2AzG1AGlQPsocBnvo5WnvXZ1mb1+h+9pfHnXU=; b=xkNrXCPcqkUFXWEWQWXQPV90psBQLK9yzhZOm+coHmzxOcxoFXSpetq4jWgNGGdQvj LD7e2HXSRkprKYuQ22I7DztWvLAJ0B168vfPv+JiYEnZYrWskMZkL7ygg+vZ341a+AlO xVkdyLZzgPPCbpaWHP3ibV03X6OrLakBA6Bj+vSVa5bwxdzcRjgmUCKBx52VoNEyc+hl A/liENHsRUt/xRQsk13AFAFYYFNdqBrE5+5Lz9OIGq8UWEcNHVoXw7cACotoRwYCY+7M pR9w5lxJJrMsECKOl4jKn8qF/DlVi9KVvsmYZDSHfp/RRXQg5u3UeAtDTk+Za90N+xJK /7Og== X-Gm-Message-State: AOAM533hP1kmhQAyNXgdXdRNkz3HneW0SbkyOCdI7gyYuw4YOnjQe4cn azZf9MOX5ygi+C5YE3L/1UrfWg== X-Google-Smtp-Source: ABdhPJwB2kD0QuReWo3LRJa89L/86smB/2U+NaWEILpse8EaVrUe3bLg446Bh3IOy6271B1rHPzVtg== X-Received: by 2002:a17:906:dc93:b0:6e8:8d81:b4bb with SMTP id cs19-20020a170906dc9300b006e88d81b4bbmr13207720ejc.32.1649839142880; Wed, 13 Apr 2022 01:39:02 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:598:857b:a04f:3078:93e0]) by smtp.gmail.com with ESMTPSA id hb6-20020a170907160600b006dff6a979fdsm13708899ejc.51.2022.04.13.01.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 01:39:02 -0700 (PDT) Message-ID: <64643b6f672a8caee1f1673ae1352407086f8b87.camel@cybertec.at> Subject: Re: Feedback about hybrid SAN snap and rsync'd approach for large systemcloning From: Laurenz Albe To: Jerry Sievers , pggeneral Date: Wed, 13 Apr 2022 10:39:01 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-3.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2022-04-12 at 18:07 -0500, Jerry Sievers wrote: > 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. I thought that an unlogged table is rendered empty by recovery, but perhaps I misunderstood what you are doing. Yours, Laurenz Albe