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

zoolook nbensa+lxcusers at gmail.com
Tue Jun 18 20:57:13 UTC 2013


On Tue, Jun 18, 2013 at 5:39 PM, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> 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?


Installed: 0.9.0.0~staging~20130612-1544-0ubuntu1~ppa1~raring1




More information about the lxc-users mailing list