WARNING: This is the _old_ Lustre wiki, and it is in the process of being retired. The information found here is all likely to be out of date. Please search the new wiki for more up to date information.

Using Quotas

From Obsolete Lustre Wiki
Revision as of 09:20, 5 October 2009 by Docadmin (talk | contribs) (Created page with ' The ''lfs quota'' command displays disk usage and quotas. By default, only user quotas are displayed (or with the ''-u'' flag). A root user can use the ''-u'' flag, with the op...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The lfs quota command displays disk usage and quotas. By default, only user quotas are displayed (or with the -u flag).

A root user can use the -u flag, with the optional user parameter, to view the limits of other users. Users without root user authority can use the -g flag, with the optional group parameter, to view the limits of groups of which they are members.

Note: If a user has no files in a file system on which they have a quota, the lfs quota command shows quota: none for the user. The user's actual quota is displayed when the user has files in the file system.

Examples

To display quotas as user “bob,” run:

$ lfs quota -u /mnt/lustre

The above command displays disk usage and limits for user "bob."

To display quotas as root user for user “bob,” run:

$ lfs quota -u bob /mnt/lustre

The system can also show the below information about disk usage by “bob.”

To display your group's quota as “tom”:

$ lfs -g tom /mnt/lustre

To display the group's quota of “tom”:

$ lfs quota -g tom /mnt/lustre

Note: As for ext3, Lustre makes a sparse file in case you truncate at an offset past the end of the file. Space is utilized in the file system only when you actually write the data to these blocks.