<div dir="ltr">hi i try to resolve drbd split brain automatically using this settings:<br>       handlers {<br>               pri-on-incon-degr       &quot;/usr/local/sbin/sync-unmount-reboot&quot;;<br>               pri-lost-after-sb       &quot;/usr/local/sbin/sync-unmount-reboot&quot;;<br>
               pri-lost                &quot;/usr/local/sbin/sync-unmount-reboot&quot;;<br>        } <br> <br>        net {<br>                cram-hmac-alg sha1;<br>                shared-secret &quot;test&quot;;<br>                #after-sb-0pri discard-zero-changes;<br>
                #after-sb-1pri discard-secondary;<br>                #after-sb-2pri call-pri-lost-after-sb;<br>                allow-two-primaries;<br>                after-sb-0pri       discard-least-changes;<br>                after-sb-1pri       call-pri-lost-after-sb;<br>
                after-sb-2pri       call-pri-lost-after-sb;<br>                rr-conflict         call-pri-lost;<br>                <br>                       }<br>while this is /usr/local/sbin/sync-unmount-reboot:<br><br>
#!/bin/bash<br>#<br># Perform a forced reboot as safely as possible<br># (contrast with reboot -f)<br>#<br><br>#mail -s drbd:forced-reboot root<br><br>ops=(<br>    s # sync        flush any dirty buffers immediately<br>    u # umount      forcibly unmount fses (keeps md devs clean)<br>
    b # reboot      initiate hardware reboot<br>)<br><br>echo 1 &gt; /proc/sys/kernel/sysrq<br><br>for op in ${ops[@]}<br>do echo $op &gt; /proc/sysrq-trigger; sleep 5<br>done<br>~    <br clear="all"><br>after i use any handler such what i used in this configuration pacemaker refuse to start filesystem with unknow error! and as i clean handlers every thing goes right.<br>
whats wrong with using handlers aside pacemaker?<br>-- <br>with the best regards toward you<br>
</div>