Hi All, I'm setting up a gluster cluster that will be accessed via smb. I was hoping that the quotas. I've configured a quota on the path itself: # gluster volume quota gfsv0 list path limit_set size ---------------------------------------------------------------------------------- /shares/testsharedave 10GB 8.0KB And I've configured the share in samba (and can access it fine): # cat /etc/samba/smb.conf [testsharedave] vfs objects = glusterfs glusterfs:volfile_server = localhost glusterfs:volume = gfsv0 path = /shares/testsharedave valid users = dave guest ok = no writeable = yes But windows does not reflect the quota and instead shows the full size of the gluster volume. I've reviewed the code in https://forge.gluster.org/samba-glusterfs/samba-glusterfs-vfs/blobs/master/src/vfs_glusterfs.c -- which does not appear to support passing gluster quotas to samba. So I don't think my installation is broken, it seems like maybe this just isn't supported. Can anyone speak to whether or not quotas are going to be implemented in vfs_glusterfs for samba? Or if I'm just crazy and doing this wrong ;)? I'm definitely willing to help with the code but don't have much experience with either samba modules or the gluster API. Cheers, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20131023/a0ecdd00/attachment.html>
You should perhaps open a [RFE] ? On Wed, Oct 23, 2013 at 4:56 AM, David Gibbons <david.c.gibbons at gmail.com>wrote:> Hi All, > > I'm setting up a gluster cluster that will be accessed via smb. I was > hoping that the quotas. I've configured a quota on the path itself: > > # gluster volume quota gfsv0 list > path limit_set size > > ---------------------------------------------------------------------------------- > /shares/testsharedave 10GB 8.0KB > > And I've configured the share in samba (and can access it fine): > # cat /etc/samba/smb.conf > [testsharedave] > vfs objects = glusterfs > glusterfs:volfile_server = localhost > glusterfs:volume = gfsv0 > path = /shares/testsharedave > valid users = dave > guest ok = no > writeable = yes > > But windows does not reflect the quota and instead shows the full size of > the gluster volume. > > I've reviewed the code in > https://forge.gluster.org/samba-glusterfs/samba-glusterfs-vfs/blobs/master/src/vfs_glusterfs.c -- > which does not appear to support passing gluster quotas to samba. So I > don't think my installation is broken, it seems like maybe this just isn't > supported. > > Can anyone speak to whether or not quotas are going to be implemented in > vfs_glusterfs for samba? Or if I'm just crazy and doing this wrong ;)? I'm > definitely willing to help with the code but don't have much experience > with either samba modules or the gluster API. > > Cheers, > Dave > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://supercolony.gluster.org/mailman/listinfo/gluster-users >-- *Religious confuse piety with mere ritual, the virtuous confuse regulation with outcomes* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20131023/fa741c0f/attachment.html>
Lalatendu Mohanty
2013-Oct-30 07:09 UTC
[Gluster-users] Samba vfs_glusterfs Quota Support?
On 10/23/2013 05:26 PM, David Gibbons wrote:> Hi All, > > I'm setting up a gluster cluster that will be accessed via smb. I was > hoping that the quotas. I've configured a quota on the path itself: > > # gluster volume quota gfsv0 list > path limit_set size > ---------------------------------------------------------------------------------- > /shares/testsharedave 10GB 8.0KB > > And I've configured the share in samba (and can access it fine): > # cat /etc/samba/smb.conf > [testsharedave] > vfs objects = glusterfs > glusterfs:volfile_server = localhost > glusterfs:volume = gfsv0 > path = /shares/testsharedave > valid users = dave > guest ok = no > writeable = yes > > But windows does not reflect the quota and instead shows the full size > of the gluster volume. > > I've reviewed the code in > https://forge.gluster.org/samba-glusterfs/samba-glusterfs-vfs/blobs/master/src/vfs_glusterfs.c -- > which does not appear to support passing gluster quotas to samba. So I > don't think my installation is broken, it seems like maybe this just > isn't supported. > > Can anyone speak to whether or not quotas are going to be implemented > in vfs_glusterfs for samba? Or if I'm just crazy and doing this wrong > ;)? I'm definitely willing to help with the code but don't have much > experience with either samba modules or the gluster API. >Hi David, Quotas are supported by vfs_glusterfs for samba. I have also set quota on the volume correctly. If you try to write more data then the quota on the directory(/shares/testsharedave ), it will not allow. But for the clients (i.e. Windows/smb, nfs, fuse) to reflect in the meta data information (i.e. properties in Windows) , you have run below volume set command on respective volume. gluster volume set <VOLUME NAME> quota-deem-statfs on -Lala> Cheers, > Dave > > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://supercolony.gluster.org/mailman/listinfo/gluster-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20131030/354d34c6/attachment.html>
Thanks all for the pointers. What version of Samba are you running? Samba version is 3.6.9: [root at gfs-a-1 /]# smbd -V Version 3.6.9 Gluster version is 3.4.1 git: [root at gfs-a-1 /]# glusterfs --version glusterfs 3.4.1 built on Oct 21 2013 09:22:36> It should be > # gluster volume set gfsv0 features.quota-deem-statfs on[root at gfs-a-1 /]# gluster volume set gfsv0 features.quota-deem-statfs on volume set: failed: option : features.quota-deem-statfs does not exist Did you mean features.quota-timeout? I wonder if the quota-deem-statfs is part a more recent version? Cheers, Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20131030/05362f27/attachment.html>