<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Is it safe to call usermode_helper from an interrupt context?<br>
    <br>
    Even if it is safe, we cannot do this because we cannot rely on an<br>
    external script. Any delay and either the cluster hangs or worse,<br>
    corruption.<br>
    <br>
    If you want to use external fencing, then my suggestion would be<br>
    to look at latest fedora, opensuse, ubuntu, debian or sles11 which<br>
    bundle ocfs2 and the pacemaker cluster stack. You can then configure<br>
    ocfs2 to use the pcmk stack and make use of its different fencing<br>
    agents.<br>
    <br>
    On 12/09/2010 01:11 AM, <a class="moz-txt-link-abbreviated" href="mailto:nagius@astek.fr">nagius@astek.fr</a> wrote:
    <blockquote
      cite="mid:20101209101143.4niwmlbyjccc0444@webmail.astek.fr"
      type="cite">
      <p>Hi,<br>
        <br>
        According to comments in file fs/ocfs2/cluster/quorum.c:70
        about the self-fencing operations :<br>
        <br>
        /* It should instead flip the
        file<br>
        &nbsp;* system RO and call some userspace script. */<br>
        <br>
        So, I
        tried to add it (but i did'nt find a way to flip the fs in RO).<br>
        <br>
        Here
        is a proposal for this functionnality, based on ocfs2-1.4.7.<br>
        This patch add
        an entry 'fence_cmd' in /sys to specify an userspace fence
        script.<br>
        This
        behavior can be selected by echoing the new keyword 'cmd' in
        fence_method.<br>
        <br>
        Example :<br>
        <br>
        echo "/usr/local/sbin/my_fencer"&gt;
        /sys/kernel/config/cluster/ocfs2/fence_cmd<br>
        echo "cmd"&gt;
        /sys/kernel/config/cluster/ocfs2/fence_method<br>
        <br>
        <br>
        Hope this could
        interest someone.
      </p>
      <p>Nicolas AGIUS</p>
      <br>
      <br>
      ----------------------------------------------------------------<br>
      This message was sent using IMP, the Internet Messaging Program.<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Ocfs2-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Ocfs2-devel@oss.oracle.com">Ocfs2-devel@oss.oracle.com</a>
<a class="moz-txt-link-freetext" href="http://oss.oracle.com/mailman/listinfo/ocfs2-devel">http://oss.oracle.com/mailman/listinfo/ocfs2-devel</a></pre>
    </blockquote>
    <br>
  </body>
</html>