* [Ocfs2-devel] [PATCH] Call userspace script when self-fencing
@ 2010-12-09 9:11 nagius at astek.fr
2010-12-09 18:24 ` Sunil Mushran
0 siblings, 1 reply; 2+ messages in thread
From: nagius at astek.fr @ 2010-12-09 9:11 UTC (permalink / raw)
To: ocfs2-devel
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20101209/e8648a47/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ocfs2-fence-self-usermode.patch
Type: text/x-diff
Size: 5122 bytes
Desc: not available
Url : http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20101209/e8648a47/attachment-0001.bin
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Ocfs2-devel] [PATCH] Call userspace script when self-fencing
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
0 siblings, 0 replies; 2+ messages in thread
From: Sunil Mushran @ 2010-12-09 18:24 UTC (permalink / raw)
To: ocfs2-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-09 18:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).