Quoting Serge Hallyn (serge.hal...@ubuntu.com):
> Quoting Serge Hallyn (serge.hal...@ubuntu.com):
> > Quoting zoolook (nbensa+lxcus...@gmail.com):
> > > Hi Serge,
> > > 
> > > 
> > > On Tue, Jun 18, 2013 at 5:57 PM, zoolook <nbensa+lxcus...@gmail.com> 
> > > wrote:
> > > > On Tue, Jun 18, 2013 at 5:39 PM, Serge Hallyn <serge.hal...@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@lxc3:~$ sudo lvs
> > >   LV             VG           Attr      LSize Pool Origin Data%  Move
> > > Log Copy%  Convert
> > >   lxc-test1-root vg_vmstorage -wi-a---- 7,81g
> > > 
> > > sysadmin@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
> > 
> > all right, not sure why yet, but the naming of your rootfs is somehow
> > causing the problem.  I was able to reproduce this when I renamed my
> > test101 rootfs to xxx-test101-xxx.
> > 
> > I'll look into why later today.  Thanks!
> 
> Oh I see the problem.  The update_name_and_paths() only replaces
> the container name if it is a whole word.
> 
> Need to think about whether it is safe to change that.  (What if the
> container name is 'c'?)

For that matter, if you call your original container lxc or rootfs,
you're gonna have a bad time.

So I think I will make sure to only update anything after an '='.  Maybe
even only in certain lines (lxc.hook, lxc.root, lxc.mount, etc).  Then
make sure to accept '-' as word splitter.  Then do the patch to not
remove rootfs if we haven't created it yet.

-serge

------------------------------------------------------------------------------
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