[Lxc-users] lxc-clone -s -B lvm, deletes original lv if no space left!
zoolook
nbensa+lxcusers at gmail.com
Mon Jun 17 15:27:16 UTC 2013
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 at 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!
More information about the lxc-users
mailing list