Re: How can user home directory quotas be automatically set on CephFS?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you, Magnus for such quick reply!

Good pointers in there!

Cheers,
Artur

On Tue, 2 Nov 2021 at 14:50, Magnus HAGDORN <Magnus.Hagdorn@xxxxxxxx> wrote:

> Hi Artur,
> we did write a script (in fact a series of scripts) that we use to
> manage our users and their quotas. Our script adds a new user to our
> LDAP and sets the default quotas for various storage areas. Quota
> information is kept in the LDAP. Another script periodically scans the
> LDAP for changes and creates directories and adjusts quotas
> accordingly.
>
> I have a more detailed description of how we use cephfs to provide home
> directories on my blog here:
>
> https://blogs.ed.ac.uk/mhagdorn/2020/08/04/school-of-geosciences-file-storage/
>
> Hope this helps.
> magnus
>
> On Tue, 2021-11-02 at 13:31 +0200, Artur Kerge wrote:
> > This email was sent to you by someone outside the University.
> > You should only click on links or attachments if you are certain that
> > the email is genuine and the content is safe.
> >
> > Hello!
> >
> > As I understand CephFS user max file and byte quotas
> > (ceph.quota.max_{files,bytes}) can be set on an MDS (or CephFS
> > client) via
> > setfattr command (https://docs.ceph.com/en/octopus/cephfs/quota/).
> >
> > My question is, how can the quotas be set automatically for every new
> > user's home directory?
> >
> > Currently the setup of adding a user and setting limits is following:
> > new
> > user is added on LDAP, home folder is created with skel on CephFS
> > (mounted
> > via kernel driver) and then the ceph.quota's are set. I'd like to
> > automate
> > the last step.
> >
> > One possible option is to create a script, that sets the
> > max_bytes/files
> > limits after folder creation but that seems hack-y.
> >
> > To re-iterate, is there a way to automatically set quota limits on a
> > CephFS
> > directory?
> >
> > Best regards
> > Artur Kerge
> > _______________________________________________
> > ceph-users mailing list -- ceph-users@xxxxxxx
> > To unsubscribe send an email to ceph-users-leave@xxxxxxx
> The University of Edinburgh is a charitable body, registered in Scotland,
> with registration number SC005336. Is e buidheann carthannais a th’ ann an
> Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.
>
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux