[Gluster-users] Advice for building samba-glusterfs-vfs

David Gibbons david.c.gibbons at gmail.com
Thu Oct 3 00:59:31 UTC 2013


Dan,

I had the same trouble yesterday. As it happens, I created a doc to help
script installs of future nodes. I did not snip out the portions that apply
to what you're looking for, but the script below works for me.

The biggest issue was that some modules were apparently installed in lib
and the build process was looking for them in lib64. In any event, the vfs
module builds, installs and runs cleanly after this.

** The big win for me was finding this command, that allowed me to figure
out where it was looking for modules in the wrong lib directory.
ldd /usr/local/samba/lib/vfs/glusterfs.so

I'm sure there is any easier way to to do this :)...

Cheers,
Dave


--

#!/bin/bash

yum groupinstall "Development Tools"

yum install git openssl-devel wget

yum install libtalloc libtdb

# set up gluster

cd /usr/src && git clone https://github.com/gluster/glusterfs.git

cd /usr/src/glusterfs && ./autogen.sh && ./configure && make

make install

# set up samba 3.6.9

cd /usr/src && wget
http://ftp.samba.org/pub/samba/stable/samba-3.6.9.tar.gz&& tar -zxvf
samba-3.6.9.tar.gz

cd /usr/src/samba-3.6.9/source3 && ./configure && make

make install

ln -s /usr/local/samba/lib/libwbclient.so.0 /usr/lib64/libwbclient.so.0

# then install the RPM samba version

yum install samba

# set up vfs_glusterfs

cd /usr/src && git clone git://
forge.gluster.org/samba-glusterfs/samba-glusterfs-vfs.git

ln -s /usr/local/include/glusterfs /usr/include/glusterfs

cd /usr/src/samba-vfs/glusterfs

./configure --with-samba-source=/usr/src/samba-3.6.9/source3

ln -s /usr/local/samba/lib/vfs/glusterfs.so
/usr/lib64/samba/vfs/glusterfs.so

# link the other modules

ln -s /usr/local/lib/libgfapi.so /usr/lib64/

ln -s /usr/local/lib/libgfapi.so.0 /usr/lib64/

ln -s /usr/local/lib/libgfapi.la /usr/lib64/

ln -s /usr/local/lib/libglusterfs.la /usr/lib64/

ln -s /usr/local/lib/libglusterfs.so /usr/lib64/

ln -s /usr/local/lib/libglusterfs.so.0 /usr/lib64/
ln -s /usr/local/lib/libglusterfs.so.0.0.0 /usr/lib64/

EOF


On Tue, Oct 1, 2013 at 10:38 PM, Dan Mons <dmons at cuttingedge.com.au> wrote:

> Hi folks,
>
> I've got CentOS6.4 with Samba 3.6.9 installed from the standard CentOS
> repos via yum.  I also have GlusterFS 3.4.0 GA installed from RPMs
> direct from gluster.org.
>
> I'm trying to build the glusterfs VFS module for Samba to take
> advantage of libgfapi for our Windows users, and migrate them off the
> current Samba-on-FUSE setup we have currently.
>
> I've downloaded the appropriate source trees for all projects
> (GlusterFS from gluster.org, Samba from the matching CentOS6 SRPM, and
> samba-glusterfs-vfs from the git repo), but am facing troubles early
> on just finding appropriate headers.
>
> [root at bne-gback000 samba-glusterfs-vfs]# find
> /usr/local/src/glusterfs-3.4.0 -type f -name glfs.h
> /usr/local/src/glusterfs-3.4.0/api/src/glfs.h
>
> [root at bne-gback000 samba-glusterfs-vfs]# ./configure
> --with-glusterfs=/usr/local/src/glusterfs-3.4.0
> *snip*
> checking api/glfs.h usability... no
> checking api/glfs.h presence... no
> checking for api/glfs.h... no
> Cannot find api/glfs.h. Please specify --with-glusterfs=dir if necessary
>
> If I install glusterfs-api-devel-3.4.0-8.el6.x86_64.rpm, I need to
> copy /usr/include/glusterfs/api/glfs.h to /usr/include for it to be
> found (even using --with-glusterfs= doesn't work), and then I get
> further errors about not being able to link to glfs_init:
>
> [root at bne-gback000 samba-glusterfs-vfs]# rpm -ivh
> /tmp/glusterfs-api-devel-3.4.0-8.el6.x86_64.rpm
> [root at bne-gback000 samba-glusterfs-vfs]# cp
> /usr/include/glusterfs/api/glfs.h /usr/include/
> [root at bne-gback000 samba-glusterfs-vfs]# ./configure
> *snip*
> checking api/glfs.h usability... yes
> checking api/glfs.h presence... yes
> checking for api/glfs.h... yes
> checking for glfs_init... no
> Cannot link to gfapi (glfs_init). Please specify --with-glusterfs=dir
> if necessary
>
> If anyone can point me in the right direction, that would be greatly
> appreciated.
>
> Cheers,
>
> -Dan
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20131002/8d8185ff/attachment.html>


More information about the Gluster-users mailing list