top | item 45432991

(no title)

throwaway240403 | 5 months ago

There are very real reasons to use ZFS instead of the oldschool Linux block device sandwich. mdadm+luks+lvm still do not quite provide the same set of features that ZFS alone does even without encryption. Namely in-line compression, and data checksumming, not to mention free snapshots.

ZFS is quite mature, the feature discussed in the article is not. As others have pointed out this could have been avoided by running ZFS on top of luks and would have hardly sacrificed any functionality.

discuss

order

eadmund|5 months ago

> mdadm+luks+lvm still do not quite provide the same set of features that ZFS alone does even without encryption. Namely in-line compression, and data checksumming, not to mention free snapshots.

Sure, but LUKS+ZFS provides all that too, and also encrypts everything (ZFS encryption, surprisingly, does not encrypt metadata).

As this article demonstrates, encryption really is an afterthought with ZFS. Just as ZFS rethought from first principles what storage requires and ended up making some great decisions, someone needs to rethink from first principles what secure storage requires.

heavyset_go|5 months ago

> Namely in-line compression, and data checksumming, not to mention free snapshots.

You get these for free with btrfs

kelnos|5 months ago

It's a little weird to denounce the "block device sandwich" and then say that they should have used... a variation of the block device sandwich.

> There are very real reasons to use ZFS

I feel like, for the types of person GP is talking about, they likely don't really need to use ZFS, and luks+md+lvm would be just fine for them.

Like the GP, I have such a setup that's been in operation for 15-20 years now, with none of the original disks, probably 4 or 5 full disk swaps, starting out as a 4x 500GB array, which is now a 5x 8TB array. It's worked perfectly fine, and the only times I've come close to losing data is when I have done something truly stupid (that is, directly and intentionally ignored the advice of many online tutorials)... and even then, I still have all my data.

Honestly the only thing missing that I wish I had was data checksumming, and even then... eh.

pixl97|5 months ago

Run enough disks long enough and you'll find one that starts returning garbage while telling the OS everything is ok.

First time I had it happen was on a hardware raid device and a company lost 2 and a half days worth of data as any backups from when it started had bad data.

The next time I had it happen is using ZFS and we saw a flood of checksum errors and replaced the disk. Even after that SMART thought it was perfectly fine and you could send commands to it, you just got garbage back.

conception|5 months ago

How do you know you’ve lost no data? Do you checksum all your files? Bits gonna rot.