6 ms·
Yes, and those are good features. But there's still plenty of room for errors. Bugs in the code, bad interactions with hardware, etc. Those are areas where ZFS
by joosters 14y ago
Yes, and those are good features. But there's still plenty of room for errors. Bugs in the code, bad interactions with hardware, etc. Those are areas where ZFS is likely to be just as vulnerable as other file systems. More so, in fact, given the code size/complexity and its (relative) immaturity.
I suspect (but I have no data!) that the majority of times that users have file system corruption and need to run fsck is due to bad software behaviour, and not failing disks.
- jiggy2011 14y agoZFS itself has been around for a while, was originally part of Solaris IIRC. It's using it on Linux that's new. If you have a bad software write, ZFS should be able to detect that in the same way it would a hardware error since the checksums won't match. Also worth noting that the checksums are themselves checksummed in a merkle tree. It also has a tool called "scrub" which can check data integrity without unmounting the disk. Of course if your filesystem has buggy code for checksumming/repair then you are boned whatever.
- dmpk2k 14y agoDisk lie. A lot. Ask anybody who has the misfortune to work on a filesystem for any length of time. One thing to keep in mind is that ZFS is more complex than your typical filesystem, but it's also one of the few filesystems that's effectively a cryptographically self-validating tree. You're a lot more likely to have a disk lie to you than ZFS flake out.
- tjoff 14y agoAnd the whole point of RAID is to combat that... But since there is no decent recovery tools for ZFS your entire FS might be toast if the wrong bits are turned. Yes ZFS is quite resilient against corruption but when it bites, which has happened plenty of times in the past, you are truly screwed. The philosophy behind ZFS and file system recovery has always been that it is too inconvenient. It is much better to restore from tape backups so why make any effort on recovery? Thing is, most consumers don't have tape backups... Because of that, ZFS is in the very vast majority of cases a bad choice for home users, especially under linux where it can hardly be considered mature. BRTFS just isn't ready yet. As a home user you can't even get a decent COW FS with decent snapshotting or checksums. That is the sad state we are in and will be in for many years to come.
- jiggy2011 14y agoI don't quite understand what corruption scenarios fsck on Ext4 would save you from that ZFS wouldn't? Most data on consumer's computers is 1 disk failure away from loss anyway, hence the popularity of cloud syncing services.
- X-Istence 14y agoPlease tell me how my entire FS will be toast if the wrong bits are turned, especially when zraid2 is really the only valid solution that should be used. I've been using ZFS for years now, i've had disks go bad, I've replaced them. ZFS has protected me from data loss better than anything else. In the past when I've had the disk lie to me, ZFS was able to tell me what files were corrupted and thus had invalid data. I'm going to need to throw a [citation needed] on your post.
- tjoff 14y agoIf this is news to you you really haven't been paying attention... http://www.osnews.com/story/22423/Should_ZFS_Have_a_fsck_Tool_ http://www.osnews.com/story/22423/Should_ZFS_Have_a_fsck_Too...
- X-Istence 14y agoI have been paying attention, and in a lot of cases where there is corruption a fsck wouldn't help anyway. I've had corruption on ZFS, UFS, ext3, ext4, HFS, HFS+ and the only one where I have lost almost no data or no data at all is ZFS (the only time I've lost data on ZFS is when it warned me that the disk was silently given me bad data back because of its end-to-end checksumming, and I didn't have a mirror). UFS, ext3, ext4 would have continued on giving me bad data back. Are there going to be cases whereby a file system fails completely? Yes, but writing tools to attempt to fix those issues that happen once in a million times is almost impossible because of the difficulty of replicating those failure scenarios and then writing code to deal with the disks having that corruption. I still trust ZFS with more data than any other file system.
- dmpk2k 14y ago