[lxc-users] Args for lxd init via script

Mark Constable markc at renta.net
Sun May 21 15:05:37 UTC 2017

On 5/21/17 11:16 PM, gunnar.wagner wrote:
> just for my understanding ... you want to monitor disk usage on the
> LXD host, right?

Yes but I also want the current disk usage to be available inside the
container so that, for instance, df returns realistic results.

Using a zfs pool per container works just fine for this purpose but I
am concerned that having potentially many 100s of zfs pools per server
may not be very efficient. This sums up what I am after...

>> 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.
IOW if I supply 5GB of space to a paying client I need to have a way
for both them and myself to easily monitor that disk space. It's the
one thing that has stopped me from using LXD for real. Well that and
not having an open source PHP control panel that runs on Ubuntu servers.

More information about the lxc-users mailing list