[lxc-users] Args for lxd init via script

Fajar A. Nugraha list at fajar.net
Sun May 21 09:39:26 UTC 2017


On Sun, May 21, 2017 at 2:51 PM, Mark Constable <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://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
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170521/b2159ba9/attachment-0001.html>


More information about the lxc-users mailing list