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 lfs command now includes these command options to work with quotas:<br />

■<br />

■<br />

■<br />

quotaon — announces to the system that disk quotas should be enabled on one<br />

or more filesystems. The filesystem quota files must be present in the root<br />

directory of the specified filesystem.<br />

quotaoff — announces to the system that the specified filesystems should have<br />

all disk quotas turned off.<br />

setquota — used to specify the quota limits and tune the grace period. By<br />

default, the grace period is one week.<br />

Usage:<br />

setquota [ -u | -g ] <br />

<br />

setquota -t [ -u | -g ] <br />

lfs > setquota -u bob 307200 309200 10000 11000 /mnt/lustre<br />

In the above example, the quota is set to 300 MB (309200*1024) and the hard limit is<br />

11,000 files on user bob. Therefore, the inode hard limit should be 11000.<br />

Note – For the <strong>Lustre</strong> command $ lfs setquota/quota ... the qunit for block is<br />

KB (1024) and the qunit for inode is 1.<br />

Quota displays the quota allocated and consumed for each <strong>Lustre</strong> device. This<br />

example shows the result of the previous setquota:<br />

# lfs quota -u bob /mnt/lustre Disk quotas for user bob (uid 500):<br />

Filesystem blocks quota limit grace files quota limit grace<br />

/mnt/lustre 0 307200 309200 0 10000 11000<br />

lustre-MDT0000_UUID 0 0 102400 0 0 5000<br />

lustre-OST0000_UUID 0 0 102400<br />

lustre-OST0001_UUID 0 0 102400<br />

Chapter 9 Configuring Quotas 9-5

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

Saved successfully!

Ooh no, something went wrong!