cea-hpc / shine

Lustre administration tool
GNU General Public License v2.0
22 stars 9 forks source link

quota configuration options in .lmf are not taken into account with Lustre 2.x #148

Closed degremont closed 7 years ago

degremont commented 12 years ago

The quota configuration options (quota_iunit, quota_bunit, quota_itune, quota_btune) set in the filesystem description file .lmf seem to be ignored when the filesystem is created or updated.

Here is an abstract of the quota section from the .lmf file.

#
# Quota
#
# Enable quota support.
# Possible values are yes or no (default is no).
quota: yes

# Quota configuration options
# Describe options for quota support, if quota enabled.
#
# quota_type:     (default is 'ug')
# quota_iunit:    
# quota_bunit:    
# quota_itune:    
# quota_btune:    
quota_type: u
quota_bunit: 10240

The quota_bunit is not taken into account, neither during mkfs.lustre/tunefs.lustre operations, nor at tuning step. This option would require a 'lfs setquota' command to be launched for each user.

Looking at the code, I did not find any function where 'quota_bunit' option is processed.

Reported by: pichong

degremont commented 12 years ago
        owner
          changed from st-cea to ad-cea

        status
            changed from new to accepted

        summary
            changed from quota configuration options in .lmf are not taken into account to quota configuration options in .lmf are not taken into account with Lustre 2.x

Ok, after verification, proc entries for quota tuning has changed since this code was done (probably in Lustre 2.0). Now, quota should be set using: /proc/fs/lustre/lquota/dev- LustreManual? does not seem to be up to date.

Those paths are used in lib/Shine/Command/Tune.py. Fix should be there.

As a workaround, you can set this tuning using tuning.conf

Original comment by: degremont

degremont commented 11 years ago

Diff:

Original comment by: degremont

degremont commented 11 years ago

Paths are fixed in [96197a], closing this ticket.

Original comment by: degremont