[lxc-users] Args for lxd init via script

gunnar.wagner gunnar.wagner at netcologne.de
Sun May 21 13:16:45 UTC 2017


just for my understanding ... you want to monitor disk usage on the LXD 
host, right?


On 5/21/2017 5:39 PM, Fajar A. Nugraha wrote:
>
>
> On Sun, May 21, 2017 at 2:51 PM, Mark Constable <markc at renta.net 
> <mailto:markc at renta.net>> wrote:
>
>     On 5/21/17 4:02 PM, Jeff Kowalczyk wrote:
>
>             My question, is it reasonable to provide a separate
>             profile and
>             zfs pool per container and is there a better or more
>             efficient way
>             to get the same end result?
>
>
>         Will disk limits work for you?
>
>         https://stgraber.org/2016/03/26/lxd-2-0-resource-control-412/
>         <https://stgraber.org/2016/03/26/lxd-2-0-resource-control-412/>
>         https://github.com/lxc/lxd/blob/master/doc/containers.md#type-disk
>         <https://github.com/lxc/lxd/blob/master/doc/containers.md#type-disk>
>
>
>     Thanks for the suggestion and links. I'll have to test whether the
>     "size" limit is actually reflected within the container so that df
>     and other tools can be used to monitor disk usage.
>
>
> it works for zfs. lxd would set zfs quota property, which would be 
> displayed correctly in tools like df and such.
>
> btrfs have similar limit setup, but it does NOT show in df.
>
> -- 
> Fajar
>
>
>     For example, PHP's disk_total_space() and disk_free_space() functions
>     do work accurately with a zfs pool and seeing that I am working
>     towards
>     a LXD plugin for my hosting control panel I really need disk limits to
>     work similar to a VPS or Xen VM.
>
>     _______________________________________________
>     lxc-users mailing list
>     lxc-users at lists.linuxcontainers.org
>     <mailto:lxc-users at lists.linuxcontainers.org>
>     http://lists.linuxcontainers.org/listinfo/lxc-users
>     <http://lists.linuxcontainers.org/listinfo/lxc-users>
>
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users

-- 
Gunnar Wagner | Yongfeng Village Group 12 #5, Pujiang Town, Minhang 
District, 201112 Shanghai, P.R. CHINA
mob +86.159.0094.1702 | skype: professorgunrad | wechat: 15900941702
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170521/305bb01d/attachment.html>


More information about the lxc-users mailing list