Lustre: Configuraing and Managing Quotas

From Define Wiki
Revision as of 21:27, 5 January 2015 by David (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Configuring Quotas on MSU Nodes

Note: All file systems formatted with Lustre software release 2.4.0 or newer no longer require quotacheck to be run since up-to-date accounting information are now always maintained by the OSD layer, regardless of the quota enforcement status.

On MSU nodes,

To turn on the user and group quotas for both inode and block on file system lustrefs, run:

[root@mds2 ~]# lctl conf_param lustrefs.quota.ost=ug
[root@mds2 ~]# lctl conf_param lustrefs.quota.mdt=ug

To view the quotas setting for particular user:

# ssh into one lustre client, eg. compute001
# run cmd below to see the quota details of the user david
lfs quota -u david -v /mnt/lustrefs/

To set the quotas for a specific ID,

# ssh into one lustre client, eg. compute001
# cmd below to set the quota for user "david" to 300MB, hard limit to 11000 files,
lfs setquota -u david -b 307200 -B 307200 -i 10000 -I 11000 /mnt/lustrefs/