Hi Michael,
Quota feature is supported by a module named lquota, just load this
module on servers and client in proper order will enable quota:
- On client, lquota should be loaded before lov/osc/mdc;
- On mds, lquota should be loaded before mds/lov/osc;
- On oss, lquota should be loaded before obdfilter/ost;
(Of course, the kernel running on servers must be quota enabled)
So the simplest way to enable quota is: run "modprobe lquota" before
setup on servers and mount on client.
If you don''t want load quota module manually each time, then edit the
modprobe.conf to load it automatically
at server setup or client mount. For example, add the following lines to
modprobe.conf of client:
install mdc /sbin/modprobe lquota; /sbin/modprobe --ignore-install mdc
install lov /sbin/modprobe lquota; /sbin/modprobe --ignore-install lov
install osc /sbin/modprobe lquota; /sbin/modprobe --ignore-install osc
It will help you to load lquota module on client in proper order.
After lustre mount, run ''lfs quoacheck'' on client to create
quota files,
quota begin to work now. (lfs quotacheck
will turn on quota after checking)
If you don''t want to turn on quota manually at every server setup, add
--quota option for mds and ost:
lmc --add mds --node XXX --quota quotaon=ug ...
lmc --add ost --node XXX --quota quotaon=ug ...
then lquota will be loaded and quota will be turned on at server setup.
Hope it''s helpful.
Thanks
- Niu
Michael Rose wrote:
> Hello Lustre users,
>
> I have a cluster where Lustre is installed, I''m trying to enable
> quotas, however the user manual is not very clear on this, could
> anybody with experience in this please help me in enabling quotas? I
> couldn''t find any relevant posts in the list other than some mails
> that mention quota is supported without going into details.
>
> The manual says:
> /Enable the quotas per file system by modifying /etc/fstab./
>
> however my nither metadata server, ost, nor the clients have the line:
> /mdsname:/mdtname/client /mnt/lustre ldiskfs
> defaults,usrquota,grpquota 1 2/
> mentioned in the manual,
> Which node should have this line Metadata Server, OST, or Client?
>
> and do I have to manually add this line or does it come automatically?
> if it is manual what does /mdsname/ and /mdtname/ stand for?
>
> Any help on enabling quotas would be appreciated.
>
> Thanks
>
> Michael
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Lustre-discuss mailing list
>Lustre-discuss@clusterfs.com
>https://mail.clusterfs.com/mailman/listinfo/lustre-discuss
>
>