[Linux-HA] OCFS2 and Heartbeat2
Robert Wipfel
rawipfel at novell.com
Thu Aug 10 14:01:05 MDT 2006
>>> On Thu, Aug 10, 2006 at 7:36 AM, in message
<200608101536.24872.mdmlha at designassembly.de>, Matthias Dahl
<mdmlha at designassembly.de> wrote:
> Hello everyone.
[...]
> To make a long story short: OCFS2 self fencing mechanism gave me
headaches
> in
> a two node "cluster" because if one node fails, the other node
immediately
> self fences... which is not what we are looking for. As I understand
the
> newest Heartbeat2 release and several (older) posts to the list, it
is
> possible to use Heartbeat2 as a replacement for the heartbeat
mechanism of
> OCFS2 and thus aviod the self fencing "problem" we have ran into.
This way,
> even a two node setup should work fine.
>
> Unfortunately, I haven't been able to find any documentation on how
this has
>
> been implemented in Heartbeat2 and on how I have to configure
Heartbeat2 for
>
> this.
>
> I appreciate any help or hints I can get.
Configure OCFS2 using ocfs2console - make it match your Linux-ha nodes
and network interfaces.
Setup OCFS2 for user space heartbeats - /etc/init.d/o2cb configure -
enter y for "Use user-space driven heartbeat?"
mkfs.ocfs2 -N <number of cluster nodes> /dev/whatever
The cluster stack doesn't need to be running in order to do this.
/dev/whatever is your shared storage - e.g. iSCSI, FC, SAS etc.
Create a clone cluster resource using Heartbeat's OCF Filesystem
resource agent.
Specify the device, mount point and ocfs2 as your filesystem type. E.g.
use the attach CIB XML fragment like this: cibadmin -C -o resources -x
./ocfs2cloneset.xml
Hth,
Robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ocfs2cloneset.xml
Type: application/octet-stream
Size: 873 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha/attachments/20060810/82435197/ocfs2cloneset.obj
More information about the Linux-HA
mailing list