Difference between revisions of "Lustre: Configuraing and Managing Quotas"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== 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 acc...")
 
 
Line 7: Line 7:
 
To turn on the user and group quotas for both inode and block on file system lustrefs, run:  
 
To turn on the user and group quotas for both inode and block on file system lustrefs, run:  
  
 +
<syntaxhighlight>
 
[root@mds2 ~]# lctl conf_param lustrefs.quota.ost=ug
 
[root@mds2 ~]# lctl conf_param lustrefs.quota.ost=ug
 
 
[root@mds2 ~]# lctl conf_param lustrefs.quota.mdt=ug
 
[root@mds2 ~]# lctl conf_param lustrefs.quota.mdt=ug
 
+
</syntaxhighlight>
  
 
To view the quotas setting for particular user:
 
To view the quotas setting for particular user:
 +
<syntaxhighlight>
 
# ssh into one lustre client, eg. compute001
 
# ssh into one lustre client, eg. compute001
# run lfs quota -u david -v /mnt/lustrefs/ to see the quota details of the user david
+
# run cmd below to see the quota details of the user david
 +
lfs quota -u david -v /mnt/lustrefs/  
 +
</syntaxhighlight>
  
 
To set the quotas for a specific ID,  
 
To set the quotas for a specific ID,  
 +
<syntaxhighlight>
 
# ssh into one lustre client, eg. compute001
 
# ssh into one lustre client, eg. compute001
# run lfs setquota -u david -b 307200 -B 307200 -i 10000 -I 11000 /mnt/lustrefs/ to set the quota for user "david" to 300MB, hard limit to 11000 files,
+
# 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/  
 +
</syntaxhighlight>

Latest revision as of 21:27, 5 January 2015

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/