Re: Quota question

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

 



oh cool to know !

It's weird that the man page says "limits are never enforced on the superuser (nor are they enforced for group and project ID zero)"

http://manpages.ubuntu.com/manpages/trusty/en/man8/xfs_quota.8.html

Thanks
-- 
Cyril SCETBON

> On 02 Nov 2014, at 22:48, Chris Murphy <lists@xxxxxxxxxxxxxxxxx> wrote:
> 
> 
> On Nov 2, 2014, at 3:42 AM, Cyril Scetbon <cyril.scetbon@xxxxxxx> wrote:
> 
>> 
>>>> Hmm I chose btrfs because it's the only one supported by docker that supports quotas for the root user …
>>> 
>>> https://github.com/docker/docker/issues/3804
>>> 
>>> I don't think Docker is supporting quotas at all on anything yet. They want to do this but it seems the work hasn't been done yet, and they want it to be agnostic so it can work with device mapper, XFS, EXT4, and Btrfs.
>> 
>> What I'm saying is that btrfs is the only one that can apply quotas for root user (as docker needs to be launched as root user for some reason but it could change in the future).
> 
> OK no, XFS project quotas apply to root also which is why I suggested it.
> 
> [root@localhost project_quota_test1]# xfs_quota -c df
> Filesystem           1K-blocks       Used  Available  Use% Pathname
> /dev/sdb              83845120     157980   83687140    0% /xfs_local
> /dev/sdb                102400     124928 9223372036854753280  122% /xfs_local/project_quota_test1
> [root@localhost project_quota_test1]# dd if=/dev/zero of=test100MB bs=1M count=100
> dd: error writing ‘test100MB’: No space left on device
> 79+0 records in
> 78+0 records out
> 81788928 bytes (82 MB) copied, 0.163849 s, 499 MB/s
> [root@localhost project_quota_test1]# xfs_quota -c df
> Filesystem           1K-blocks       Used  Available  Use% Pathname
> /dev/sdb              83845120     237748   83607372    0% /xfs_local
> /dev/sdb                102400     204800 9223372036854673408  200% /xfs_local/project_quota_test1
> 
> 
> The available value is totally wonky, but once I reach the 200MB hard limit on this directory, even as root I get a no space left on device message.
> 
> 
>> 
>> 
>>>> I'd really appreciate if someone can tell me exactly what should work and what shouldn't 
>>> 
>>> Well I haven't tested this at all yet, but maybe XFS project quotas fits your use case better than group quotas? With project quotas you can still also use user quotas if necessary (but project and group quotas on XFS are mutually exclusive).
>> 
>> I have only one user that creates/launches containers, root ! What I'm looking for is being able to apply quotas to a container and also to a group of containers. That's why I'm trying to use parent qgroups with btrfs.
> 
> It looks like XFS project quotas will do what you want.
> 
> 
> Chris Murphy
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux