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 1meTvy-0004RV-GD for pgsql-general@arkaria.postgresql.org; Sun, 24 Oct 2021 03:12:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1meTvw-0005rQ-9c for pgsql-general@arkaria.postgresql.org; Sun, 24 Oct 2021 03:12:28 +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 1meTvv-0005rH-Q7 for pgsql-general@lists.postgresql.org; Sun, 24 Oct 2021 03:12:27 +0000 Received: from box.lpossamai.net ([109.205.181.50]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1meTvo-0001gb-Kx for pgsql-general@lists.postgresql.org; Sun, 24 Oct 2021 03:12:27 +0000 Received: from authenticated-user (box.lpossamai.net [109.205.181.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.lpossamai.net (Postfix) with ESMTPSA id 82CB311201FE; Sun, 24 Oct 2021 16:12:17 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sud0.nz; s=mail; t=1635045138; bh=6R8eK0KUMDzimXnWgNyYJEAml+HrtGMv58jdSGoVYWI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kccuplt5JfLZr0ZAfRVRR0CleMbuIwtGk8RD1QQsqaLyvEGM6JmZqSuvlpH9XKBA/ ga9YTi+6kIm8HYKklFZvwWc5aLTceHAYI2bmDW2EZIK3SkGHIQmutKYwfKfFW+go2R IEf4LGXKbIeqFoGJxO2BAWmzfC9zhfLPQcUjVlpdQJy3HohNZck75M4MDhDfDxc8Cw RM/Ksc+zao1mLM4fbOtYpzMM20tujqZXihy100HgHxrtkX64IDfqbnetUfD3BNG2Sb pDLTgDvlv015POPgykTeEztSi8a8l+mUABqhibFkt1fzCrCZa0LmNNGnCafnr3jX42 JosA0VpcweU5Q== MIME-Version: 1.0 Date: Sun, 24 Oct 2021 16:12:16 +1300 From: Lucas To: Mladen Gogala Cc: pgsql-general@lists.postgresql.org Subject: Re: ZFS filesystem - supported ? In-Reply-To: <917520e4-0023-2842-db5f-2e1cbd72b004@gmail.com> References: <49ijds_99IK_4iDOHuZH8CJsKGZw7DEVtJPf0s_oPEvUKwFewHcDQFCUnutcA9GYIkOrRfFAKRsyj0ZFN9ECAbLm-NYPR8jMxTl-RU-U3hA=@protonmail.ch> <1e0db1d2-6a9e-f5f7-44af-e7a1997bafcf@gmail.com> <917520e4-0023-2842-db5f-2e1cbd72b004@gmail.com> Message-ID: <741d4f14b64a45d7a9670042ac8ecf66@sud0.nz> X-Sender: root@sud0.nz Content-Type: multipart/alternative; boundary="=_0c1bca35fc76fe28e96c184317b5d00f" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=_0c1bca35fc76fe28e96c184317b5d00f Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 2021-10-24 06:48, Mladen Gogala wrote: > On 10/23/21 09:37, Laura Smith wrote: > >> Hi Mladen, >> >> Yes indeed, snapshots is the primary reason, closely followed by >> zfssend/receive. >> >> I'm no stranger to using LVM snapshots with ext4/xfs but it requires a >> custom shell script to manage the whole process around backups. I >> feel the whole thing could well be a lot cleaner with zfs. >> >> Thank you for the links, I will take a look. >> >> Laura > > Yes, ZFS is extremely convenient. It's a volume manager and a file > system, all rolled into one, with some additiional convenient tools. > However, performance is a major concern. If your application is OLTP, > ZFS might be a tad too slow for your performance requirements. On the > other hand, snapshots can save you a lot of time with backups, > especially if you have some commercial backup capable of multiple > readers. If your application is OLTP, ZFS might be a tad too slow for > your performance requirements. The only way to find out is to test. The > ideal tool for testing is pgio: > > https://kevinclosson.net/2019/09/21/announcing-pgio-the-slob-method-for-postgresql-is-released-under-apache-2-0-and-available-at-github/ > > For those who do not know, Kevin Closson was the technical architect > who has built both Exadata and EMC XTRemIO. He is now the principal > engineer of the Amazon RDS. This part is intended only for those who > would tell him that "Oracle has it is not good enough" if he ever > decided to post here. Interesting subject... I'm working on a migration from PG 9.2 to PG 14 and was wondering which File System should I use. Looking at this thread, looks like I should keep using ext4. I don't know where you have your database deployed, but in my case is in AWS EC2 instances. The way I handle backups is at the block storage level, performing EBS snapshots. This has proven to work very well for me. I had to restore a few backups already and it always worked. The bad part is that I need to stop the database before performing the Snapshot, for data integrity, so that means that I have a hot-standby server only for these snapshots. Lucas --=_0c1bca35fc76fe28e96c184317b5d00f Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

On 2021-10-24 06:48, Mladen Gogala wrote:

=
On 10/23/21 09:37,&nbs= p;Laura Smith wrote:
Hi Mladen,

Yes indeed, = ;snapshots is the primary reason, closely fol= lowed by zfssend/receive.

I'm no stranger to using LVM = snapshots with ext4/xfs but it requires a&nbs= p;custom shell script to manage the whole&nbs= p;process around backups.  I feel the wh= ole thing could well be a lot cleaner&nb= sp;with zfs.

Th= ank you for the links, I will take = a look.

Laura

Yes, ZFS is extremely convenient. It's a volume manager and a file sy= stem, all rolled into one, with some additiional convenient tools. However,= performance is a major concern. If your application is OLTP, ZFS might be = a tad too slow for your performance requirements. On the other hand, snapsh= ots can save you  a lot of time with backups, especially if you have s= ome commercial backup capable of multiple readers. If your application is O= LTP, ZFS might be a tad too slow for your performance requirements. The onl= y way to find out is to test. The ideal tool for testing is pgio:

https://kevinclosson.net/2019/09/21/announcing-pgio-the-slob-metho= d-for-postgresql-is-released-under-apache-2-0-and-available-at-github/<= /span>

For those who do not know, Kevin Closson was the technica= l architect who has built both Exadata and EMC XTRemIO. He is now the princ= ipal engineer of the Amazon RDS. This part is intended only for those who w= ould tell him that "Oracle has it is not good enough" if he ever decided to= post here.
=  
=  
= Interesting subject... I'm working on a migration from PG 9.2 to PG 14 and = was wondering which File System should I use. Looking at this thread, looks= like I should keep using ext4.
=  
= I don't know where you have your database deployed, but in my case is in AW= S EC2 instances. The way I handle backups is at the block storage level, pe= rforming EBS snapshots.
=  
= This has proven to work very well for me. I had to restore a few backups al= ready and it always worked. The bad part is that I need to stop the databas= e before performing the Snapshot, for data integrity, so that means that I = have a hot-standby server only for these snapshots.
=  
= Lucas
--=_0c1bca35fc76fe28e96c184317b5d00f--