<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>just for my understanding ... you want to monitor disk usage on
the LXD host, right?</p>
<br>
<div class="moz-cite-prefix">On 5/21/2017 5:39 PM, Fajar A. Nugraha
wrote:<br>
</div>
<blockquote
cite="mid:CAG1y0sevOYh7cAd-Yo-AmqAV+7BAzKTnQw-J1tdHhBHk+pZx0A@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:lxc-users@lists.linuxcontainers.org"
target="_blank">lxc-users@lists.linuxcontainer<wbr>s.org</a><br>
<a moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<span style="font-family: Arial Unicode MS;">Gunnar Wagner | </span><span
style="font-family: Arial Unicode MS;">Yongfeng Village Group 12
#5, Pujiang Town, Minhang District, 201112 Shanghai, P.R. CHINA
</span><br style="font-family: Arial Unicode MS;">
<span style="font-family: Arial Unicode MS;">mob +86.159.0094.1702
| skype:
professorgunrad | wechat: 15900941702</span><br>
</div>
</body>
</html>