[Lustre-discuss] Lustre Quota over Hard Limit

Niu, Yawei yawei.niu at intel.com
Tue Mar 4 22:35:44 PST 2014


Yes, the param of xxx.quota_type is obsolete from 2.4.

From: Chan Ching Yu Patrick [mailto:cychan at clustertech.com]
Sent: Wednesday, March 05, 2014 12:32 PM
To: Niu, Yawei
Cc: lustre-discuss at lists.lustre.org
Subject: Re: [Lustre-discuss] Lustre Quota over Hard Limit

Hi Niu,

I've enabled quota during formatting, do I still need to enable it by lctl?

[root at mds1 ~]# tunefs.lustre /dev/sda
checking for existing Lustre data: found
Reading CONFIGS/mountdata

   Read previous values:
Target:     data-MDT0000
Index:      0
Lustre FS:  data
Mount type: ldiskfs
Flags:      0x5
              (MDT MGS )
Persistent mount opts: user_xattr,errors=remount-ro
Parameters: mgsnode=192.168.122.240 at tcp<mailto:mgsnode=192.168.122.240 at tcp> mgsnode=192.168.100.100 at tcp1<mailto:mgsnode=192.168.100.100 at tcp1> mdt.quota_type=ug


   Permanent disk data:
Target:     data-MDT0000
Index:      0
Lustre FS:  data
Mount type: ldiskfs
Flags:      0x5
              (MDT MGS )
Persistent mount opts: user_xattr,errors=remount-ro
Parameters: mgsnode=192.168.122.240 at tcp<mailto:mgsnode=192.168.122.240 at tcp> mgsnode=192.168.100.100 at tcp1<mailto:mgsnode=192.168.100.100 at tcp1> mdt.quota_type=ug


[root at oss1 ~]# tunefs.lustre /dev/sda
checking for existing Lustre data: found
Reading CONFIGS/mountdata

   Read previous values:
Target:     data-OST0000
Index:      0
Lustre FS:  data
Mount type: ldiskfs
Flags:      0x2
              (OST )
Persistent mount opts: errors=remount-ro
Parameters: mgsnode=192.168.122.240 at tcp<mailto:mgsnode=192.168.122.240 at tcp> mgsnode=192.168.100.100 at tcp1<mailto:mgsnode=192.168.100.100 at tcp1> ost.quota_type=ug


   Permanent disk data:
Target:     data-OST0000
Index:      0
Lustre FS:  data
Mount type: ldiskfs
Flags:      0x2
              (OST )
Persistent mount opts: errors=remount-ro
Parameters: mgsnode=192.168.122.240 at tcp<mailto:mgsnode=192.168.122.240 at tcp> mgsnode=192.168.100.100 at tcp1<mailto:mgsnode=192.168.100.100 at tcp1> ost.quota_type=ug



On 03/05/2014 12:12 PM, Niu, Yawei wrote:

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)



-----Original Message-----

From: lustre-discuss-bounces at lists.lustre.org<mailto:lustre-discuss-bounces at lists.lustre.org> [mailto:lustre-discuss-bounces at lists.lustre.org] On Behalf Of Chan Ching Yu Patrick

Sent: Wednesday, March 05, 2014 11:25 AM

To: lustre-discuss at lists.lustre.org<mailto:lustre-discuss at lists.lustre.org>

Subject: [Lustre-discuss] Lustre Quota over Hard Limit



Hi,



I'm testing quota with latest maintenance release (Lustre 2.4.2).

I found that Lustre still allow the users to write the file over hard limit.



Let's see the example below. I've set 500MB soft limit and 530MB hard limit.

But I can write a 700MB file.



[patrick at client lustre]$ dd if=/dev/zero of=/lustre/file bs=1M count=700

700+0 records in

700+0 records out

734003200 bytes (734 MB) copied, 31.6627 s, 23.2 MB/s



[root at client lustre]# lfs quota -u patrick /lustre/ Disk quotas for user patrick (uid 500):

      Filesystem  kbytes   quota   limit   grace   files   quota

limit   grace

        /lustre/  716804* 500000  530000       -       1       0

0       -





Regards,

Patrick

_______________________________________________

Lustre-discuss mailing list

Lustre-discuss at lists.lustre.org<mailto:Lustre-discuss at lists.lustre.org>

http://lists.lustre.org/mailman/listinfo/lustre-discuss

--
Chan Ching Yu, Patrick
Senior System Engineer
Cluster Technology Limited

Modernize Your Business with Advanced Computing Technologies
Cloud Computing | Cluster | Financial Engineering | Business Intelligence
Email: cychan @clustertech.com<mailto:cychan at clustertech.com>
Direct Line: +852 2655 6113     Tel: +852 2655 6100     Fax: +852 2994 2101
Website: www.clustertech.com<http://www.clustertech.com>
Address: Units 211 - 213, Lakeside 1, No. 8 Science Park West Avenue, Hong Kong Science Park, N.T. Hong Kong
Hong Kong     Beijing     Shanghai     Guangzhou     Shenzhen     Wuhan     Sydney

**************************************************************************
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.
**************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lustre.org/pipermail/lustre-discuss-lustre.org/attachments/20140305/51260b38/attachment.htm>


More information about the lustre-discuss mailing list