<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 21, 2017 at 2:51 PM, Mark Constable <span dir="ltr"><<a href="mailto:markc@renta.net" target="_blank">markc@renta.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 5/21/17 4:02 PM, Jeff Kowalczyk wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My question, is it reasonable to provide a separate profile and<br>
zfs pool per container and is there a better or more efficient way<br>
to get the same end result?<br>
</blockquote>
<br></span><span class="">
Will disk limits work for you?<br>
<br>
<a href="https://stgraber.org/2016/03/26/lxd-2-0-resource-control-412/" rel="noreferrer" target="_blank">https://stgraber.org/2016/03/2<wbr>6/lxd-2-0-resource-control-412<wbr>/</a><br>
<a href="https://github.com/lxc/lxd/blob/master/doc/containers.md#type-disk" rel="noreferrer" target="_blank">https://github.com/lxc/lxd/blo<wbr>b/master/doc/containers.md#typ<wbr>e-disk</a><br>
</span></blockquote>
<br>
Thanks for the suggestion and links. I'll have to test whether the<br>
"size" limit is actually reflected within the container so that df<br>
and other tools can be used to monitor disk usage.<br></blockquote><div><br></div><div>it works for zfs. lxd would set zfs quota property, which would be displayed correctly in tools like df and such.</div><div><br></div><div>btrfs have similar limit setup, but it does NOT show in df.</div><div><br></div><div>-- </div><div>Fajar</div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
For example, PHP's disk_total_space() and disk_free_space() functions<br>
do work accurately with a zfs pool and seeing that I am working towards<br>
a LXD plugin for my hosting control panel I really need disk limits to<br>
work similar to a VPS or Xen VM.<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org" target="_blank">lxc-users@lists.linuxcontainer<wbr>s.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.o<wbr>rg/listinfo/lxc-users</a></div></div></blockquote></div><br></div></div>