On 9/27/07, Raoul Bhatia [IPAX] <[EMAIL PROTECTED]> wrote:
> Andrew Beekhof wrote:
> > On 9/17/07, Andrew Beekhof <[EMAIL PROTECTED]> wrote:
> >> On 8/31/07, Raoul Bhatia [IPAX] <[EMAIL PROTECTED]> wrote:
> >>> hi,
> >>>
> >>> i have a problem with hb2, drbd and ocfs2 and two (master-master) nodes:
> >>>
> >>>
> >>> 1) when i start one node:
> >>> heartbeat is starting and activates the 2 drbd devices. most of the time
> >>> they become master (primary) but sometimes even this fails (see attached
> >>> config/logfiles)
> >> i'll look and get back to you
> >
> > hard to say with only info logs and above.
> >
> > can you set "debug 1" in ha.cf and retry?
> >
> > also, it would make my life a lot easier if you gave me a hint as to
> > what part of the logs demonstrate the problem :-)
>
> i don't recall if you refered to the drbd master/slave problem or the
> drbd + ocfs2 one.
>
> the problem somehow lies within the order of drbd/ocfs2 - please refer
> to the attached logfiles.
>
> this does not work:
> > <rsc_colocation id="fs1:on_drbd_www" to="ms_drbd_www" role="master"
> > from="ocfs2_www" score="infinity"/>
>
> this does work:
> > <rsc_colocation id="fs1:0_on_drbd_www" to="ms_drbd_www" to_role="master"
> > from="ocfs2_www:0" score="infinity"/>
> > <rsc_colocation id="fs1:1_on_drbd_www" to="ms_drbd_www" to_role="master"
> > from="ocfs2_www:1" score="infinity"/>
'role' goes with 'from'
'to_role' goes with 'to'
alternativly, try:
<rsc_colocation id="fs1:on_drbd_www" to="ms_drbd_www"
to_role="master" from="ocfs2_www" score="infinity"/>
which pretty much explains why one works and the other not
> in my quick tests, i wasn't able to reproduce master/slave problem thou.
>
> if the new colocation rules solve this issue, feel free to drop it!
did you also see the colocation docs i put up?
http://oss.beekhof.net/~beekhof/heartbeat/docs/
they should clear a few things up
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems