[Lxc-users] lxc-destroy erase rootfs

Roland Neary neary at stone-it.com
Thu Feb 7 23:10:50 UTC 2013


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



Regards,

Roland Neary


-----Original message-----
From: Papp Tamas <tompos at martos.bme.hu>
Sent: Thu 07-Feb-2013 23:49
To: Christoph Willing <cwilling at users.sourceforge.net>; lxc-users at lists.sourceforge.net
Subject: Re: [Lxc-users] lxc-destroy erase rootfs


On 02/07/2013 11:42 PM, Christoph Willing wrote:
>
>
> On 08/02/2013, at 8:37 AM, Papp Tamas <tompos at martos.bme.hu <mailto:tompos at martos.bme.hu> > wrote:
>
>> hi All,
>>
>> Actually there was already a topic about this, but I don't really remember the result, because with
>> lxc v0.7 the rootfs was removed only if it existed in /var/lib/lxc .
>>
>> If I use v0.9 it's removed anyway during the lxc-destroy process. Why is that?
>>
>>
>> First I think it would be a great idea if before the remove step there would be !!! RED ALERT !!!,
>> which can warn the user, what it does, as it works differently than in the version before.
>> This is quite dagerous this way.
>>
>>
>> Second, I suggest a to make it a non-default behaviour, like:
>>
>> lxc-destroy [-r|--remove] -n container
>>
>>
>>
>> Actually why does it remove the rootfs? What would be the appropriate way to modify a container
>> configuration if not 'modify config -> lxc-destroy -> lxc-start'?
>
> How about:
>      lxc-stop -> modify config -> lxc-start

It would be even simpler.
Anything just do not erase data:)

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 <http://p.sf.net/sfu/sophos-d2d-feb> 
_______________________________________________
Lxc-users mailing list
Lxc-users at lists.sourceforge.net <mailto: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/6e62b893/attachment.html>


More information about the lxc-users mailing list