Re: How to use vfs_ceph

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi David,

I am using Samba 4.6.7 (shipped with Ubuntu 17.10). I've got it working now by copying the ceph.client.admin.keyring to /etc/ceph (I'm very unhappy with that). Which Samba Version & Linux Distribution are using? Are you using quotas on subdirectories and are they applied when you export the subdirectory via samba?

Regards Felix


On 12/21/2017 06:19 PM, David Disseldorp wrote:
Hi Felix,

On Thu, 21 Dec 2017 14:16:23 +0100, Felix Stolte wrote:

Hello folks,

is anybody using the vfs_ceph module for exporting cephfs as samba
shares?
Yes, alongside Luminous.
Which version of Samba are you using? Make sure it includes the fix for
https://bugzilla.samba.org/show_bug.cgi?id=12911 .

We are running ceph jewel with cephx enabled. Manpage of
vfs_ceph only references the option ceph:config_file. How do I need to
configure my share (or maybe ceph.conf)?

log.smbd:  '/' does not exist or permission denied when connecting to
[vfs] Error was Transport endpoint is not connected

I have a user ctdb with keyring file /etc/ceph/ceph.client.ctdb.keyring
with permissions:

      caps: [mds] allow rw
      caps: [mon] allow r    caps: [osd] allow rwx
pool=cephfs_metadata,allow rwx pool=cephfs_data

I can mount cephfs with cephf-fuse using the id ctdb and its keyfile.

My share definition is:

[vfs]
      comment = vfs
      path = /
      read only = No
      vfs objects = acl_xattr ceph
      ceph:user_id = ctdb
      ceph:config_file = /etc/ceph/ceph.conf
Your configuration looks fine - can you confirm that the *mapped* Samba
user is permitted access to the root of the CephFS filesystem? Have you
tried using ceph-fuse as the mapped user? If you're still running into
problems, feel free to raise a ticket at bugzilla.samba.org and assign
it to me.

Cheers, David

--
Felix Stolte
IT-Services
Tel.: +49 2461 61-9243
Email: f.stolte@xxxxxxxxxxxxx

Forschungszentrum Jülich GmbH
52425 Jülich
Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir. Dr. Karl Eugen Huthmacher
Geschäftsführung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux