From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Jerry Sievers <gsievers19@comcast.net>
To: pggeneral <pgsql-general@lists.postgresql.org>
Subject: Re: Feedback about hybrid SAN snap and rsync'd approach for large systemcloning
Date: Wed, 13 Apr 2022 10:39:01 +0200
Message-ID: <64643b6f672a8caee1f1673ae1352407086f8b87.camel@cybertec.at> (raw)
In-Reply-To: <CB47B6F6-2619-4D79-97F2-412C840F2F32@comcast.net>
References: <CB47B6F6-2619-4D79-97F2-412C840F2F32@comcast.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, gsievers19@comcast.net
Subject: Re: Feedback about hybrid SAN snap and rsync'd approach for large systemcloning
In-Reply-To: <64643b6f672a8caee1f1673ae1352407086f8b87.camel@cybertec.at>
References: <CB47B6F6-2619-4D79-97F2-412C840F2F32@comcast.net> <64643b6f672a8caee1f1673ae1352407086f8b87.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox