Robin Hill wrote: > On Thu Mar 20, 2008 at 02:32:37PM +0100, Bas van Schaik wrote: > >> Anyone able to answer the last and most important question: does it >> produce a message during resync in case of corruption? That would be great! >> > There's no explicit message produced by the md module, no. You need to > check the /sys/block/md{X}/md/mismatch_cnt entry to find out how many > mismatches there are. Similarly, following a repair this will indicate > how many mismatches it thinks have been fixed (by updating the parity > block to match the data blocks). > Marvellous! I naively assumed that the module would warn me, but that's not true. Wouldn't it be appropriate to print a message to dmesg if such a mismatch occurs during a check? Such a mismatch clearly means that there is something wrong with your hardware lying beneath md, doesn't it? > I've no idea whether the checkarray script you're using is checking this > counter - there seems little point in having a special script if it > isn't though. > If I understand the meaning of this counter, it would be sufficient to check the value of it _before_ the check operation and compare that value to the counter value _after_ the check. If the counter has increased: the check has encountered some inconsistencies which should be reported. Please correct me if I'm wrong! Cheers, Bas -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html