[Gluster-users] Samba vfs_glusterfs Quota Support?
lmohanty at redhat.com
Wed Oct 30 14:42:57 UTC 2013
On 10/30/2013 06:36 PM, David Gibbons wrote:
> Hi Lala,
> Thank you. I should have been more clear and you are correct, I can't
> write data above the quota. I was referring only to the listing of
> "disk size" in windows/samba land.
> Thanks for the tip in quota-deem-statfs. Here are my results with that
> # gluster volume set gfsv0 quota-deem-statfs on
> volume set: failed: option : quota-deem-statfs does not exist
> Did you mean dump-fd-stats or quota-timeout?
> Which Gluster version does that feature setting apply to?
I mostly use the latest code from git to build gluster . The current
setup I have built on 21st october on fedora 19. I am copying the
commands below for your refrence . Which version of gluster you are using?
root at dhcp159-54 ~]# gluster v quota patchy enable
Enabling quota has been successful
[root at dhcp159-54 ~]# gluster volume set patchy quota-deem-statfs on
volume set: success
[root at dhcp159-54 ~]# glusterfs --version
glusterfs 3git built on Oct 21 2013 15:57:26
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2013 Red Hat, Inc. <http://www.redhat.com/>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
It is licensed to you under your choice of the GNU Lesser
General Public License, version 3 or any later version (LGPLv3
or later), or the GNU General Public License, version 2 (GPLv2),
in all cases as published by the Free Software Foundation.
> On Wed, Oct 30, 2013 at 3:09 AM, Lalatendu Mohanty
> <lmohanty at redhat.com <mailto:lmohanty at redhat.com>> wrote:
> 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
>> # 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
>> 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
> 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
>> Gluster-users mailing list
>> Gluster-users at gluster.org <mailto:Gluster-users at gluster.org>
> Gluster-users mailing list
> Gluster-users at gluster.org <mailto:Gluster-users at gluster.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gluster-users