<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/30/2013 06:36 PM, David Gibbons
wrote:<br>
</div>
<blockquote
cite="mid:CAJ9CW+5QPcBsqU8A-XPzPkZFBzurEqB_PRHOKCtTgX8DTyMypw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Lala,
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Thanks for the tip in quota-deem-statfs. Here are my
results with that command:</div>
<div>
<div># gluster volume set gfsv0 quota-deem-statfs on</div>
<div>volume set: failed: option : quota-deem-statfs does not
exist</div>
<div>Did you mean dump-fd-stats or quota-timeout?</div>
</div>
<div><br>
</div>
<div>Which Gluster version does that feature setting apply to?</div>
<div><br>
</div>
</div>
</blockquote>
<br>
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?<br>
<br>
root@dhcp159-54 ~]# gluster v quota patchy enable<br>
Enabling quota has been successful<br>
<br>
[root@dhcp159-54 ~]# gluster volume set patchy quota-deem-statfs on<br>
volume set: success<br>
<br>
[root@dhcp159-54 ~]# glusterfs --version<br>
glusterfs 3git built on Oct 21 2013 15:57:26<br>
Repository revision: git://git.gluster.com/glusterfs.git<br>
Copyright (c) 2006-2013 Red Hat, Inc. <a class="moz-txt-link-rfc2396E" href="http://www.redhat.com/"><http://www.redhat.com/></a><br>
GlusterFS comes with ABSOLUTELY NO WARRANTY.<br>
It is licensed to you under your choice of the GNU Lesser<br>
General Public License, version 3 or any later version (LGPLv3<br>
or later), or the GNU General Public License, version 2 (GPLv2),<br>
in all cases as published by the Free Software Foundation.<br>
<br>
Thanks,<br>
Lala<br>
<blockquote
cite="mid:CAJ9CW+5QPcBsqU8A-XPzPkZFBzurEqB_PRHOKCtTgX8DTyMypw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Cheers,</div>
<div>Dave</div>
</div>
<div class="gmail_extra">
<br>
<br>
<div class="gmail_quote">On Wed, Oct 30, 2013 at 3:09 AM,
Lalatendu Mohanty <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:lmohanty@redhat.com"
target="_blank">lmohanty@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>
<div class="h5">
<div>On 10/23/2013 05:26 PM, David Gibbons wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi All,
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
<div>
<div># gluster volume quota gfsv0 list</div>
<div> path limit_set
size</div>
<div>----------------------------------------------------------------------------------</div>
<div>/shares/testsharedave 10GB
8.0KB</div>
</div>
<div><br>
</div>
<div>And I've configured the share in samba (and
can access it fine):</div>
<div># cat /etc/samba/smb.conf</div>
<div>
<div>[testsharedave]</div>
<div> vfs objects = glusterfs</div>
<div> glusterfs:volfile_server =
localhost</div>
<div> glusterfs:volume = gfsv0</div>
<div> path = /shares/testsharedave</div>
<div> valid users = dave</div>
<div> guest ok = no</div>
<div> writeable = yes</div>
</div>
<div><br>
</div>
<div>But windows does not reflect the quota and
instead shows the full size of the gluster
volume.</div>
<div><br>
</div>
<div>I've reviewed the code in <a
moz-do-not-send="true"
href="https://forge.gluster.org/samba-glusterfs/samba-glusterfs-vfs/blobs/master/src/vfs_glusterfs.c"
target="_blank">https://forge.gluster.org/samba-glusterfs/samba-glusterfs-vfs/blobs/master/src/vfs_glusterfs.c</a> --
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.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
</div>
</blockquote>
</div>
</div>
Hi David,<br>
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. <br>
<br>
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.<br>
<br>
gluster volume set <VOLUME NAME> quota-deem-statfs
on<br>
<br>
-Lala
<div class="im"><br>
<blockquote type="cite">
<div dir="ltr">
<div>Cheers,</div>
<div>Dave</div>
<div><br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Gluster-users mailing list
<a moz-do-not-send="true" href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>
<a moz-do-not-send="true" href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a></pre>
</blockquote>
<br>
</div>
</div>
<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a moz-do-not-send="true"
href="http://supercolony.gluster.org/mailman/listinfo/gluster-users"
target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>