Skip to contentSkip to conversation

Checksumming blocks? [was Re: the " 'official' point of view" expressed by kernelnewbies.org regarding reiser4 inclusion]

DISCUSSION Horst H. von Brand 1 participant 1 message Aug 4, 2006 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 8 lines · Tomasz Torcz
Quoted 6 lines · Russell Leighton

If the software (filesystem like ZFS or database like Berkeley DB) finds a mismatch for a checksum on a block read, then what?

Is there a recovery mechanism, or do you just be happy you know there is a problem (and go to backup)?

Quoted 8 lines

ZFS readsthis block again from different mirror, and if checksum is
right -- returns good data to userspace and rewrites failed block with good data.

Note, that there could be multiple mirrors, either physically (like
RAID1) or logically (blocks could be mirrored on different areas of the same disk; some files can be protected with multiple mirrors, some left unprotected without mirrors).

Murphy's law will ensure that the important files are unprotected. And the 1st Law of Disk Drives (they are always full) will ensure that there are no mirrored pieces anyway...

Signature · 4 lines
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513