<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Yes, the param of xxx.quota_type is obsolete from 2.4.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Chan Ching Yu Patrick [mailto:cychan@clustertech.com]
<br>
<b>Sent:</b> Wednesday, March 05, 2014 12:32 PM<br>
<b>To:</b> Niu, Yawei<br>
<b>Cc:</b> lustre-discuss@lists.lustre.org<br>
<b>Subject:</b> Re: [Lustre-discuss] Lustre Quota over Hard Limit<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Niu,<br>
<br>
I've enabled quota during formatting, do I still need to enable it by lctl?<br>
<br>
[root@mds1 ~]# tunefs.lustre /dev/sda<br>
checking for existing Lustre data: found<br>
Reading CONFIGS/mountdata<br>
<br>
   Read previous values:<br>
Target:     data-MDT0000<br>
Index:      0<br>
Lustre FS:  data<br>
Mount type: ldiskfs<br>
Flags:      0x5<br>
              (MDT MGS )<br>
Persistent mount opts: user_xattr,errors=remount-ro<br>
Parameters: <a href="mailto:mgsnode=192.168.122.240@tcp">mgsnode=192.168.122.240@tcp</a>
<a href="mailto:mgsnode=192.168.100.100@tcp1">mgsnode=192.168.100.100@tcp1</a> <b>
mdt.quota_type=ug</b><br>
<br>
<br>
   Permanent disk data:<br>
Target:     data-MDT0000<br>
Index:      0<br>
Lustre FS:  data<br>
Mount type: ldiskfs<br>
Flags:      0x5<br>
              (MDT MGS )<br>
Persistent mount opts: user_xattr,errors=remount-ro<br>
Parameters: <a href="mailto:mgsnode=192.168.122.240@tcp">mgsnode=192.168.122.240@tcp</a>
<a href="mailto:mgsnode=192.168.100.100@tcp1">mgsnode=192.168.100.100@tcp1</a> <b>
mdt.quota_type=ug</b><br>
<br>
<br>
[root@oss1 ~]# tunefs.lustre /dev/sda<br>
checking for existing Lustre data: found<br>
Reading CONFIGS/mountdata<br>
<br>
   Read previous values:<br>
Target:     data-OST0000<br>
Index:      0<br>
Lustre FS:  data<br>
Mount type: ldiskfs<br>
Flags:      0x2<br>
              (OST )<br>
Persistent mount opts: errors=remount-ro<br>
Parameters: <a href="mailto:mgsnode=192.168.122.240@tcp">mgsnode=192.168.122.240@tcp</a>
<a href="mailto:mgsnode=192.168.100.100@tcp1">mgsnode=192.168.100.100@tcp1</a> <b>
ost.quota_type=ug</b><br>
<br>
<br>
   Permanent disk data:<br>
Target:     data-OST0000<br>
Index:      0<br>
Lustre FS:  data<br>
Mount type: ldiskfs<br>
Flags:      0x2<br>
              (OST )<br>
