Lustre User Quotas

Quotas allow a system administrator to limit the amount of disk space a user or group can use in a directory.

  • Verify that lquota module is loaded using lsmod command.
    [root@localhost ~]# lsmod | grep lquota
    lquota                258284  7 obdfilter,mds
    ptlrpc               1036680  10 obdfilter,ost,mds,mgs,mgc,lustre,lov,mdc,lquota,osc
    obdclass              752472  14 obdfilter,ost,mds,fsfilt_ldiskfs,mgs,mgc,lustre,lov,mdc,lquota,osc,ptlrpc
    lvfs                   97072  14 obdfilter,ost,mds,fsfilt_ldiskfs,mgs,mgc,lustre,lov,mdc,lquota,osc,ptlrpc,obdclass
    libcfs                136180  16 obdfilter,ost,mds,fsfilt_ldiskfs,mgs,mgc,lustre,lov,mdc,lquota,osc,ksocklnd,ptlrpc,obdclass,lnet,lvfs
    
  • When quota is enabled on the file system, it is automatically enabled for all file system clients. To enable quotas automatically when the file system is started, you must set the mdt.quota_type and ost.quota_type parameters, respectively, on the MDT and OSTs. The parameters can be set to the string u (user), g (group) or ug for both users and groups. For example, mdt.quota_type = u, ost.quota_type = ug. This can be done while making a file system or using tunefs command as shown in the following examples.
    mkfs.lustre --param mdt.quota_type=ug 
    OR
    tunefs.lustre --param ost.quota_type=ug $ost_dev
    

Note: More sections will be added as the understanding of lustre grows.

Reference: Lustre Manual- Chapter 9