All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: CTDB Cluster Samba on Cephfs
@ 2013-04-03 20:53 Sam Lang
       [not found] ` <CAKMAVE9FBKzZwrrO9psK-h95V6V=tufnsRApu7mMjc5cZx7_cQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2013-04-12 23:14 ` [ceph-users] " Jeremy Allison
  0 siblings, 2 replies; 5+ messages in thread
From: Sam Lang @ 2013-04-03 20:53 UTC (permalink / raw)
  To: Kai Blin
  Cc: ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org,
	Volker.Lendecke-3ekOc4rQMZmzQB+pC5nmwQ, samba-technical,
	ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Thu, Mar 28, 2013 at 6:32 AM, Kai Blin <kai-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2013-03-28 09:16, Volker Lendecke wrote:
>> On Wed, Mar 27, 2013 at 10:43:36PM -0700, Matthieu Patou wrote:
>>> On 03/27/2013 10:41 AM, Marco Aroldi wrote:
>>>> Hi list, I'm trying to create a active/active Samba cluster on
>>>> top of Cephfs I would ask if Ceph fully supports CTDB at this
>>>> time.
>>> If I'm not wrong Ceph (even CephFS) do not support exporting a
>>> block device or mounting the same FS more than once whereas CTDB
>>> explicitly require that you have a distributed filesystem where
>>> the same filesystem is mounted across all the nodes.
>>
>> Is that true? I thought Ceph was one of the cluster filesystems
>> doing just that. What is Ceph if not a cluster file system?
>
> There's some problem with mounting the in-kernel cephfs driver on
> systems running the osd, iirc. I had to use the fuse-based driver to
> mount, which obviously is not too great, speed-wise.
> See http://ceph.com/docs/master/faq/#try-ceph for a better description
> of the issue.

Just to let folks know, we have a ceph vfs driver for samba that we
are testing out now.  We're planning to resolve a few of the bugs that
we're seeing presently with smbtorture, and send a pull request to the
samba repo.  If anyone wants to help with testing, let us know.  The
changes currently reside in the ceph branch of
http://github.com/ceph/samba.

