Re: [ceph-users] How to use vfs_ceph
On Fri, 22 Dec 2017 12:10:18 +0100, Felix Stolte wrote: > 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). The ceph:user_id smb.conf functionality was first shipped with Samba 4.7.0 (via commit ec788bead311), so your version is likely lacking this functionality. > Which Samba Version & Linux Distribution are using? With SES5 and openSUSE 42.3 we ship Samba 4.6.9, but it includes a backport of ec788bead311. > Are you using quotas on subdirectories and are they applied when you > export the subdirectory via samba? I've not used them personally, but given that Samba uses the standard libcephfs API, max_bytes and max_files quotas should be enforced. However, keep in mind that they don't in any way map to SMB quotas. Cheers, David ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] How to use vfs_ceph
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.sto...@fz-juelich.de 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 smime.p7s Description: S/MIME Cryptographic Signature ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] How to use vfs_ceph
At a glance looks OK, I've not tested this in a while. Silly question but does your Samba package definitely ship with the Ceph vfs? Caught me out in the past. Have you tried exporting a sub dir? Maybe 777 it although shouldn't make a difference. On 21 Dec 2017 13:16, "Felix Stolte" wrote: > Hello folks, > > is anybody using the vfs_ceph module for exporting cephfs as samba shares? > 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 rcaps: [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 > > > Any advice is appreciated. > > Regards Felix > > -- > 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 > > > > ___ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > > ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com