Re: cannot set quota on ceph fs root

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

 



Hi Frank, 

I guess there is alway the possibility to set quota on pool level with "target_max_objects" and “target_max_bytes”
The cephfs quotas through attributes are only for sub-directories as far as I recall. 

Best, 
Jesper

--------------------------
Jesper Lykkegaard Karlsen
Scientific Computing
Centre for Structural Biology
Department of Molecular Biology and Genetics
Aarhus University
Universitetsbyen 81
8000 Aarhus C

E-mail: jelka@xxxxxxxxx
Tlf:    +45 50906203

> On 28 Jul 2022, at 17.22, Frank Schilder <frans@xxxxxx> wrote:
> 
> Hi Gregory,
> 
> thanks for your reply. It should be possible to set a quota on the root, other vattribs can be set as well despite it being a mount point. There must be something on the ceph side (or another bug in the kclient) preventing it.
> 
> By the way, I can't seem to find cephfs-tools like cephfs-shell. I'm using the image quay.io/ceph/ceph:v15.2.16 and its not installed in the image. A "yum provides cephfs-shell" returns no candidate and I can't find installation instructions. Could you help me out here?
> 
> Thanks and best regards,
> =================
> Frank Schilder
> AIT Risø Campus
> Bygning 109, rum S14
> 
> ________________________________________
> From: Gregory Farnum <gfarnum@xxxxxxxxxx>
> Sent: 28 July 2022 16:59:50
> To: Frank Schilder
> Cc: ceph-users@xxxxxxx
> Subject: Re:  cannot set quota on ceph fs root
> 
> On Thu, Jul 28, 2022 at 1:01 AM Frank Schilder <frans@xxxxxx> wrote:
>> 
>> Hi all,
>> 
>> I'm trying to set a quota on the ceph fs file system root, but it fails with "setfattr: /mnt/adm/cephfs: Invalid argument". I can set quotas on any sub-directory. Is this intentional? The documentation (https://docs.ceph.com/en/octopus/cephfs/quota/#quotas) says
>> 
>>> CephFS allows quotas to be set on any directory in the system.
>> 
>> Any includes the fs root. Is the documentation incorrect or is this a bug?
> 
> I'm not immediately seeing why we can't set quota on the root, but the
> root inode is special in a lot of ways so this doesn't surprise me.
> I'd probably regard it as a docs bug.
> 
> That said, there's also a good chance that the setfattr is getting
> intercepted before Ceph ever sees it, since by setting it on the root
> you're necessarily interacting with a mount point in Linux and those
> can also be finicky...You could see if it works by using cephfs-shell.
> -Greg
> 
> 
>> 
>> Best regards,
>> =================
>> Frank Schilder
>> AIT Risø Campus
>> Bygning 109, rum S14
>> _______________________________________________
>> ceph-users mailing list -- ceph-users@xxxxxxx
>> To unsubscribe send an email to ceph-users-leave@xxxxxxx
>> 
> 
> _______________________________________________
> ceph-users mailing list -- ceph-users@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx

_______________________________________________
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