-slang [inktank dev | http://www.inktank.com | http://www.ceph.com]

>
> Cheers,
> Kai
>
> - --
> Kai Blin
> Worldforge developer http://www.worldforge.org/
> Wine developer http://wiki.winehq.org/KaiBlin
> Samba team member http://www.samba.org/samba/team/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with undefined - http://www.enigmail.net/
>
> iEYEARECAAYFAlFUKl8ACgkQEKXX/bF2FpRjMwCghOWYnWX1RtxtygqcLYDES3EC
> nXkAoIe0aPX5AA+mF1d0rf74s0+i4gVM
> =aYfR
> -----END PGP SIGNATURE-----
> _______________________________________________
> ceph-users mailing list
> ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CTDB Cluster Samba on Cephfs
       [not found] ` <CAKMAVE9FBKzZwrrO9psK-h95V6V=tufnsRApu7mMjc5cZx7_cQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-04-03 21:42   ` Jeremy Allison
  2013-04-04  6:08   ` Volker Lendecke
  1 sibling, 0 replies; 5+ messages in thread
From: Jeremy Allison @ 2013-04-03 21:42 UTC (permalink / raw)
  To: Sam Lang
  Cc: ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Kai Blin,
	Volker.Lendecke-3ekOc4rQMZmzQB+pC5nmwQ, samba-technical,
	ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org

On Wed, Apr 03, 2013 at 03:53:58PM -0500, Sam Lang wrote:
> On Thu, Mar 28, 2013 at 6:32 AM, Kai Blin <kai-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On 2013-03-28 09:16, Volker Lendecke wrote:
> >> On Wed, Mar 27, 2013 at 10:43:36PM -0700, Matthieu Patou wrote:
> >>> On 03/27/2013 10:41 AM, Marco Aroldi wrote:
> >>>> Hi list, I'm trying to create a active/active Samba cluster on
> >>>> top of Cephfs I would ask if Ceph fully supports CTDB at this
> >>>> time.
> >>> If I'm not wrong Ceph (even CephFS) do not support exporting a
> >>> block device or mounting the same FS more than once whereas CTDB
> >>> explicitly require that you have a distributed filesystem where
> >>> the same filesystem is mounted across all the nodes.
> >>
> >> Is that true? I thought Ceph was one of the cluster filesystems
> >> doing just that. What is Ceph if not a cluster file system?
> >
> > There's some problem with mounting the in-kernel cephfs driver on
> > systems running the osd, iirc. I had to use the fuse-based driver to
> > mount, which obviously is not too great, speed-wise.
> > See http://ceph.com/docs/master/faq/#try-ceph for a better description
> > of the issue.
> 
> Just to let folks know, we have a ceph vfs driver for samba that we
> are testing out now.  We're planning to resolve a few of the bugs that
> we're seeing presently with smbtorture, and send a pull request to the
> samba repo.  If anyone wants to help with testing, let us know.  The
> changes currently reside in the ceph branch of
> http://github.com/ceph/samba.

One thing I noticed. Returning a struct ceph_dir_result *
cast to a DIR * struct won't work in 4.0.x as we expect
dirfd(DIR *) to return a valid file descriptor.

More as I look at it.

Jeremy.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: CTDB Cluster Samba on Cephfs
       [not found] ` <CAKMAVE9FBKzZwrrO9psK-h95V6V=tufnsRApu7mMjc5cZx7_cQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2013-04-03 21:42   ` Jeremy Allison
@ 2013-04-04  6:08   ` Volker Lendecke
  1 sibling, 0 replies; 5+ messages in thread
From: Volker Lendecke @ 2013-04-04  6:08 UTC (permalink / raw)
  To: Sam Lang
  Cc: ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Kai Blin,
	samba-technical,
	ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org

On Wed, Apr 03, 2013 at 03:53:58PM -0500, Sam Lang wrote:
> Just to let folks know, we have a ceph vfs driver for samba that we
> are testing out now.  We're planning to resolve a few of the bugs that
> we're seeing presently with smbtorture, and send a pull request to the
> samba repo.  If anyone wants to help with testing, let us know.  The
> changes currently reside in the ceph branch of
> http://github.com/ceph/samba.

The comments indicate that ceph is completely userspace. It
might be interesting to look at the aio functions like
pread_send/recv and pwrite_send/recv. In particular for
large data transfers over SMB2 those might give a
performance boost.

With best regards,

Volker Lendecke

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt-3ekOc4rQMZmzQB+pC5nmwQ@public.gmane.org

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ceph-users] CTDB Cluster Samba on Cephfs
  2013-04-03 20:53 CTDB Cluster Samba on Cephfs Sam Lang
       [not found] ` <CAKMAVE9FBKzZwrrO9psK-h95V6V=tufnsRApu7mMjc5cZx7_cQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-04-12 23:14 ` Jeremy Allison
  2013-04-16 15:41   ` Sam Lang
  1 sibling, 1 reply; 5+ messages in thread
From: Jeremy Allison @ 2013-04-12 23:14 UTC (permalink / raw)
  To: Sam Lang
  Cc: Kai Blin, ceph-users@lists.ceph.com, Volker.Lendecke,
	samba-technical, ceph-devel@vger.kernel.org

On Wed, Apr 03, 2013 at 03:53:58PM -0500, Sam Lang wrote:
> On Thu, Mar 28, 2013 at 6:32 AM, Kai Blin <kai@samba.org> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On 2013-03-28 09:16, Volker Lendecke wrote:
> >> On Wed, Mar 27, 2013 at 10:43:36PM -0700, Matthieu Patou wrote:
> >>> On 03/27/2013 10:41 AM, Marco Aroldi wrote:
> >>>> Hi list, I'm trying to create a active/active Samba cluster on
> >>>> top of Cephfs I would ask if Ceph fully supports CTDB at this
> >>>> time.
> >>> If I'm not wrong Ceph (even CephFS) do not support exporting a
> >>> block device or mounting the same FS more than once whereas CTDB
> >>> explicitly require that you have a distributed filesystem where
> >>> the same filesystem is mounted across all the nodes.
> >>
> >> Is that true? I thought Ceph was one of the cluster filesystems
> >> doing just that. What is Ceph if not a cluster file system?
> >
> > There's some problem with mounting the in-kernel cephfs driver on
> > systems running the osd, iirc. I had to use the fuse-based driver to
> > mount, which obviously is not too great, speed-wise.
> > See http://ceph.com/docs/master/faq/#try-ceph for a better description
> > of the issue.
> 
> Just to let folks know, we have a ceph vfs driver for samba that we
> are testing out now.  We're planning to resolve a few of the bugs that
> we're seeing presently with smbtorture, and send a pull request to the
> samba repo.  If anyone wants to help with testing, let us know.  The
> changes currently reside in the ceph branch of
> http://github.com/ceph/samba.

Does the libceph have an async API ?

If we could plug it into the Samba async VFS pread_send/pwrite_send
API you'd get much better performance.

If libceph is thread-safe you could create your own modified
version of vfs_aio_pthread() that called the ceph backend
(although you'll need the ability to set credentials into
the ceph userspace calls to cope with seteuid changes).

Jeremy.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ceph-users] CTDB Cluster Samba on Cephfs
  2013-04-12 23:14 ` [ceph-users] " Jeremy Allison
