From: David Disseldorp <ddiss@suse.de>
To: Amitay Isaacs <amitay@gmail.com>
Cc: Samba Technical <samba-technical@lists.samba.org>,
"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: [PATCH] Ceph RADOS cluster mutex helper for Samba CTDB
Date: Tue, 6 Dec 2016 13:14:04 +0100 [thread overview]
Message-ID: <20161206131404.38f737d0@suse.de> (raw)
In-Reply-To: <CAJ+X7mTkBLQDYb+r9LELQe-sqfG_4YkQ9HbkDFAp70cPp7V8zA@mail.gmail.com>
On Tue, 6 Dec 2016 18:58:41 +1100, Amitay Isaacs wrote:
> On Fri, Dec 2, 2016 at 1:17 AM, David Disseldorp <ddiss@suse.de> wrote:
>
> > Hi,
> >
> > The attached patch-set implements a cluster mutex helper for Samba CTDB
> > using Ceph librados.
> >
> > ctdb_mutex_ceph_rados_helper_lock can be used as a recovery lock provider
> > for CTDB. When configured, split brain avoidance during CTDB recovery
> > will be handled using locks against an object located in a Ceph RADOS
> > pool.
> >
> > I've also attached a standalone test script - @Martin: does this belong
> > in the ctdb test suite, or can I just commit it as a standalone test?
> > It has a few non-standard dependencies: a running Ceph cluster, the
> > rados and jq binaries.
> >
> > Feedback appreciated.
> >
> >
> This code does not belong in ctdb/tools. You can move it to an appropriate
> directory in ctdb/utils.
>
> Please include the test code also as part of the commit. Someone with
> ceph-rados setup should be able to run this test.
> I would appreciate if you can add few comments in the test script
> describing the requirements and how to run the test.
Thanks for the feedback, Amitay. Please find a v2 patchset attached,
with the following changes:
- move ctdb_mutex_ceph_rados_helper under ctdb/utils/ceph
- add test_ceph_rados_reclock.sh and document usage
Cheers, David
--
ctdb/doc/Makefile | 3 +-
ctdb/doc/ctdb_mutex_ceph_rados_helper.7.xml | 90 +++++
.../utils/ceph/ctdb_mutex_ceph_rados_helper.c | 334 ++++++++++++++++++
ctdb/utils/ceph/test_ceph_rados_reclock.sh | 151 ++++++++
ctdb/wscript | 19 +
5 files changed, 596 insertions(+), 1 deletion(-)
next prev parent reply other threads:[~2016-12-06 12:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-01 14:17 [PATCH] Ceph RADOS cluster mutex helper for Samba CTDB David Disseldorp
[not found] ` <CAJ+X7mTkBLQDYb+r9LELQe-sqfG_4YkQ9HbkDFAp70cPp7V8zA@mail.gmail.com>
2016-12-06 12:14 ` David Disseldorp [this message]
2016-12-06 12:18 ` David Disseldorp
[not found] ` <CAJ+X7mRh04D+Yvtf0xx3dT6rTa=9KvJagyK=1PJQC=1R+u++7w@mail.gmail.com>
2016-12-08 18:39 ` David Disseldorp
2016-12-09 3:11 ` Amitay Isaacs
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=20161206131404.38f737d0@suse.de \
--to=ddiss@suse.de \
--cc=amitay@gmail.com \
--cc=ceph-devel@vger.kernel.org \
--cc=samba-technical@lists.samba.org \
/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.