[Lxc-users] lxc-destroy erase rootfs

John lxc at jelmail.com
Fri Feb 8 10:03:01 UTC 2013


I raised this issue back on 6th/7th December. It was a side-issue in a 
discussion entitled "unable to run systemd in an LXC container". I have 
always performed a destroy/create cycle to apply changes written to 
/etc/lxc/mycontainer.conf. I was asked why I didn't edit in /var 
directly and I replied that I treated the files created by LXC in /var 
to be internal and have always used the destroy/create cycle for config 
updates. There was talk of adding a -k (keep) option to lxc-destroy.

I have been working on other commitments and need to come back and 
revisit this but it's good to see others have experienced the same 
difficulty when this change in behaviour.

I would be interested in current thoughts.

John


On 07/02/13 23:27, Roland Neary wrote:
> RE: [Lxc-users] lxc-destroy erase rootfs As it's so easy to redo a 
> container I've come to love the lxc-destroy command.
>
> Having said that, the huge pitfall is of course user expectation. The 
> first time I looked at it it did exactly what I wanted, not what I 
> thought it would do.
>
>
>
> Regards,
> *
> *
> Roland Neary*
> *
>
>     -----Original message-----
>     *From:* Papp Tamas <tompos at martos.bme.hu>
>     *Sent:* Fri 08-Feb-2013 00:19
>     *To:* Roland Neary <neary at stone-it.com>
>     *Cc:* Christoph Willing <cwilling at users.sourceforge.net>;
>     lxc-users at lists.sourceforge.net
>     *Subject:* Re: [Lxc-users] lxc-destroy erase rootfs
>
>     On 02/08/2013 12:10 AM, Roland Neary wrote:
>     > Sorry to hear you b0rked your setup. Are you perhaps a Xen user who found out that `'xm destroy` !=
>     > lxc-destroy?
>     >
>     > If so, you're probably not the first....
>
>     Actually neither xen, nor virsh destroys_data_  and until v0.7 (or v0.8?) lxc does it only if it was
>     in /var/lib/lxc.
>
>     I'm and lxc user and that's why I'm surprised.
>
>     tamas
>
>
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
>
>
> _______________________________________________
> Lxc-users mailing list
> Lxc-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130208/2cf9ed92/attachment.html>


More information about the lxc-users mailing list