Hello,

this is one is weird. lxc-clone removes the original volume if there's
no space to create a snapshot for the clone

ii  lxc                             0.9.0.0~staging~2013 amd64
       Linux Containers userspace tools


sysadmin@lxc0:~$ sudo lxc-clone -s -B lvm -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 2301: lxc-clone
  Logical volume "lxc-test1-root" successfully removed
lxc: _recursive_rmdir_onedev: failed to delete /srv/lxc/test101
clone failed


The vg is small (10GB). The original container is 8G. It's a test
cluster so no damage is done.

Thanks!

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to