moana
moana copied to clipboard
Samba export
Add support for Samba exports.
Ref:
- https://docs.oracle.com/cd/E52668_01/F10040/html/gluster-312-access-smb.html
- https://docs.gluster.org/en/latest/Administrator-Guide/Setting-Up-Clients/#testing-mounted-volumes
- https://wiki.samba.org/index.php/GlusterFS
Accesing Kadalu Storage Pools on Samba (tested both on source & using packages on ubuntu 22.04)
- Install kadalu-storage, samba, samba-vfs-modules smbclient
- Create a Kadalu Storage Pool
- Append below at EOF for /etc/samba/smb.conf
Where volume is name of storage-pool & volfile_server is name:port of any one of the volfile servers in kadalu-storage, which can be found through[myshare] path = / vfs objects = glusterfs glusterfs: volume = pool1 glusterfs: volfile_server = fc5f92df48f7:49252 browseable = yes read only = yes guest ok = yes
kadalu pool list --status --detail
- Restart samba daemon
systemctl restart smbd
- Access kadalu-storage pool through samba client to check if it is good for export in Windows etc.
Here:smbclient //<samba-server-ip>/<shared-folder>
After logging in, the backend data should be available heresmbclient //fc5f92df48f7/myshare