Re: CephFS Quotas on Subdirectories

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

 



Thank you Luis, I’m looking forward to a solution.

> On 26. Feb 2019, at 13:10, Luis Henriques <lhenriques@xxxxxxxx> wrote:
> 
> Hendrik Peyerl <hpeyerl@xxxxxxxxxxxx> writes:
> 
>> Thank you Ramana and Luis for your quick reply.
>> 
>> @ Ramana: I have a quota for 300G for this specific environment, I dont want to
>> split this into 100G quotas for all the subdirectories as i cannot yet forsee
>> how big they will be.
>> 
>> @ Luis: The Client has access to the Environment directory as you can
>> see from the Client Caps I sent aswell.
> 
> Hmm.. Ok, I misunderstood your issue.
> 
> I've done a quick test and the fuse client seems to be able to handle
> this scenario correctly, so I've created a bug in the tracker[1].  I'll
> investigate and see if this can be fixed.
> 
> [1] https://tracker.ceph.com/issues/38482
> 
> Cheers,
> -- 
> Luis
> 
> 
>> 
>> Thanks and best regards,
>> 
>> Hendrik
>> 
>>> On 26. Feb 2019, at 11:11, Luis Henriques <lhenriques@xxxxxxxx> wrote:
>>> 
>>> On Tue, Feb 26, 2019 at 03:47:31AM -0500, Ramana Raja wrote:
>>>> On Tue, Feb 26, 2019 at 1:38 PM, Hendrik Peyerl <hpeyerl@xxxxxxxxxxxx> wrote: 
>>>>> 
>>>>> Hello All,
>>>>> 
>>>>> I am having some troubles with Ceph Quotas not working on subdirectories. I
>>>>> am running with the following directory tree:
>>>>> 
>>>>> - customer
>>>>> - project
>>>>>   - environment
>>>>>     - application1
>>>>>     - application2
>>>>>     - applicationx
>>>>> 
>>>>> I set a quota on environment which works perfectly fine, the client sees the
>>>>> quota and is not breaching it. The problem starts when I try to mount a
>>>>> subdirectory like application1, this directory does not have any quota at
>>>>> all.
>>>>> Is there a possibility to set a quota for environment so that the application
>>>>> directories will not be able to go over that quota?
>>>> 
>>>> Can you set quotas on the application directories as well?
>>>> setfattr -n ceph.quota.max_bytes -v <quota set on environment> /environment/application1 
>>> 
>>> Right, that would work of course.  The client needs to have access to
>>> the 'environment' directory inode in order to enforce quotas, otherwise
>>> it won't be aware of the existence of any quotas at all.  See
>>> "Limitations" (#4 in particular) in
>>> 
>>> http://docs.ceph.com/docs/master/cephfs/quota/
>>> 
>>> Cheers,
>>> --
>>> Luís
>> 
>> 

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




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


  Powered by Linux