<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Hi Mark<br><br>I see that nobody replied to your question.<br>Have you made any progress in the meantime?<br>Also, how did you manage to have your containers v1 and v2 installed into a btrfs subvolume? With lxc-create it's clear, but with lxc launch?<br><span><font size="2" face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"><div><font size="2" face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"><span><br>Thanks,<br>David<br></span></font></div></font></span><br><font color="#990099">-----"lxc-users" <lxc-users-bounces@lists.linuxcontainers.org> wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: lxc-users <lxc-users@lists.linuxcontainers.org><br>From: Mark Constable <markc@renta.net><br>Sent by: "lxc-users" <lxc-users-bounces@lists.linuxcontainers.org><br>Date: 03/20/2015 1:38<br>Subject: [lxc-users] Btrfs gquota and container disk usage limits<br><br><div><font size="2" face="Courier New,Courier,monospace">I've tried to see if btrfs gquota applied to the btrfs subvolumes<br>automatically created with both lxc-create and lxc create would<br>be reflected within a container via df but no such luck yet. I'm<br>just wondering if I am doing this right and/or any hints I may be<br>missing?<br><br>Or is this another thing that is not ready yet?<br><br>Ubuntu 15.04 host and containers, 1 system, 2 unprivileged lxd...<br><br>~ btrfs sub list /<br>ID 1674 gen 560623 top level 5 path @<br>ID 1675 gen 560623 top level 5 path @home<br>ID 2388 gen 551854 top level 1674 path var/lib/lxc/sysadm.lan/rootfs/var/lib/machines<br>ID 2389 gen 551882 top level 1674 path var/lib/machines<br>ID 2403 gen 554661 top level 1674 path var/lib/lxd/lxc/v1/rootfs/var/lib/machines<br>ID 2407 gen 556386 top level 1674 path var/lib/lxd/lxc/v2/rootfs/var/lib/machines<br><br>btrfs quota enable /<br>btrfs quota rescan /<br>btrfs qgroup limit 5G /var/lib/lxc/sysadm.lan/rootfs/var/lib/machines<br>btrfs qgroup limit 1G /var/lib/lxd/lxc/v1/rootfs/var/lib/machines<br>btrfs qgroup limit 5G /var/lib/lxd/lxc/v2/rootfs/var/lib/machines<br>btrfs quota rescan /<br><br>~ btrfs qgroup show / -re<br>qgroupid rfer        excl        max_rfer   max_excl<br>-------- ----        ----        --------   --------<br>0/5      16384       16384       0          0<br>0/930    14095704064 14095704064 0          0<br>0/931    60293865472 60293865472 0          0<br>0/1674   25438732288 25438732288 0          0<br>0/1675   42481688576 42481688576 0          0<br>0/2388   16384       16384       5368709120 0<br>0/2403   16384       16384       1073741824 0<br>0/2407   16384       16384       5368709120 0<br>_______________________________________________<br>lxc-users mailing list<br>lxc-users@lists.linuxcontainers.org<br><a href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></font></div></lxc-users-bounces@lists.linuxcontainers.org></markc@renta.net></div></div><div></div></font>