<div dir="ltr">You could accomplish this be creating a custom RA which normally acts as a pass-through and calls the "real" RA.  However, it intercepts "monitor" actions, checks nfs, and if nfs is down it returns success, otherwise it passes though the monitor action to the real RA.  If nfs fails the monitor action is in-flight, the customer RA can intercept the failure, check if nfs is down, and if so change the failure to a success.  </div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 20, 2018 at 3:51 AM Ulrich Windl <<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-regensburg.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
I wonder whether it's possible to run a monitoring op only if some specific resource is up.<br>
Background: We have some resource that runs fine without NFS, but the start, stop and monitor operations will just hang if NFS is down. In effect the monitor operation will time out, the cluster will try to recover, calling the stop operation, which in turn will time out, making things worse (i.e.: causing a node fence).<br>
<br>
So my idea was to pause the monitoing operation while NFS is down (NFS itself is controlled by the cluster and should recover "rather soon" TM).<br>
<br>
Is that possible?<br>
And before you ask: No, I have not written that RA that has the problem; a multi-million-dollar company wrote it (Years before I had written a monitor for HP-UX' cluster that did not have this problem, even though the configuration files were read from NFS (It's not magic: Just periodically copy them to shared memory, and read the config from shared memory).<br>
<br>
Regards,<br>
Ulrich<br>
<br>
<br>
_______________________________________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org" target="_blank">Users@clusterlabs.org</a><br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</blockquote></div>