[Lustre-discuss] quota persistence over filesystem shutdown

Andrew Perepechko Andrew.Perepechko at Sun.COM
Wed May 21 12:25:29 PDT 2008


You might want to use mkfs.lustre or tunefs.lustre with quota_type=ug parameter

Andrew.

On Wednesday 21 May 2008 20:32:22 Guy Coates wrote:
> Hi all,
> 
> I have run into a problem with the quota system not being re-activated over a
> filesystem shutdown.
> 
> 
> I initially activated quotas on the lustre filesystem by running:
> 
> #quotacheck ug /mnt/data1
> 
> and then setting a user quota with:
> 
> #lfs -u gmpc 307200 309200 10000 11000 /mnt/data1
> 
> 
> quota-ing  works as expected. If I umount and remount the filesystem on the
> clients, the quota information and behaviour is preserved.
> 
> 
> However, if I un-mount the clients and then restart the MDS/OSTs, the quota
> system is not active once the filesystem is remounted on the client:
> 
> 
> # lfs quota -u gmpc /mnt/data1
> Disk quotas for user gmpc (uid xxxx):
>      Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
> quota failed: No such process
> 
> 
> If I run:
> 
> #lfs quotaon  /mnt/data1
> 
> on the client, the quota system is re-activated and everything works as expected.
> 
> 
> # lfs quota -u gmpc /mnt/data1
> Disk quotas for user gmpc (uid 10795):
>      Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
>      /mnt/data1   58308  307200  309200            1302   10000   11000
> data1-MDT0000_UUID
>                     432       0  102400            1302       0    5000
> data1-OST0000_UUID
>                    3272       0  102400
> data1-OST0001_UUID
>                   50500       0  102400
> data1-OST0002_UUID
>                    2052*      0       1
> data1-OST0003_UUID
>                    2052*      0       1
> 
> 
> I am running lustre 1.6.4.3 / kernel 2.6.18 on debian ia32. The lquota module
> has been loaded, and there are no error messages being generated on the
> client/ost/mds.
> 
> Cheers,
> 
> Guy
> 
> -- 
> Dr. Guy Coates,  Informatics System Group
> The Wellcome Trust Sanger Institute, Hinxton, Cambridge, CB10 1HH, UK
> Tel: +44 (0)1223 834244 x 6925
> Fax: +44 (0)1223 496802
> 
> 




More information about the lustre-discuss mailing list