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

zoolook nbensa+lxcusers at gmail.com
Tue Jul 9 22:20:03 UTC 2013


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.

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




More information about the lxc-users mailing list