[lxc-users] LXD_LVM_LVSIZE envvar usage

Tycho Andersen tycho.andersen at canonical.com
Mon Mar 14 15:51:39 UTC 2016


On Mon, Mar 14, 2016 at 03:14:31PM +0100, Fabrizio Furnari wrote:
> Hi all,
> I've just seen that in the latest RC developers added the possibility to
> specify the LV size when creating new containers.
> I've updated to 2.0.0~rc3-0ubuntu1~ubuntu14.04.1~ppa1 on my Ubuntu box but
> when I try for example:
> 
> $ export LXD_LVM_LVSIZE="1GiB"
> $ lxc launch 0d07f11f3f2a testcontainer
> $ lvdisplay
> /dev/vg0/0d07f11f3f2a0804f501967d278d72a8122b1ec49f01aae4483a41fd9fb546f3 |
> grep Size
> 
>   LV Size                10.00 GiB
> 
> Still uses the default value. What I have to do to set it?

It needs to be set in LXD's environment, not the client's.


More information about the lxc-users mailing list