<div dir="ltr">hi i try to resolve drbd split brain automatically using this settings:<br> handlers {<br> pri-on-incon-degr "/usr/local/sbin/sync-unmount-reboot";<br> pri-lost-after-sb "/usr/local/sbin/sync-unmount-reboot";<br>
pri-lost "/usr/local/sbin/sync-unmount-reboot";<br> } <br> <br> net {<br> cram-hmac-alg sha1;<br> shared-secret "test";<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 > /proc/sys/kernel/sysrq<br><br>for op in ${ops[@]}<br>do echo $op > /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>