OpenVZ Forum


Home » General » Support » [SOLVED] Cannot stop / destroy container
[SOLVED] Cannot stop / destroy container [message #43589] Thu, 29 September 2011 08:01 Go to next message
Razva is currently offline  Razva
Messages: 9
Registered: September 2011
Junior Member
Hi,

I'm trying to destroy a container but...for reasons I can't understand, it doesn't even...stops.
[root@RSCD001 ~]# vzctl stop 118
Stopping container ...
Container was stopped
Container is unmounted
[root@RSCD001 ~]# vzctl destroy 118
Container is currently running. Stop it first.
[root@RSCD001 ~]# vzctl status 118
CTID 118 exist mounted running


In "vztmp" and "lock" I have the following files/folders:
[root@RSCD001 vztmp]# ls
rm.lck  vzctl-rm-me.XqEaOX1  vzctl-rm-me.XWyrlVW
[root@RSCD001 lock]# ls
[root@RSCD001 lock]#


I can even enter the container:
[root@RSCD001 lock]# vzctl enter 118
entered into CT 118
[root@dolphin /]#


So seems that the container isn't stopping...

Kernel:
Linux RSCD001 2.6.18-194.8.1.el5.028stab070.2 #1 SMP Tue Jul 6 14:55:39 MSD 2010 x86_64 x86_64 x86_64 GNU/Linux


How can I fix this please? Thanks!

[Updated on: Sun, 09 October 2011 08:52]

Report message to a moderator

Re: Cannot stop / destroy container [message #43705 is a reply to message #43589] Fri, 07 October 2011 12:00 Go to previous messageGo to next message
Razva is currently offline  Razva
Messages: 9
Registered: September 2011
Junior Member
Anybody...? Until today I couldn't delete/stop the container... Sad I really need a hand here...
Re: Cannot stop / destroy container [message #43707 is a reply to message #43589] Fri, 07 October 2011 14:18 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
I can't really offer a direct solution to your problem, just some suggestions & questions that might help.

Did you try shutting the VM down from within the VM? Does the situation repeats itself after rebooting the node?

Any special reason why are you running such an old kernel and what is your vzctl version?
Re: Cannot stop / destroy container [message #43708 is a reply to message #43707] Fri, 07 October 2011 14:46 Go to previous messageGo to next message
Razva is currently offline  Razva
Messages: 9
Registered: September 2011
Junior Member
Heh, I didn't restarted the node from...some time... I'll do that tomorrow and come back with an answer

Off-topic: will "yum update" update the kernel also?
Re: Cannot stop / destroy container [message #43710 is a reply to message #43589] Fri, 07 October 2011 21:56 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Yes, it will. Or, to be more precise, it will install a new kernel and keep two old ones as backup. And as I'm sure you already know, you should check /boot/grub/grub.conf after updating, to make sure that the right kernel is set as default.

[Updated on: Fri, 07 October 2011 21:58]

Report message to a moderator

Re: Cannot stop / destroy container [message #43719 is a reply to message #43710] Sun, 09 October 2011 08:51 Go to previous message
Razva is currently offline  Razva
Messages: 9
Registered: September 2011
Junior Member
After rebooting the node (and a 45 minutes fsck) the container seems to be...deleted.

The only thing that was left behind was the directory on the /vz/private (which I successfully deleted with no errors.

So seems that the problem was the old kernel and the fact that I didn't rebooted the machine for more than 200 days.

Thanks for the tip!
Previous Topic: External IP addresses on a Partition dedi
Next Topic: Feature Request - vzquota calculation run after container startup
Goto Forum:
  


Current Time: Wed Aug 07 15:23:02 GMT 2024

Total time taken to generate the page: 0.02869 seconds