Solved GlusterFS, Samba and/or mounting

Hi Folks,
please, this is not one of those "again somebody with GlusterFS on FreeBSD".
I've seen and read the threads about it. But they couldn't help me.
The thing is: i have GlusterFS working, the only thing missing is exporting it via Samba.
Setup
2 nodes FreeBSD 12.1 p2 with current Gluster 3.11.1_ and Samba4.10 with distributed replica
(Btw: Anyone knowing about Version >=4 arriving at FreeBSD? Current is v7.2)
ada0 = ZFS-on-Root
ada1 = UFS --> Brick1
ada2 = UFS --> Brick2
i got everything working except the damn Samba-Share (which i need, since it's going to be Windows-Clients mainly).
This part of the Manual eludes me completely: https://www.samba.org/samba/docs/current/man-html/vfs_glusterfs.8.html
Code:
[share]
        vfs objects = glusterfs
        path = /relative/base/path
        glusterfs:volume = gv0
        kernel share modes = no
What in blazes do i have to put in path? Nothing i put there worked.

I thought being clever and mounted the volume to a local Folder, put that Folder as Share in smb4.conf, and hey, presto: I can access it!
now the only example of an FreeBSD-fstab entry i found, doesn't work (FreeBSD hangs up at boot, and i get thrown into a panic root-shell)

and yes, i have fuse_load=YES in my /boot/loader.conf since i need it for exFat

Right now the system-crontab is looking pretty. I'm thinking of putting my "manual" mount-command into a script-file, and let cron execute it after boot

Help?

I want to admit something: My fiddling around with FreeBSD (and all that stuff) is kinda a playground for me, since i am capable of setting all that stuff up on Debian/Ubuntu/Manjaro in pretty much one day.
BUT i would really like it, if i could get my machines working with FreeBSD.

EDIT: After thinking about it (and sleeping a night over it) i've come to the conclusion, that it's not a problem of mounting, but with timing.
What i noticed on my "faulty" machine, that it tries to load the "late" filesystems before the Gluster-Daemon is runinng, so of course the fstab-entry is going to fail, since there is no "server1:/gv0" available.
Now, where were the "HowTo"'s to fiddle with rc.d-scripts.....
Still, the optimal solution would be to get a working Samba-config directly sharing the Gluster-Volume, so i wouldn't need to mount the volume...
 
I'm an Idiot.
After researching i finally decided to read the port-description on Freshports, and there i noticed that Gluster-Support is OFF (for out-of-box-install).
*GNARF*
make config, select Gluster-Support, make, make install clean (deinstall "old" Samba), tweak the smb4.conf, and i'm in Business!

Lesson learned: First look there, if something is missing.
 
Back
Top