<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>for the DEBUG part i found a solution: adding a function for the nop ':' does the trick</div>
<div> </div>
<div>:()<br/>
{ <br/>
echo $@ <br/>
}</div>
<div> </div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Mittwoch, 27. Mai 2015 um 08:37 Uhr<br/>
<b>Von:</b> "DRBD User" <DRBDUser@gmx.at><br/>
<b>An:</b> drbd-user@lists.linbit.com<br/>
<b>Betreff:</b> [DRBD-user] Dual Primary Mode: Shared Directory blocked after node crash until reboot</div>
<div name="quoted-content">Finally i got fencing working !<br/>
<br/>
BUT now i see a gap of about 30sec between the invocation of crm-fence-peer.sh and the stonith-ng 'reboot':<br/>
<br/>
from var/log/messages:<br/>
<br/>
...<br/>
May 26 15:42:00 node1 kernel: drbd r0: conn( Unconnected -> WFConnection ) <br/>
May 26 15:42:00 node1 kernel: drbd r0: helper command: /sbin/drbdadm fence-peer r0<br/>
May 26 15:42:00 node1 crm-fence-peer.sh[16214]: invoked for r0<br/>
...<br/>
May 26 15:42:27 node1 stonith-ng[3204]: notice: log_operation: Operation 'reboot' [16191] (call 2 from stonith-api.16190) for host 'node2' with device 'fencing-node2' returned: 0 (OK)<br/>
...<br/>
<br/>
is this a pacemaker/corosync timeout ? how can i adjust this timing ?<br/>
<br/>
BTW: how can i switch on debug mode for script /usr/lib/crm-fence-peer.sh ?<br/>
for eg.<br/>
: == DEBUG == $cibadmin_invocations cibadmin calls ==<br/>
<br/>
<br/>
thx<br/>
_______________________________________________<br/>
drbd-user mailing list<br/>
drbd-user@lists.linbit.com<br/>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" target="_blank">http://lists.linbit.com/mailman/listinfo/drbd-user</a></div>
</div>
</div>
</div></div></body></html>