[lxc-users] Limits kind of not working
Pavol Cupka
pavol.cupka at gmail.com
Tue Sep 12 16:36:15 UTC 2017
I want to use btrfs even though it is not "production ready", but I
like it for the features zfs is missing (balancing, growing/shrinking
volumes, dedup not eating your ram ...).
I wrote 50GB using dd if=/dev/zero and the quota show is showing this now
btrfs qgroup show -reF /var/lib/lxd/containers/c1/
qgroupid rfer excl max_rfer max_excl
-------- ---- ---- -------- --------
0/528 2.59GiB 1.72GiB none 20.00GiB
so technicaly speaking it is working because excl is smaller then
max_excl but in practice 50GB is not smaller than 20GB.
I will try to ask in btrfs mailing list. thank you for your help
On Tue, Sep 12, 2017 at 9:39 AM, Marat Khalili <mkh at rqc.ru> wrote:
>> so you would recommend ZFS instead?
>
>
> I personally don't use ZFS (it's alien to Linux kernel and I don't want to
> deal with support problems arising from this situation). Many people claim
> it's magical and revolutionary, so it's up to you to test and decide.
>
> I use LXC on BTRFS with manually-enabled quotas, but I do have problems with
> it. If you want it simple I'd recommend to either forget quotas or use
> partitions.
>
>> well it looks like it gets set correctly also for btrfs
>>
>> btrfs qgroup show -reF /var/lib/lxd/containers/c1/
>> qgroupid rfer excl max_rfer max_excl
>> -------- ---- ---- -------- --------
>> 0/528 1.02GiB 156.54MiB
>
>
> Not sure why it doesn't work then, try calling `btrfs quota enable` for the
> filesystem. Are you sure you can really exceed the quota? You have it set
> for amount of exclusive data, so extents shared with other subvolumes do not
> count towards it.
>
>
> --
>
> With Best Regards,
> Marat Khalili
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
More information about the lxc-users
mailing list