edoceo

How To: GlusterFS and CIFS / Samba

The magic of GlusterFS is also available over CIFS, sometimes called SMB and sometimes called Samba.

Actually, it's all a little different, we'll go over each one.

Exporting via CIFS

First we'll create a two brick volume on two servers, gfs[1,2], then we mount that with the GlusterFS native client, then export that via Samba. You can also create a configuration where there is a CIFS like proxy in the middle.

gfs1 ~ # gluster volume create BigVol replica 2 transport tcp \
    gfs1:/storage/brick1 gfs2:/storage/brick1

gfs1 ~ # mount -t glusterfs gfs1:/BigVol /mnt/BigVol

Here's the snippet from smb.conf that


Now, configure Samba

Loading Comments from Disqus...