4 ms·
It would be great to see a breakdown ans gyidance to integrity checking of files through BTRFS/ZFS/ etc. I have recently started using BTRFS snapshots on my pl
by ClumsyPilot 6y ago
It would be great to see a breakdown ans gyidance to integrity checking of files through BTRFS/ZFS/ etc.
I have recently started using BTRFS snapshots on my playground server, and my god is this awesome. I get ZFS is quite special, but why is BTRFS not default FS?
- mceachen 6y ago> It would be great to see a breakdown and guidance to integrity checking of files through BTRFS/ZFS/ etc. Like, if try to cause bitrot manually, and see how each recover? There's this: https://askubuntu.com/questions/406463/how-can-i-flip-a-single-bit-in-a-file https://askubuntu.com/questions/406463/how-can-i-flip-a-sing... Incidently: I thought ZFS was ancient, and btrfs was a fairly new project, but I was wrong: - ZFS was available in 2004: https://en.wikipedia.org/wiki/ZFS#Sun_Microsystems_(to_2010) https://en.wikipedia.org/wiki/ZFS#Sun_Microsystems_(to_2010) - btrfs was available in mainline linux in 2009: https://en.wikipedia.org/wiki/Btrfs#History https://en.wikipedia.org/wiki/Btrfs#History > why is BTRFS not default FS Perhaps because there are still some sharp edges around btrfs, particularly around RAID56 support. See https://btrfs.wiki.kernel.org/index.php/Status https://btrfs.wiki.kernel.org/index.php/Status for details.
- moviuro 6y agoBTRFS blew up under my feet in July 2019 (Archlinux, up-to-date at the time). Sure, I powered down the machine with its reset switch, but it borked the FS; it refused to mount RW and some of my files were inaccessible. Even though it had been some ~3 years with no issues whatsoever, btrfs still isn't up-to-par with ZFS' stability. Good thing I had syncthing running.
- dsego 6y agoYikes, now you have me worried. I've recently set up btrfs on a Synology, mostly to get the advanced features like scrubbing and snapshots. But if it's too risky maybe I should've gone with ext4.
- moviuro 6y agoMeh, it's risky if you only have all your eggs in one basket. Just put multiple copies of your data everywhere, and don't think too much about it. Also, maybe Synology will manage its drives better than I did in my multiple-purpose desktop machine.
- dsego 6y agoSomeone gave me a reply on a different HN post that synology btrfs is fine, since it's using a different raid implementation? Hope I understood that right.
- saalweachter 6y agoI wonder how hard it would be to do a survey to turn anecdotes into data, rather than trying to do some sort of test to simulate corruption. Like, I've been using ZFS for about 10 years without a problem -- I had a disk in a mirrored setup go bad that I didn't notice for awhile, and when I replaced and rebuilt, I had a couple of files which had suffered corruption. But that's just my personal anecdote; I'm quite confident there are people using BTFS who can quote similar track records, and I assume there are people who have seen ZFS shit the bed for one reason or another.
- quantumofalpha 6y agoMy experience as well! I've tried btrfs as root filesystem (because I wanted checksummed root and btrfs is easily available out of the box) a few times every now and then, last time probably 1-2 years ago - invariably it always somehow f*cked itself up sooner or later. In contrast, I never had a single non-hardware-related problem with ZFS in maybe decade of using it for NAS. It's totally rock solid! I've recently figured out how to do unattended root on ZFS setup to provision my PCs and never going back to btrfs no more.
- jstimpfle 6y agoI don't know if it ever got better, but in 2015 I lost multiple BTRFS file systems that we operated at near capacity limit, with a hefty churn of files. The FS wasn't shutdown without unmounting, or anything like that, but just used intensively. We had heard that you should keep plenty of unused space on BTRFS file systems, and this must be why. The file systems couldn't be restored with the official suite of tools. It was a backup anyway and we restored the data from secondary backup. I'm not positive that there is any other file system that I've ever lost significant data on.