Persistent mount opts: errors=remount-ro<br>
Parameters: <a href="mailto:mgsnode=192.168.122.240@tcp">mgsnode=192.168.122.240@tcp</a>
<a href="mailto:mgsnode=192.168.100.100@tcp1">mgsnode=192.168.100.100@tcp1</a> <b>
ost.quota_type=ug</b><br>
<br>
<br>
<br>
On 03/05/2014 12:12 PM, Niu, Yawei wrote: <o:p></o:p></p>
<pre>Did you enable block quota by 'lctl conf_param $fsname.ost.quota=ug"? You can check this in the "quota_slave/info" of each osd proc dir. (for instance, proc/fs/lustre/osd-ldiskfs/lustre-OST0000/quota_slave/info)<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-----Original Message-----<o:p></o:p></pre>
<pre>From: <a href="mailto:lustre-discuss-bounces@lists.lustre.org">lustre-discuss-bounces@lists.lustre.org</a> [<a href="mailto:lustre-discuss-bounces@lists.lustre.org">mailto:lustre-discuss-bounces@lists.lustre.org</a>] On Behalf Of Chan Ching Yu Patrick<o:p></o:p></pre>
<pre>Sent: Wednesday, March 05, 2014 11:25 AM<o:p></o:p></pre>
<pre>To: <a href="mailto:lustre-discuss@lists.lustre.org">lustre-discuss@lists.lustre.org</a><o:p></o:p></pre>
<pre>Subject: [Lustre-discuss] Lustre Quota over Hard Limit<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Hi,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I'm testing quota with latest maintenance release (Lustre 2.4.2).<o:p></o:p></pre>
<pre>I found that Lustre still allow the users to write the file over hard limit.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Let's see the example below. I've set 500MB soft limit and 530MB hard limit.<o:p></o:p></pre>
<pre>But I can write a 700MB file.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>[patrick@client lustre]$ dd if=/dev/zero of=/lustre/file bs=1M count=700<o:p></o:p></pre>
<pre>700+0 records in<o:p></o:p></pre>
<pre>700+0 records out<o:p></o:p></pre>
<pre>734003200 bytes (734 MB) copied, 31.6627 s, 23.2 MB/s<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>[root@client lustre]# lfs quota -u patrick /lustre/ Disk quotas for user patrick (uid 500):<o:p></o:p></pre>
<pre>      Filesystem  kbytes   quota   limit   grace   files   quota   <o:p></o:p></pre>
<pre>limit   grace<o:p></o:p></pre>
<pre>        /lustre/  716804* 500000  530000       -       1       0       <o:p></o:p></pre>
<pre>0       -<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Regards,<o:p></o:p></pre>
<pre>Patrick<o:p></o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Lustre-discuss mailing list<o:p></o:p></pre>
<pre><a href="mailto:Lustre-discuss@lists.lustre.org">Lustre-discuss@lists.lustre.org</a><o:p></o:p></pre>
<pre><a href="http://lists.lustre.org/mailman/listinfo/lustre-discuss">http://lists.lustre.org/mailman/listinfo/lustre-discuss</a><o:p></o:p></pre>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">-- <br>
<span style="font-size:10.5pt">Chan Ching Yu, Patrick<br>
Senior System Engineer<br>
</span><b><span style="color:#333333">Cluster Technology Limited</span></b><br>
<br>
<b><i><span style="font-size:10.0pt;color:#999999">Modernize Your Business with Advanced Computing Technologies</span></i></b><br>
<b><span style="font-size:10.0pt;color:#999999">Cloud Computing | Cluster | Financial Engineering | Business Intelligence</span></b><o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#00CCFF">Email:</span><span style="font-size:10.0pt;color:#666666">
<a href="mailto:cychan@clustertech.com">cychan @clustertech.com</a><br>
</span><span style="font-size:10.0pt;color:#00CCFF">Direct Line:</span><span style="font-size:10.0pt;color:#666666"> +852 2655 6113    
</span><span style="font-size:10.0pt;color:#00CCFF">Tel:</span><span style="font-size:10.0pt;color:#666666"> +852 2655 6100    
</span><span style="font-size:10.0pt;color:#00CCFF">Fax:</span><span style="font-size:10.0pt;color:#666666"> +852 2994 2101
<br>
</span><span style="font-size:10.0pt;color:#00CCFF">Website:</span><span style="font-size:10.0pt;color:#666666">
<a href="http://www.clustertech.com">www.clustertech.com</a><br>
</span><span style="font-size:10.0pt;color:#00CCFF">Address:</span><span style="font-size:10.0pt;color:#666666"> Units 211 - 213, Lakeside 1, No. 8 Science Park West Avenue, Hong Kong Science Park, N.T. Hong Kong<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="line-height:10.5pt"><i><span style="font-size:10.0pt;color:#666666">Hong Kong     Beijing     Shanghai     Guangzhou     Shenzhen     Wuhan     Sydney<o:p></o:p></span></i></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;color:#666666"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt">**************************************************************************<br>
The information contained in this e-mail and its attachments is confidential and intended solely for the specified addressees. If you have received this email in error, please do not read, copy, distribute, disclose or use any information of this email in any
 way and please immediately notify the sender and delete this email. Thank you for your cooperation.<br>
************************************************************************** </span>
<o:p></o:p></p>
</div>
</div>
</body>
</html>