News for hackers. Stuff that matters.
Re:No, ZFS really doesn't need an fsck tool by joosters on Friday March 29, 2013 @11:29AM (#5461207)
The article doesn't ever consider that ZFS might have bugs. Dodgy disks, bad firmware, power failures, yes. But no consideration that the ZFS code could contain problems.

If you are happy that the ZFS code is perfect, then it makes sense to rely upon its consistency checks, snapshot features, etc (and I'm not criticising those). But what if ZFS isn't 100%? How do you recover your data?

Re:No, ZFS really doesn't need an fsck tool by 4ad on Friday March 29, 2013 @11:34AM (#5461230)
Any filesystem might have bugs and you can't rely on fsck to alleviate that problem (in fact it might make it worse).

That problem is solved by having backups. ZFS dis not a replacement for backups.

Oh, and there's always zdb, the ZFS debugger, you can use it to walk the on-disk structures.

Re:No, ZFS really doesn't need an fsck tool by tjoff on Friday March 29, 2013 @04:20PM (#5462823)
The fsck can't make it worse if you mirror the drive first.

Also, is "you can't rely on fsck to alleviate that problem" an argument for not having an fsck?

Re:No, ZFS really doesn't need an fsck tool by Breakthrough on Friday March 29, 2013 @11:33AM (#5461227)
Even ZFS isn't a replacement for backups. Think of it more as a better indicator of when things are happening that clearly shouldn't be (e.g. hardware problems).
Re:No, ZFS really doesn't need an fsck tool by jiggy2011 on Friday March 29, 2013 @11:38AM (#5461253)
Surely you run that risk with any FS? What about the recovery tools having bugs?
Re:No, ZFS really doesn't need an fsck tool by joosters on Friday March 29, 2013 @11:56AM (#5461325)
True and true. But a decent checker like e2fsck should be paranoid & untrusting of on-disk data structures, and able to retrieve at least some data from a badly-mangled filesystem. It is a fallback tool but a useful one.
Re:No, ZFS really doesn't need an fsck tool by jiggy2011 on Friday March 29, 2013 @12:03PM (#5461361)
I don't quite understand the difference between that and how ZFS is untrusting by holding multiple levels of checksum and having copy-on-write and scrubbing etc.

Is there a particular type of data corruption that fsck would recover that ZFS would not?

Re:No, ZFS really doesn't need an fsck tool by andreasvc on Friday March 29, 2013 @12:41PM (#5461540)
Suppose there is some bug in ZFS or the OS. Checksums will fail (problem is detected), but conceivably, there could be a type of bug that an fsck tool could fix, without having to roll back to a previous version. Another potential advantage is that a fix by fsck could be much quicker than restoring a complete backup.
Re:No, ZFS really doesn't need an fsck tool by Someone on Friday March 29, 2013 @01:43PM (#5461914)
OK. Suppose you are running a buggy ZFS, and it causes problems. Why would you trust a filesystem repair tool written by the people who wrote your buggy filesystem to fix those for you without causing more problems? If anything, I would trust the filesystem more, as it (one would hope) sees way more usage.

If your OS or disks are buggy, you are hosed, anyway, as that checking tool would run on the same OS and hardware.

You should look at ZFS as having a built-in fsck that is automatically invoked when needed.

Re:No, ZFS really doesn't need an fsck tool by jiggy2011 on Friday March 29, 2013 @01:03PM (#5461664)
ZFS should be able to restore a failure in a single block quickly. With fsck you have to unmount the drive to even check. If you have a bad write operation (in ZFS) it should be detected even before the block pointer is set.

I'm not too familiar with exactly how fsck works, but it seems to mainly stitch bad metadata back together so there's still no guarantee that your data is perfectly restored. This would be especially true if a bad FS write operation caused the data to be corrupt.

If the data is really corrupt the FS doesn't have any inherent way of knowing what the correct data should be.

Re:No, ZFS really doesn't need an fsck tool by ot on Friday March 29, 2013 @12:05PM (#5461372)
fsck might have bugs too.