integralstor / integralstor_gridcell

Gluster/ZFS based open source scale-out storage system
1 stars 3 forks source link

samba shares created on gluster volume are not accessible from windows #57

Closed kiranfractal closed 9 years ago

kiranfractal commented 9 years ago

Create a samba share on gluster volume from http://192.168.1.244:8081/create_share/ page.

Try to access it from window machine

ramaseshan commented 9 years ago

This requires us to install a package

http://download.gluster.org/pub/gluster/glusterfs/samba/CentOS/epel-6/x86_64/samba-vfs-glusterfs-4.1.11-2.el6.x86_64.rpm

It is for now installed in 244, primary. Needs testing and go as a part of install.

kiranfractal commented 9 years ago

With package installed we are able to access only gluster volume as share not the shares created from integral view. The reason is smb.conf file contains only volume entries in it so they getting accessable as shares.

When a share is created its entry in smb.conf file should be created as said in link http://blog.gluster.org/category/samba/

a snippet from the above link:

Now we have a started service, we can go ahead and add the configuration for the share. A regular samba share would look something like:

[share] comment = just a share path = /share read only = no guest ok = yes valid users = jon

fractalram commented 9 years ago

The reason for this is that the older version of samba that we were testing against had its default smb.conf path in /etc. If we change common.py's smb_conf_path to point to /etc/samba instead, it will generate the file in the correct path.

kiranfractal commented 9 years ago

Verified and resolved in the current build.