[lxc-users] Btrfs gquota and container disk usage limits
Mark Constable
markc at renta.net
Fri Mar 20 00:37:40 UTC 2015
I've tried to see if btrfs gquota applied to the btrfs subvolumes
automatically created with both lxc-create and lxc create would
be reflected within a container via df but no such luck yet. I'm
just wondering if I am doing this right and/or any hints I may be
missing?
Or is this another thing that is not ready yet?
Ubuntu 15.04 host and containers, 1 system, 2 unprivileged lxd...
~ btrfs sub list /
ID 1674 gen 560623 top level 5 path @
ID 1675 gen 560623 top level 5 path @home
ID 2388 gen 551854 top level 1674 path var/lib/lxc/sysadm.lan/rootfs/var/lib/machines
ID 2389 gen 551882 top level 1674 path var/lib/machines
ID 2403 gen 554661 top level 1674 path var/lib/lxd/lxc/v1/rootfs/var/lib/machines
ID 2407 gen 556386 top level 1674 path var/lib/lxd/lxc/v2/rootfs/var/lib/machines
btrfs quota enable /
btrfs quota rescan /
btrfs qgroup limit 5G /var/lib/lxc/sysadm.lan/rootfs/var/lib/machines
btrfs qgroup limit 1G /var/lib/lxd/lxc/v1/rootfs/var/lib/machines
btrfs qgroup limit 5G /var/lib/lxd/lxc/v2/rootfs/var/lib/machines
btrfs quota rescan /
~ btrfs qgroup show / -re
qgroupid rfer excl max_rfer max_excl
-------- ---- ---- -------- --------
0/5 16384 16384 0 0
0/930 14095704064 14095704064 0 0
0/931 60293865472 60293865472 0 0
0/1674 25438732288 25438732288 0 0
0/1675 42481688576 42481688576 0 0
0/2388 16384 16384 5368709120 0
0/2403 16384 16384 1073741824 0
0/2407 16384 16384 5368709120 0
More information about the lxc-users
mailing list