On 2020-09-26 23:31, Daniel Pocock wrote:
1) check for differences between source file sectors on each source drive
[...]
I could imagine using kpartx to script a solution to (1) above, skipping
over the md headers. Some kind of shim may be needed to fool the kernel
to see a different UUID for each source volume so they can be mounted
simultaneously without md.
The kernel can do it, on a fully operational array.
cat /sys/block/md0/md/sync_action
echo check > /sys/block/md0/md/sync_action
cat /sys/block/md0/md/sync_action
then
cat /proc/mdstat
cat /sys/block/md0/md/mismatch_cnt
Regards.
--
Roberto Ragusa mail at robertoragusa.it