[Lxc-users] lxc-clone -s -B lvm, deletes original lv if no space left!

zoolook nbensa+lxcusers at gmail.com
Wed Jun 19 00:30:34 UTC 2013


Hi Serge,


On Tue, Jun 18, 2013 at 5:57 PM, zoolook <nbensa+lxcusers at gmail.com> wrote:
> On Tue, Jun 18, 2013 at 5:39 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
>> Exactly what code (git commit id or distro+pkg) are you using?
>
>
> Installed: 0.9.0.0~staging~20130612-1544-0ubuntu1~ppa1~raring1


on saucy, with ppa:ubuntu-lxc/daily
(0.9.0.0~staging~20130612-1544-0ubuntu1~ppa1~saucy1), no patches
applied.

sysadmin at lxc3:~$ sudo lvs
  LV             VG           Attr      LSize Pool Origin Data%  Move
Log Copy%  Convert
  lxc-test1-root vg_vmstorage -wi-a---- 7,81g

sysadmin at lxc3:~$ sudo lxc-clone -s -p /srv/lxc -P /srv/lxc -o test1 -n test101
  Volume group "vg_vmstorage" has insufficient free space (617
extents): 2097 required.
lxc: could not create /dev/vg_vmstorage/lxc-test101-root snapshot of
/dev/vg_vmstorage/lxc-test1-root
lxc: failed getting pathnames for cloned storage:
/dev/vg_vmstorage/lxc-test1-root

lxc: error copying storage
File descriptor 3 (/run/lock/lxc/srv/lxc/test101) leaked on lvremove
invocation. Parent PID 2436: lxc-clone
  Logical volume "lxc-test1-root" successfully removed
lxc: _recursive_rmdir_onedev: failed to delete /srv/lxc/test101
clone failed

sysadmin at lxc3:~$ sudo lvs


and BTW, why do I get "lxc: _recursive_rmdir_onedev: failed to
delete"? I need to rm -rf /path/to/container. Same behaviour with
lxc-destroy.

Thanks!
Norberto




More information about the lxc-users mailing list