[Lxc-users] lxc-clone -B lvm -L, bug?

Serge Hallyn serge.hallyn at ubuntu.com
Wed Jul 10 14:56:14 UTC 2013


Quoting zoolook (nbensa+lxcusers at gmail.com):
> LXC version: 0.9.0.0~staging~20130708-2041-0ubuntu1~ppa1~raring1
> 
> 
> Hello,
> 
> there's an inconsistency between "lxc-create --fssize" and "lxc-clone -L".
> 
> "lxc-create --fssize" accepts size in GB. For example, "--fssize 2G"
> mease 2GB (or 2GiB, my brain hurts with all that GB vs GiB stupidity
> but that's another story.)
> 
> "lxc-clone -L" accepts size _only_ in B. In other words, ignores G.

Yup.  You can see the local functions for parsing the fssize in
lxc_clone.c and lxc_create.c.  Patch to commonize and improve them
would be very welcome.

> lxc-clone -s -B lvm -L2G...  returns: "Unable to create new logical
> volume with no extents"
> 
> 
> sysadmin at lxc0:~$ sudo lvs
>   LV               VG           Attr     LSize Pool Origin
> Data%  Move Log Copy%  Convert
>   lxc-test2-root   vg_vmstorage owi-a-s- 1,95g
>   lxc-test2x2-root vg_vmstorage swi-a-s- 2,05g      lxc-test2-root
> 0,00
>   lxc-test4x2-root vg_vmstorage swi-a-s- 1,95g      lxc-test2-root
> 0,00
> 
> 
> test2 was created with --fssize 2G
> test2x2 cloned without -L (note 1,95g vs 2,05g, GB vs GiB? :-) )
> test4x2 cloned with -L 2000000000 (doesn't accept -L2G)
> 
> 
> Thanks!
> Norberto
> 
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users




More information about the lxc-users mailing list