moana icon indicating copy to clipboard operation
moana copied to clipboard

Samba export

Open aravindavk opened this issue 2 years ago • 2 comments

Add support for Samba exports.

aravindavk avatar Sep 15 '22 17:09 aravindavk

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

aravindavk avatar Sep 15 '22 17:09 aravindavk

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
    [myshare]
       path = /
       vfs objects = glusterfs
       glusterfs: volume = pool1
       glusterfs: volfile_server = fc5f92df48f7:49252
       browseable = yes
       read only = yes
       guest ok = yes
    
    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 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.
    smbclient //<samba-server-ip>/<shared-folder>
    
    Here:
    smbclient //fc5f92df48f7/myshare
    
    After logging in, the backend data should be available here

vatsa287 avatar May 24 '23 12:05 vatsa287