File does not match checksum

Checksum errors are evil. Finding the actual cause is non trivial. They never happen when we tried to provoke them with corner cases, race conditions etc.

Repair on the other hand is quite easy, with one caveat, unfortunately.

The caveat is, that after doing the above, we cannot say if the files are actually corrupt or, if it was just metadata that got corrupted. Please make a list of the “fixed” files, and try to verify them manually or otherwise. If you log in to the server, and dmesg or smartctl show you disk errors, then it is more likely, that the files are actually corrupt, and the checksum errors are actually “correct”.

1 Like