<div dir="ltr"><div>Just to make things clearer. These results are not false-positive, they are real. False-positive also happen but rarely. I do check for false-positive using the following script:<br>----------------------------------------------------------<br>
#!/bin/bash<br><br># Usage: cat /var/log/kern.log | drbd_out_of_sync_compare.sh<br><br>#echo &#39;Mar 31 10:24:04 virt1 kernel: block drbd0: Out of sync: start=1036171232, size=8 (sectors)&#39;<br>while read line; do<br>        if [[ $line =~ Out\ of\ sync:\ start=([0-9]+),\ size=([0-9]+) ]]; then<br>
                start=${BASH_REMATCH[1]}<br>                size=${BASH_REMATCH[2]}<br>                echo $start - $size<br>                sum1=$(ssh 10.10.10.1 dd iflag=direct if=/dev/drbd0 bs=512 skip=$start count=$size 2&gt;/dev/null &lt; /dev/null | md5sum | awk &#39;{print $1}&#39;)<br>
                sum2=$(ssh 10.10.10.2 dd iflag=direct if=/dev/drbd0 bs=512 skip=$start count=$size 2&gt;/dev/null &lt; /dev/null | md5sum | awk &#39;{print $1}&#39;)<br>                if [[ $sum1 = $sum2 ]]; then<br>                        echo OK: $sum1 - $sum2<br>
                else<br>                        echo ERR: $sum1 - $sum2<br>                        ssh 10.10.10.1 dd iflag=direct if=/dev/drbd0 bs=512 skip=$start count=$size 2&gt;/dev/null &lt; /dev/null &gt; /tmp/${start}_${size}_1<br>
                        ssh 10.10.10.2 dd iflag=direct if=/dev/drbd0 bs=512 skip=$start count=$size 2&gt;/dev/null &lt; /dev/null &gt; /tmp/${start}_${size}_2<br>                fi<br>        fi<br>done<br>----------------------------------------------------------<br>
<br></div><div>And results look like:<br>----------------------------------------------------------<br>253182888 - 16<br>OK: 0829f71740aab1ab98b33eae21dee122 - 0829f71740aab1ab98b33eae21dee122<br>253182904 - 8<br>OK: 620f0b67a91f7f74151bc5be745b7110 - 620f0b67a91f7f74151bc5be745b7110<br>
253182952 - 8<br>OK: 620f0b67a91f7f74151bc5be745b7110 - 620f0b67a91f7f74151bc5be745b7110<br>253250344 - 8<br>OK: 620f0b67a91f7f74151bc5be745b7110 - 620f0b67a91f7f74151bc5be745b7110<br>253259336 - 8<br>OK: 620f0b67a91f7f74151bc5be745b7110 - 620f0b67a91f7f74151bc5be745b7110<br>
719214256 - 8<br>OK: 0132ffdc961a93ab39f3687b2168b326 - 0132ffdc961a93ab39f3687b2168b326<br>719214264 - 8<br>OK: e824f6f1a60c23fea04cfb5d080747c2 - e824f6f1a60c23fea04cfb5d080747c2<br>719299576 - 8<br>OK: a969c6562450baa0c5306fe89fe6d4f9 - a969c6562450baa0c5306fe89fe6d4f9<br>
1085832880 - 8<br>OK: 9da8849288dcaa863b96d6cf5d9fee09 - 9da8849288dcaa863b96d6cf5d9fee09<br>1085972048 - 8<br>ERR: 708d5019b36d8bc6ef68fbdf431efbb3 - bffe661e808e1b42a4c5e1cad490ec0c<br>1085972072 - 8<br>ERR: a381fea0de0a34d01db0e4d7a9f9e824 - d1d6d30932ba15611cfac831e337e634<br>
1086079632 - 8<br>ERR: 75e2d49f51a691998d1e9023b252aa51 - d367cfbd482fde9827ccef063b4b55a9<br>1086079528 - 8<br>ERR: 08637fb9b63c59db91c8179a22c9e4f7 - e421dc61e71d95bc63d9ab3fd834aa3e<br>1086079592 - 8<br>ERR: 483c379d346769f711721b4df154415b - 132f45d198b603e3f33cee750a21602d<br>
1086079440 - 16<br>ERR: a8cb7da5e9da13d910b5afdbdb2721d9 - 717acb3d5b7403690f4f33340855a14c<br>1086128384 - 8<br>ERR: 31a1740dce4b305eb7a888a35de48ac8 - 53bc81a20e9ab5bddba35d742d3a7551<br>----------------------------------------------------------<br>
<br></div><div>Most of the time (99%) I see ERR for the swap space of virtual machines.<br><br></div><div>Best regards,<br>Stanislav<br></div></div>