From: Sunil Mushran <sunil.mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] Call userspace script when self-fencing
Date: Thu, 09 Dec 2010 10:24:41 -0800 [thread overview]
Message-ID: <4D011EE9.2020003@oracle.com> (raw)
In-Reply-To: <20101209101143.4niwmlbyjccc0444@webmail.astek.fr>
Is it safe to call usermode_helper from an interrupt context?
Even if it is safe, we cannot do this because we cannot rely on an
external script. Any delay and either the cluster hangs or worse,
corruption.
If you want to use external fencing, then my suggestion would be
to look at latest fedora, opensuse, ubuntu, debian or sles11 which
bundle ocfs2 and the pacemaker cluster stack. You can then configure
ocfs2 to use the pcmk stack and make use of its different fencing
agents.
On 12/09/2010 01:11 AM, nagius at astek.fr wrote:
>
> Hi,
>
> According to comments in file fs/ocfs2/cluster/quorum.c:70 about the self-fencing operations :
>
> /* It should instead flip the file
> * system RO and call some userspace script. */
>
> So, I tried to add it (but i did'nt find a way to flip the fs in RO).
>
> Here is a proposal for this functionnality, based on ocfs2-1.4.7.
> This patch add an entry 'fence_cmd' in /sys to specify an userspace fence script.
> This behavior can be selected by echoing the new keyword 'cmd' in fence_method.
>
> Example :
>
> echo "/usr/local/sbin/my_fencer"> /sys/kernel/config/cluster/ocfs2/fence_cmd
> echo "cmd"> /sys/kernel/config/cluster/ocfs2/fence_method
>
>
> Hope this could interest someone.
>
> Nicolas AGIUS
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20101209/60f3fa54/attachment.html
prev parent reply other threads:[~2010-12-09 18:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-09 9:11 [Ocfs2-devel] [PATCH] Call userspace script when self-fencing nagius at astek.fr
2010-12-09 18:24 ` Sunil Mushran [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D011EE9.2020003@oracle.com \
--to=sunil.mushran@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.