3 ms·
Linux 4.12 introduced dm-integrity, which adds integrity checking at the block device level, so it will work with any file system: https://gitlab.com/cryptsetu
by mrob 9y ago
Linux 4.12 introduced dm-integrity, which adds integrity checking at the block device level, so it will work with any file system:
https://gitlab.com/cryptsetup/cryptsetup/wikis/DMIntegrity https://gitlab.com/cryptsetup/cryptsetup/wikis/DMIntegrity
- zerd 9y agoOne good thing about ZFS integrity checking is that when it finds an error it can repair the bit rot from another disk if you have parity or mirroring. Can dm-integrity do that?
- harshreality 9y agoNot so far, it seems. https://www.spinics.net/lists/dm-devel/msg31482.html https://www.spinics.net/lists/dm-devel/msg31482.html > this target do not provide error correction, only detection of error (such a tool could be written on top of dm-integrity though)
- Veratyr 9y agodm-integrity will only operate on a single disk so no, not on its own. It does however return an error if the integrity check fails, so if you put mdadm on top, mdadm can repair the erroneous block. I've tested this and am currently running it on a 32TB array.
- rleigh 9y agoOr multiple copies of the data (copies=n property).