Neil Richardson (mail filter)
2018-Dec-05 00:08 UTC
[Samba] Missing 'glusterfs.so' in Ubuntu
Hi, guys. I'm new to all of this and need some help with a problem I've been banging my head against for a while. (Tried troubleshooting, checking logs, and lots of Googling for a few weeks now, but just keep hitting dead ends.) SYMPTOM: Missing file `/usr/lib/x86_64-linux-gnu/samba/vfs/glusterfs.so`, as evidenced by error messages like these: [2018/11/18 07:56:42.551587, 0] ../lib/util/modules.c:49(load_module) Error loading module '/usr/lib/x86_64-linux-gnu/samba/vfs/glusterfs.so': /usr/lib/x86_64-linux-gnu/samba/vfs/glusterfs.so: cannot open shared object file: No such file or directory [2018/11/18 07:56:42.551652, 0] ../source3/smbd/vfs.c:184(vfs_init_custom) error probing vfs module 'glusterfs': NT_STATUS_UNSUCCESSFUL [2018/11/18 07:56:42.551694, 0] ../source3/smbd/vfs.c:379(smbd_vfs_init) smbd_vfs_init: vfs_init_custom failed for glusterfs [2018/11/18 07:56:42.551729, 0] ../source3/smbd/service.c:623(make_connection_snum) vfs_init failed for service music I tried `apt get' with `samba-vfs-glusterfs' (which supposedly is correct under yum/Debian) and `samba-vfs-modules' but it doesn't get installed. (I also install ctdb, winbind, smbd, and samba-common-bin, and `samba'). I tried searching pkgs.org but it can't find that file anywhere (or else I'm somehow doing it wrong). The documentation at https://www.samba.org/samba/docs/current/man-html/vfs_glusterfs.8.html says that it's part of Samba (which people on the Gluster mailing list also said). Do I need to build this myself or something? Does the order of installation under `apt' install different things and I just need to reorder the parameters? What am I missing? ENVIRONMENT Ubuntu 16 Samba 4.7.6-UBUNTU Thank you, -Neil R. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 885 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20181204/30519ab1/signature.sig>
On Tue, 4 Dec 2018 16:08:49 -0800 "Neil Richardson \(mail filter\) via samba" <samba at lists.samba.org> wrote:> Hi, guys. I'm new to all of this and need some help with a problem > I've been banging my head against for a while. (Tried > troubleshooting, checking logs, and lots of Googling for a few weeks > now, but just keep hitting dead ends.) > > > SYMPTOM: > Missing file `/usr/lib/x86_64-linux-gnu/samba/vfs/glusterfs.so`, as > evidenced by error messages like these: > > [2018/11/18 07:56:42.551587, 0] ../lib/util/modules.c:49(load_module) > Error loading module > '/usr/lib/x86_64-linux-gnu/samba/vfs/glusterfs.so': > /usr/lib/x86_64-linux-gnu/samba/vfs/glusterfs.so: cannot open shared > object file: No such file or directory > [2018/11/18 07:56:42.551652, 0] > ../source3/smbd/vfs.c:184(vfs_init_custom) > error probing vfs module 'glusterfs': NT_STATUS_UNSUCCESSFUL > [2018/11/18 07:56:42.551694, 0] > ../source3/smbd/vfs.c:379(smbd_vfs_init) > smbd_vfs_init: vfs_init_custom failed for glusterfs > [2018/11/18 07:56:42.551729, 0] > ../source3/smbd/service.c:623(make_connection_snum) > vfs_init failed for service music > > > I tried `apt get' with `samba-vfs-glusterfs' (which supposedly is > correct under yum/Debian) and `samba-vfs-modules' but it doesn't get > installed. (I also install ctdb, winbind, smbd, and > samba-common-bin, and `samba'). >Close, but not close enough ;-) Try installing 'samba-vfs-modules' Rowland
Hai,
No exactly Rowland.
There is not missing anything.
And he is correct, that file is missing in the official ubuntu and debian
packages.
I suggest report a bug at ubuntu, its missing in all there samba packages.
https://packages.ubuntu.com/search?suite=cosmic&arch=any&searchon=contents&keywords=glusterfs.so
You can pretty easy rebuild the ubuntu package if you need it.
Debian fixed This in 4.6.5 ( not released )
Read: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864862
The debian packages does contain it as of debian buster/testing.
https://packages.debian.org/search?suite=buster&arch=any&searchon=contents&keywords=glusterfs.so
You have 3 options to get it running.
The short version.
My debian stretch packages does have these enabled, and you could try the 4.7
from stretch.
My packages, info. https://apt.van-belle.nl
Or rebuild the package yourself. The long version.
Enable deb-src in your ubuntu apt.
Run this :
Apt-get update
apt-get build-dep samba
apt-get source samba
cd samba-4.7.6/debian
Edit control
After : Build-Depends: bison,
Add :
glusterfs-common [linux-any],
Save it.
Edit rules
After : conf_args = \
Add : --with-cluster-support \
After :
override_dh_makeshlibs:
# create symbols and shlibs files in separate wrapper script to deal
with
# private libraries
debian/make_shlibs
Add this part : ! Check if you see the snapper and/or ceph.so lines, if the
exists, change it so it matches this:
override_dh_shlibdeps:
LD_LIBRARY_PATH=$(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/samba:$$LD_LIBRARY_PATH
\
dh_shlibdeps -a -Xceph.so -Xglusterfs.so -Xsnapper.so
ifeq ($(DEB_HOST_ARCH_OS), linux)
LD_LIBRARY_PATH=$(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/samba:$$LD_LIBRARY_PATH
\
dh_shlibdeps -a -- -pvfsmods -dRecommends \
-e debian/samba-vfs-modules/usr/lib/*/samba/vfs/ceph.so \
-e debian/samba-vfs-modules/usr/lib/*/samba/vfs/glusterfs.so \
-e debian/samba-vfs-modules/usr/lib/*/samba/vfs/snapper.so
else
LD_LIBRARY_PATH=$(DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/samba:$$LD_LIBRARY_PATH
\
dh_shlibdeps -a -- -pvfsmods -dRecommends \
-e debian/samba-vfs-modules/usr/lib/*/samba/vfs/snapper.so
Endif
Option 3, the very long time taking version.
Report it at ubuntu and wait untill the have fixed it.
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Rowland Penny via samba
> Verzonden: woensdag 5 december 2018 9:22
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Missing 'glusterfs.so' in Ubuntu
>
> On Tue, 4 Dec 2018 16:08:49 -0800
> "Neil Richardson \(mail filter\) via samba" <samba at
lists.samba.org>
> wrote:
>
> > Hi, guys. I'm new to all of this and need some help with a
problem
> > I've been banging my head against for a while. (Tried
> > troubleshooting, checking logs, and lots of Googling for a few weeks
> > now, but just keep hitting dead ends.)
> >
> >
> > SYMPTOM:
> > Missing file `/usr/lib/x86_64-linux-gnu/samba/vfs/glusterfs.so`, as
> > evidenced by error messages like these:
> >
> > [2018/11/18 07:56:42.551587, 0]
> ../lib/util/modules.c:49(load_module)
> > Error loading module
> > '/usr/lib/x86_64-linux-gnu/samba/vfs/glusterfs.so':
> > /usr/lib/x86_64-linux-gnu/samba/vfs/glusterfs.so: cannot open shared
> > object file: No such file or directory
> > [2018/11/18 07:56:42.551652, 0]
> > ../source3/smbd/vfs.c:184(vfs_init_custom)
> > error probing vfs module 'glusterfs': NT_STATUS_UNSUCCESSFUL
> > [2018/11/18 07:56:42.551694, 0]
> > ../source3/smbd/vfs.c:379(smbd_vfs_init)
> > smbd_vfs_init: vfs_init_custom failed for glusterfs
> > [2018/11/18 07:56:42.551729, 0]
> > ../source3/smbd/service.c:623(make_connection_snum)
> > vfs_init failed for service music
> >
> >
> > I tried `apt get' with `samba-vfs-glusterfs' (which supposedly
is
> > correct under yum/Debian) and `samba-vfs-modules' but it
doesn't get
> > installed. (I also install ctdb, winbind, smbd, and
> > samba-common-bin, and `samba').
> >
>
> Close, but not close enough ;-)
>
> Try installing 'samba-vfs-modules'
>
> Rowland
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>
On Wed, 5 Dec 2018 09:24:43 +0100 "L.P.H. van Belle via samba" <samba at lists.samba.org> wrote:> Hai, > > No exactly Rowland. > > There is not missing anything. > And he is correct, that file is missing in the official ubuntu and > debian packages. >Now you have jogged my memory, didn't Debian build Samba without cluster support ? Rowland
Hai,
Yes, Debian samba 4.5.12 is still without gluster support.
Its enabled as of 4.6.5 and up, its now in all new debian testing/unstable
version by default.
Why ubuntu didnt enable it, i dont know.
commit 5f8d150985c7f4b5cd2f7bcd323eb7eb3cffea3c
Author: Mathieu Parent <math.parent at gmail.com>
Date: Mon Jun 19 21:53:32 2017 +0200
Release 2:4.6.5+dfsg-2 to unstable
Greetz,
Lousi
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Rowland Penny via samba
> Verzonden: woensdag 5 december 2018 9:53
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Missing 'glusterfs.so' in Ubuntu
>
> On Wed, 5 Dec 2018 09:24:43 +0100
> "L.P.H. van Belle via samba" <samba at lists.samba.org>
wrote:
>
> > Hai,
> >
> > No exactly Rowland.
> >
> > There is not missing anything.
> > And he is correct, that file is missing in the official ubuntu and
> > debian packages.
> >
>
> Now you have jogged my memory, didn't Debian build Samba without
> cluster support ?
>
> Rowland
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
>