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 1mf4PS-0003qs-Bz for pgsql-general@arkaria.postgresql.org; Mon, 25 Oct 2021 18:09: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 1mf4PQ-0007Xc-RP for pgsql-general@arkaria.postgresql.org; Mon, 25 Oct 2021 18:09: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 1mf4PQ-0007XR-Fg for pgsql-general@lists.postgresql.org; Mon, 25 Oct 2021 18:09:20 +0000 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mf4PN-00041c-9d for pgsql-general@lists.postgresql.org; Mon, 25 Oct 2021 18:09:20 +0000 Received: by mail-qt1-x833.google.com with SMTP id r17so11067639qtx.10 for ; Mon, 25 Oct 2021 11:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=+EY2rBFi2scz6ljdo6yYmcNz4G5oESgJr2zCpTadP5c=; b=Lr5nlTgFNaRuZ0RpVt/TVwtqyb59jeUpf+0WykY0F6Jdj6dGjt4yURRwAotInQePdY Y/eMhJ1oUlEkr7ewvR8uGILuXEnZh9QAIU9L67BBSqR1rSITfVWk3eBkD19n4Z1bTmHz wq8eKdlyUAI+QakErRZcNnlBepD5SMv830kJ8rIAvgWzS1TmtAKrHC8kwYv7SXvADzeS hVjCj1wdJvEP9mwIQIMouf4/k8xSSEfe1arBbRlk4uVFTdYtM6JVCxeUT8hFlnf2iotP 3LKu0Wj7bA3zN/4Vp9kC725c0dGBg8fb3N3FxCY3cImavyuYwedDYpEFG32NraSPVGhV 8XmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=+EY2rBFi2scz6ljdo6yYmcNz4G5oESgJr2zCpTadP5c=; b=yQKnnfHdIHaQ3KOLxN2ZIUgjazBD1SZ1afmdGQhb9Xl2ZUlDcslBFyaOfcrqv9dzwZ MoXbVGWVAXF+fmqtAUIvkUbl89EcDpPcvJA+KJvbzwtVYGa5COQLmSthO9Z6EI3KHipu 5Wnas1Iobhcw8GCvoli+ont8T29l0YaVGKGDpYK5R0fW8ec2g8MhB5ZP016+JlBn2hUF vJowBBMYBTjpCE1QiOS3H3XTWPEXphvd2Sov0RLMS6pYgdR8zfK5CqWzixfW+YvWOrzV xbHjBsN8/TTBkDXrnW9HHcaBqvmR9hRJaadkNclk4HuTkV04Rl3IbR9wR7+OWwghSnGP NMNA== X-Gm-Message-State: AOAM530hGqzuiUkgWzQW77wrtDZj34LcN1tOzRr/YFunVPsFkjnuuKMe 04BHvZj6UKpgFvVUqwSOX+Y= X-Google-Smtp-Source: ABdhPJwbRUTXIMHu+relhlQxhFSxrZe5C6g317Lu/hegC57ADY5d0smIozl0nQPMyAIVbIWLwbVbyQ== X-Received: by 2002:ac8:7d4a:: with SMTP id h10mr18993717qtb.369.1635185354797; Mon, 25 Oct 2021 11:09:14 -0700 (PDT) Received: from [192.168.2.100] (pool-72-79-19-93.nwrknj.east.verizon.net. [72.79.19.93]) by smtp.gmail.com with ESMTPSA id p187sm8941426qkd.101.2021.10.25.11.09.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Oct 2021 11:09:14 -0700 (PDT) Message-ID: <5608bbca-2bc6-57f1-8bcc-4b5f63eff2f6@gmail.com> Date: Mon, 25 Oct 2021 14:09:13 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: ZFS filesystem - supported ? Content-Language: en-US To: Stephen Frost Cc: Lucas , pgsql-general@lists.postgresql.org References: <49ijds_99IK_4iDOHuZH8CJsKGZw7DEVtJPf0s_oPEvUKwFewHcDQFCUnutcA9GYIkOrRfFAKRsyj0ZFN9ECAbLm-NYPR8jMxTl-RU-U3hA=@protonmail.ch> <1e0db1d2-6a9e-f5f7-44af-e7a1997bafcf@gmail.com> <917520e4-0023-2842-db5f-2e1cbd72b004@gmail.com> <741d4f14b64a45d7a9670042ac8ecf66@sud0.nz> <77b0fb54-64f5-833d-19ba-2c731af1f700@gmail.com> <20211025171342.GH20998@tamriel.snowman.net> From: Mladen Gogala In-Reply-To: <20211025171342.GH20998@tamriel.snowman.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/25/21 13:13, Stephen Frost wrote: > No, it's not- you must also be sure to archive any WAL that's generated > between the pg_start_backup and pg_stop_backup and then to be sure and > add into the snapshot the appropriate signal files or recovery.conf, > depending on PG version, to indicate that you're restoring from a backup > and make sure that the WAL is made available via restore_command. > > Just doing stat/stop backup is*not* enough and you run the risk of > having an invalid backup or corruption when you restore. > > If the entire system is on a single volume then you could possibly just > take a snapshot of it (without any start/stop backup stuff) but it's > very risky to do that and then try to do PITR with it because we don't > know where consistency is reached in such a case (we*must* play all the > way through to the end of the WAL which existed at the time of the > snapshot in order to reach consistency). > > In the end though, really, it's much, much, much better to use a proper > backup and archiving tool that's written specifically for PG than to try > and roll your own, using snapshots or not. > > Thanks, > > Stephen Stephen, thank you for correcting me. You, of course, are right. I have erroneously thought that backup of WAL logs is implied because I always back that up. And yes, that needs to be made clear. Regards -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com