In this case, node1 which is kdumping executes a kdump_pre script that tells node2 that it is kdumping.<div>Upon this notification, node2 then tries to take over the service.</div><div><br></div><div>I hate my current work-around because:</div>
<div>1) It assumes how much time it takes to do kdump</div><div>2) If the machine dies (say power completely unplugged), I would still have post_fail_delay to wait for (unnecessary wait).</div><div><br></div><div>My guess is custom-fencing will allow me to react differently:</div>
<div>1) While the other node is kdumping, return success (and thus, the rgmanager will go ahead and take over the rsources)</div><div>2) If the node is not kdumping, do the usual fencing and return the code for the usual fencing</div>
<div><br></div><div>It sounds do-able; it does add another layer of complexity to what I already have (with pre_dump, post_dump scripts, services listening on both ends to know the other node is kdumping)</div><div><br></div>
<div>Thanks again for input.</div><div><div><br><div class="gmail_quote">On Wed, Apr 14, 2010 at 3:32 PM, Gordan Bobic <span dir="ltr"><<a href="mailto:gordan@bobich.net">gordan@bobich.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">My LinuxHAList wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What can I do at node2 to forcefully take over the service from node1 after node2 is contacted by node1 at kdump_pre stage ?<br>
</blockquote>
<br>
<br></div>
Sounds like you need to write your own fencing script that will return successfully fenced status when it knows node2 is down and dumping, and only reboot it some time later. How can you remotely check that the failed node is actually kdumping?<br>

<br>
Gordan<br><font color="#888888">
<br>
--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
</font></blockquote></div><br></div></div>