23.07.2014 Views

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

Lustre 1.6 Operations Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The quota_bunit_sz parameter displays bytes, however lfs setquota uses<br />

KBs. The quota_bunit_sz parameter must be a multiple of 1024. A proper<br />

minimum KB size for lfs setquota can be calculated as:<br />

Size in KBs = (quota_bunit_sz * ( number of OSTS + 1 )) / 1024<br />

We add one (1) to the number of OSTs as the MDS also consumes KBs. As inodes are<br />

only consumed on the MDS, the minimum inode size for lfs setquota is equal to<br />

quota_iunit_sz.<br />

Note – Setting the quota below this limit may prevent the user from all file creation.<br />

To turn on the quotas for a user and a group, run:<br />

$ lfs quotaon -ug /mnt/lustre<br />

To turn off the quotas for a user and a group, run:<br />

$ lfs quotaoff -ug /mnt/lustre<br />

To set the quotas for a user as 1 GB block quota and 10,000 file quota, run:<br />

$ lfs setquota -u {username} 0 1000000 0 10000 /mnt/lustre<br />

To list the quotas of a user, run:<br />

$ lfs quota -u {username} /mnt/lustre<br />

To see the grace time for quota, run:<br />

$ lfs quota -t –{u|g} {quota user|group} /mnt/lustre<br />

Chapter 9 Configuring Quotas 9-9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!