[Lxc-users] lxc-clone -s -B lvm, deletes original lv if no space left!
Serge Hallyn
serge.hallyn at ubuntu.com
Tue Jun 18 20:39:34 UTC 2013
Quoting zoolook (nbensa+lxcusers at gmail.com):
> On Tue, Jun 18, 2013 at 1:09 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> > Though, I'm currently trying to reproduce with the lxc in ubuntu-lxc
> > saucy ppa, and failing. It's not deleting the original lv for me. I
> > just see:
>
> Maybe the fact that I don't use the default "lxc" vg name? :-)
No, not that. Looking at the lxcapi_clone() function, it calls
update_name_and_paths() before we ever create c2, and that function
updates the lxc.rootfs in the configuration file. So when I run
lxc-clone -o p1 -n p2, it actually looks for /dev/vg0/p2 to destroy.
Exactly what code (git commit id or distro+pkg) are you using?
-serge
More information about the lxc-users
mailing list