[Ocfs2-devel] ocfs2_controld.cman
Joel Becker
Joel.Becker at oracle.com
Thu Apr 9 11:45:32 PDT 2009
On Thu, Apr 09, 2009 at 01:38:10PM +0200, Andrew Beekhof wrote:
> On Thu, Apr 9, 2009 at 00:22, Joel Becker <Joel.Becker at oracle.com> wrote:
> >
> > Well, this is going to be fun. I have to figure out which
> > daemon is the "first", and now it's just racy. I could swear that
> > someone told me cpg would guarantee i see the joins in order, not at the
> > same time.
>
> "In order" does not necessarily imply "one node at a time".
>
> I don't consider it unreasonable for two nodes starting (effectively)
> simultaneously to appear in the first membership.
> I believe Heartbeat had the same property.
>
> Why not just take a lock when you want to create the daemon_protocol
> section (and allow the second guy to fail gracefully)?
> Perhaps cpg even has something like this built in...
I don't want to rely on dlm in this daemon. These control
daemons are complex enough, they are our only connection between the fs
and the stack,and we need to make them correct.
Joel
--
"Ninety feet between bases is perhaps as close as man has ever come
to perfection."
- Red Smith
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-devel
mailing list