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

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

 



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



[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