@ 2013-04-16 15:41   ` Sam Lang
  0 siblings, 0 replies; 5+ messages in thread
From: Sam Lang @ 2013-04-16 15:41 UTC (permalink / raw)
  To: Jeremy Allison
  Cc: Kai Blin, ceph-users@lists.ceph.com, Volker.Lendecke,
	samba-technical, ceph-devel@vger.kernel.org

On Fri, Apr 12, 2013 at 6:14 PM, Jeremy Allison <jra@samba.org> wrote:
> On Wed, Apr 03, 2013 at 03:53:58PM -0500, Sam Lang wrote:
>> On Thu, Mar 28, 2013 at 6:32 AM, Kai Blin <kai@samba.org> wrote:
>> > -----BEGIN PGP SIGNED MESSAGE-----
>> > Hash: SHA1
>> >
>> > On 2013-03-28 09:16, Volker Lendecke wrote:
>> >> On Wed, Mar 27, 2013 at 10:43:36PM -0700, Matthieu Patou wrote:
>> >>> On 03/27/2013 10:41 AM, Marco Aroldi wrote:
>> >>>> Hi list, I'm trying to create a active/active Samba cluster on
>> >>>> top of Cephfs I would ask if Ceph fully supports CTDB at this
>> >>>> time.
>> >>> If I'm not wrong Ceph (even CephFS) do not support exporting a
>> >>> block device or mounting the same FS more than once whereas CTDB
>> >>> explicitly require that you have a distributed filesystem where
>> >>> the same filesystem is mounted across all the nodes.
>> >>
>> >> Is that true? I thought Ceph was one of the cluster filesystems
>> >> doing just that. What is Ceph if not a cluster file system?
>> >
>> > There's some problem with mounting the in-kernel cephfs driver on
>> > systems running the osd, iirc. I had to use the fuse-based driver to
>> > mount, which obviously is not too great, speed-wise.
>> > See http://ceph.com/docs/master/faq/#try-ceph for a better description
>> > of the issue.
>>
>> Just to let folks know, we have a ceph vfs driver for samba that we
>> are testing out now.  We're planning to resolve a few of the bugs that
>> we're seeing presently with smbtorture, and send a pull request to the
>> samba repo.  If anyone wants to help with testing, let us know.  The
>> changes currently reside in the ceph branch of
>> http://github.com/ceph/samba.
>
> Does the libceph have an async API ?
>
> If we could plug it into the Samba async VFS pread_send/pwrite_send
> API you'd get much better performance.
>
> If libceph is thread-safe you could create your own modified
> version of vfs_aio_pthread() that called the ceph backend
> (although you'll need the ability to set credentials into
> the ceph userspace calls to cope with seteuid changes).

It doesn't have an async API, but the internals of libcephfs are all
asynchronous, so adding an async API shouldn't be hard.
-sam

>
> Jeremy.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-16 15:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-03 20:53 CTDB Cluster Samba on Cephfs Sam Lang
     [not found] ` <CAKMAVE9FBKzZwrrO9psK-h95V6V=tufnsRApu7mMjc5cZx7_cQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-03 21:42   ` Jeremy Allison
2013-04-04  6:08   ` Volker Lendecke
2013-04-12 23:14 ` [ceph-users] " Jeremy Allison
2013-04-16 15:41   ` Sam Lang

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.