<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 5, 2016 at 3:46 PM, Dan Swartzendruber <span dir="ltr"><<a href="mailto:dswartz@druber.com" target="_blank">dswartz@druber.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">...<br></span>
Marek, thanks. I have tested repeatedly (8 or so times with disk writes in progress) with 5-7 seconds and have had no corruption. My only issue with using power_wait here (possibly I am misunderstanding this) is that the default action is 'reboot' which I *think* is 'power off, then power on'. e.g. two operations to the fencing device. The only place I need a delay though, is after the power off operation - doing so after power on is just wasted time that the resource is offline before the other node takes it over. Am I misunderstanding this? Thanks!<br>
</blockquote></div><br></div><div class="gmail_extra">You are right. Default sequence for reboot is:</div><div class="gmail_extra"><br></div><div class="gmail_extra">get status, power off, delay(power-wait), get status [repeat until OFF], power on, delay(power-wait), get status [repeat until ON].</div><div class="gmail_extra"><br></div><div class="gmail_extra">The power-wait was introduced because some devices respond with strange values when they are asked too soon after power change. It was not intended to be used in a way that you propose. Possible solutions:</div><div class="gmail_extra"><br></div><div class="gmail_extra">*) Configure fence device to not use reboot but OFF, ON</div><div class="gmail_extra">Very same to the situation when there are multiple power circuits; you have to switch them all OFF and afterwards turn them ON.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">*) Add a new option power-wait-off that will be used only in OFF case (and will override power-wait). It should be quite easy to do. Just, send us PR.</div><div class="gmail_extra"><br></div><div class="gmail_extra">m,</div></div>