Repository navigation
Replies: 3 comments
|
Hey, thanks for the detailed report. Unfortunately, the honest answer is that the fs is most likely toast at this point. Once a chunk fails its checksum, we're in an unknown-state situation. We can't reliably guess what the correct bytes should have been, and there's no safe way to "repair" forward from that. Returning the corrupted bytes up to ZFS wouldn't help either, since ZFS would just see the same corruption and reject it; the infinite-retry behavior you're seeing is essentially the layer below refusing to hand up data it knows is bad. There is a manual recovery path: you can edit the manifest to drop the affected SST(s) and bring the pool back up with whatever data remains. That will lose whatever was in those SSTs, but it should be enough to get back some data, though it's unclear how useful that would be if you had ZFS (without raidz / mirroring) on top. I'm intentionally not exposing this as an Re: the log spam and the hang, I think that's fair. There's a reasonable argument for failing the read fast with an I/O error after N retries instead of looping forever. If you want to try the manual manifest surgery, let me know and we can figure this out. |
|
Hi, thanks for the detailed and fast response. I'll drop the pool and re-create a - now - mirrored one instead: Case closed. a short understanding questionIs there a single checksum for a whole 256MB sst (sort-of x-amz-checksum-md5), or, has each 'kb' block of data in an sst it's own checksum? So in case, there really is a bit-rot like error situation in a single 16kb block of data and, this block has it's own checksum and is detectable as "broken", while the rest of the 256MB-16kb are calculateable as still okay, even on a mirrored pool, it would feel unlucky to delete a whole 256MB sst block of data as a fix. some thoughsNot sure, why I hadn't created a mirrored pool in the first place. Using zfs since roughly 15 years now on my mac data pools (back then with a commercial solution called ZEVO, fun fact) and later on my linux servers / work stations. Always with raidz1 and never lost a single bit of data in terabytes of archive. So this is - sort of - a premiere to me, but okay, on a none-mirrored pool, seems a fair disaster zfs-wise. But somehow thought, that, using a commercial s3 service (were data-integrety is a must-have-&-by-design feature), my remote backups would still be safe for my backups even without a mirrored pool on my side. Looks like I learned something new and important here. Thanks for your great work here ! |
|
On the checksum question: it's per-block, not per-SST. Every 32K block has its own CRC, so detection actually is fine-grained. In your case only the one bad block would have failed, and the rest of the 256MB SST would most likely verify fine. Dropping the whole SST to deal with a single bad 32K block is heavier than it ideally needs to be. The catch is that a CRC only detects corruption, it can't correct it. There's no redundant information stored alongside the block to reconstruct the original bytes. Once a 32K block is bad, it's gone, even though we know precisely which one it is. To recover just that block instead of the whole SST, you'd need error-correction codes (parity/redundancy) stored per block, which ZeroFS doesn't do today; blocks are CRC-only. And the manual manifest path operates at SST granularity, so even with block-level detection, the surgery is still coarse. Could ZeroFS add ECC? Technically yes. But that's the same line again, storing redundancy to survive bad reads is durability work, and that belongs to the object store (or to ZFS redundancy on top). I'd rather not reimplement it inside ZeroFS. Thanks for the kind words, and good luck with the rebuild! |
Uh oh!
There was an error while loading. Please reload this page.
Failed to read chunk (inode=2, chunk=14286976): Data error: checksum mismatch in zero_test/compacted/01KSJAHH8TJNQ3JGVH8RD4A1G3.sst
Using zerofs+nbd with a zpool for remote backups, worked great the last months on hetzner. Now upgraded from 1.1.6 to 1.1.13 (not sure if this was the reason or that hetzner s3 still feels like a not-stable solution since months to me).
Actually, not that much interested how the checkum error occurred in the first place, but, what now? The error message is spammed in the log every 10-40ms and the read operation blocks forever? Error occurs during "zpool import" and, looks like zfs hangs forever here, too. Quite sure, that, if there really is a broken chunk on S3, it will not recover anymore, as, it is broken ?!
I'm not a file system specialist, but, I would expect now, that, the simulated block devices communicates some "sorry, can not read that block, by bad" to zfs or the block device at least return the "original read&bloken data block", which is read from s3 and let zfs deal with it and either it still can import the pool or not.
What is the expected behavior here for zerofs / ndb, when there really is a checksum error on the S3 chunk? And mainly: How can I recover from the situation now? Is there any "maxChecksumErrorRetry" setting or a "onChecksumErrorDo=IgnoreStrategy" setting?
Thanks for your support!
All reactions