<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hi Junaid,<br><br>Sorry I was not able to reach you on IRC, I just see your email this morning because of the time difference.<br>I'll try to delete the volume and the backend and start from scratch. I'll keep you in touch.<br><br>Anthony<br><div><hr id="stopSpelling">From: junaid@gluster.com<br>Date: Tue, 6 Sep 2011 12:38:48 +0530<br>Subject: Quota calculation<br>To: sokar6012@hotmail.com<br>CC: gluster-users@gluster.org<br><br><div class="ecxgmail_quote">Hi Anthony,<div><br></div><div>Previously, you had a volume which was pure replicate and it had the servers</div><div><br></div><div><span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;">Volume Name: venus<br>
Type: Replicate<div class="ecxim"><br>Status: Started<br>Number of Bricks: 2<br></div><div class="ecxim">Transport-type: tcp<br>Bricks:<br>Brick1: ylal3020:/soft/venus<br></div></span><span style="border-collapse: collapse; font-family: arial,sans-serif; font-size: 13px;">Brick2: ylal3030:/soft/venus</span></div>
<div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;">and then you created another distributed-replicate volume which used the bricks of previous volume as part of the new volume<br>
</span></font></div><div class="ecxim"><div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><br></span></font></div><div><font face="arial, sans-serif"><span style="border-collapse: collapse;"><span style="font-size: 13px;">Volume Name: venus<br>
Type: Distributed-Replicate<br>Status: Started<br>Number of Bricks: 2 x 2 = 4<br>Transport-type: tcp<br>Bricks:<br>Brick1: ylal3020:/soft/venus<br>Brick2: ylal3030:/soft/venus<br>Brick3: yval1000:/soft/venus<br></span></span></font><font face="arial, sans-serif"><span style="border-collapse: collapse;"><span style="font-size: 13px;">Brick4: yval1010:/soft/venus</span><br>
</span></font></div></div><div><div class="ecxgmail_quote"><br></div><div class="ecxgmail_quote">So, what I suspect is the extended attributes were carried forward as part of the of the new volume. So, when a file is created in the new volume, for quota it will the extended attribute value + the new file size. If this is true in your case, then please use fresh backend directories(newly created directories) and kindly report if you see the same behavior.</div>
<div class="ecxgmail_quote"><br></div><font color="#888888"><div class="ecxgmail_quote">Junaid</div></font><div><div></div><div class="h5"><div class="ecxgmail_quote"><br></div><div class="ecxgmail_quote">On Mon, Sep 5, 2011 at 11:45 PM, Mohammed Junaid <span dir="ltr"><<a href="mailto:junaid@gluster.com">junaid@gluster.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Anthony,<div><br></div><div>Are you reachable on #gluster irc, it will be easy to debug this issue on irc. I will be available at gluster irc after 11am IST. I will reply to your mail but it will speedup the debug process if you are on irc.</div>
<div><br></div><div><font color="#888888">Junaid</font><div><div></div><div><br><br><div class="ecxgmail_quote">On Mon, Sep 5, 2011 at 8:03 PM, anthony garnier <span dir="ltr"><<a href="mailto:sokar6012@hotmail.com">sokar6012@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div dir="ltr">
<div dir="ltr">Hi Junaid,<br><br>Sorry about the confusion, indeed I gave you the
wrong output. So let's start to the beginning. I disabled quota and I
reactivated it<br><br>My configuration : <br><br>Volume Name: venus<br>Type: Distributed-Replicate<br>Status: Started<br>Number of Bricks: 2 x 2 = 4<br>Transport-type: tcp<br>Bricks:<br>Brick1: ylal3020:/soft/venus<br>Brick2: ylal3030:/soft/venus<br>
Brick3: yval1000:/soft/venus<br>Brick4: yval1010:/soft/venus<br>Options Reconfigured:<br>nfs.port: 2049<br>performance.cache-refresh-timeout: 60<br>performance.cache-size: 1GB<br>network.ping-timeout: 10<br>features.quota: on<br>
features.limit-usage: /test:100MB,/psa:200MB,/:7GB,/soft:5GB<br>features.quota-timeout: 120<br><br>Size of each folder from the mount point : <br>/test : 4.1MB<a title="Bo?te de r?ception (1)" href="http://RteFrame_16.0.1823.0824.html?dl=dl#" target="_blank"><span></span></a><br>
/psa : 160MB<br>/soft : 1.2GB<br>Total size 1.4GB<br>(If you want the complete output of du, don't hesitate)<br><br><br>gluster volume quota venus list<br> path limit_set size<br>----------------------------------------------------------------------------------<br>
/psa 200MB 167.0MB <=OK<br>/soft 5GB 4.7GB <= NO OK<br>/test 100MB 4.0MB <= OK<br>
/ 7GB 5.2GB <= NO OK<br><br>Is seems this is 4 time the original size for / and /soft<br><br><br>Getfattr for the four nodes : <br><br>ylal3020:/etc/ucarp/interface # getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/test ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa;getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft<br>
getfattr: Removing leading '/' from absolute path names<br># file: soft/venus<br>trusted.glusterfs.quota.size=0x00000000b3ad6c00<br><br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus/test<br>
trusted.glusterfs.quota.size=0x00000000001f8000<br><br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus/psa<br>trusted.glusterfs.quota.size=0x0000000004f62c00<br><br>getfattr: Removing leading '/' from absolute path names<br>
# file: soft/venus/soft<br>trusted.glusterfs.quota.size=0x0000000098f4b200<br><br>----<br>ylal3030:/etc/ucarp/interface # getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/test ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa;getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft<br>
getfattr: Removing leading '/' from absolute path names<br># file: soft/venus<br>trusted.glusterfs.quota.size=0x00000000b38e1c00<br><br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus/test<br>
trusted.glusterfs.quota.size=0x00000000001f8000<br><br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus/psa<br>trusted.glusterfs.quota.size=0x0000000004f62c00<br><br>getfattr: Removing leading '/' from absolute path names<br>
# file: soft/venus/soft<br>trusted.glusterfs.quota.size=0x0000000098b5e200<br><br>----<br>yval1000:/soft/venus # getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/test ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa;getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft<br>
getfattr: Removing leading '/' from absolute path names<br># file: soft/venus<br>trusted.glusterfs.quota.size=0x0000000098a8ac00<br><br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus/test<br>
trusted.glusterfs.quota.size=0x0000000000210000<br><br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus/psa<br>trusted.glusterfs.quota.size=0x000000000579e000<br><br>getfattr: Removing leading '/' from absolute path names<br>
# file: soft/venus/soft<br>trusted.glusterfs.quota.size=0x00000000930dcc00<br><br>----<br>yval1010:/soft/venus # getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/test ; getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/psa;getfattr -n trusted.glusterfs.quota.size -e hex /soft/venus/soft<br>
getfattr: Removing leading '/' from absolute path names<br># file: soft/venus<br>trusted.glusterfs.quota.size=0x0000000098a2ac00<br><br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus/test<br>
trusted.glusterfs.quota.size=0x0000000000210000<br><br>getfattr: Removing leading '/' from absolute path names<br># file: soft/venus/psa<br>trusted.glusterfs.quota.size=0x000000000579e000<br><br>getfattr: Removing leading '/' from absolute path names<br>
# file: soft/venus/soft<br>trusted.glusterfs.quota.size=0x000000009307cc00<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div>                                            </div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</div><br></div>                                            </div></body>
</html>