3 ms·
Non-ZFS Gotchas: Other file systems and RAID setups do not checksum your data. If you have a mirror of two disks (RAID1) and during a read two blocks differ fr
by IgorPartola 12y ago
Non-ZFS Gotchas:
Other file systems and RAID setups do not checksum your data. If you have a mirror of two disks (RAID1) and during a read two blocks differ from one another, most (all?) RAID controllers (hardware and software) will simply choose the lower numbered disk as canonical and silently "repair" the bad block. This leads to loads of silent data corruption on what we might consider a reliable storage solution.
By contrast, ZFS will store both the block and its checksum and will use the block with the correct checksum as canonical.
In other words, if you care about your data at all, use ZFS. I am frankly surprised it's not the standard file system for most situations as it is the only production filesystem that can actually be trusted with data.
P.S.: I have been told that at least on Linux if you have more than two drives, the Linux software RAID controller will try to choose the version of the block that is agreed upon by most drives, if that's possible. This is no guarantee, but it's better than randomly choosing one version.
P.P.S: BTRFS and friends seem to not yet be as production ready as ZFS. Conversely, ZFS works beautifully on Linux thanks to the ZFS on Linux project.
- voltagex_ 12y agoThe last release of zfs on Linux was Aug 23 2013, should I be worried?
- voltagex_ 12y agoSorry about the number of posts, but https://groups.google.com/a/zfsonlinux.org/forum/#!topic/zfs-devel/RUBQHIaUugE https://groups.google.com/a/zfsonlinux.org/forum/#!topic/zfs... makes me very nervous to use ZFS on Linux.
- IgorPartola 12y agoI can only speak from my own limited experience, but for me ZFS on Ubuntu works as advertised. I was trying to put together a long term storage solution without becoming a storage expert. ZFS fit the bill. If you are nervous, go with a BSD: they are great choices.
- tjoff 12y agoI can only speak from my own limited experience, but for me RAID6 on linux works as advertised... I'll gladly take silent data corruption over a hard total failure of the entire volume any day. At least I have a chance at fixing the former, and for my use cases that's preferable. Every time ZFS on linux is brought up it's always met with skepticism, just as a lot of people trying out ZFS in virtual machines discovered the hard way (lost volumes) there are a lot that can go wrong (and it does seem like it can go wrong) and any version running on linux will not have been tested as much making it a risk. And that's the thing you are trying to minimize with using ZFS on Linux in the first place... Now BTRFS isn't ready for production yet so that leaves, well, nothing if you want checksums and cheap snapshots. I guess I'll have to wait another 5 years and see if BTRFS is ready, until then it seems the only thing I can hope for is luck.
- bashinator 12y agoI've had severe problems (kernel panics) running ZFS on linux with heavy NFS load.