OpenVZ Forum


Home » General » Support » [Solved] MIgrated Ubuntu VPS take 2 minutes to shut down
Re: MIgrated Ubuntu VPS take 2 minutes to shut down [message #34098 is a reply to message #34097] Mon, 01 December 2008 18:32 Go to previous messageGo to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

Quote:


I try to stop inside the VE ppdev:

root@ppdev:/# udevcontrol log_priority=debug
root@ppdev:/# halt
root@ppdev:/# got signal 15
                           exited from VE 103




And does "vzctl stop 103" command work from HN? Could you possibly try it?
Actually "reboot" inside VE is a little bit tricky operation,
Read http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf "Rebooting Virtual Private Server, page 71"


Quote:


It's the init process:
root     15617  0.0  0.0   1568   536 ?        Ss   Nov27   0:01 init [0]




Ok, it's in a sleeping state. Seems nobody "sends" init a signal.
As far as I understand reboot (sys_reboot) syscall must be invoked (not "kill" from inside the VE because it's impossible to kill init from inside the VE moreover it's impossible to do it on a common Linux machine).
Does "reboot" command from inside the VE kills init properly?

Quote:


Now the VE is still running without any procs =8-|



No, nothing of the kind, this VE is not in running state it is in "mounted" state.

Quote:


Trying to stop from outside:
root@openvz01:~# vzctl stop 103
Unable to stop: VE is not running




As VE is not running but in mounted state you should invoke "vzctl umount 103" command.


So, I have a suspicion that init scripts inside VE cause such behavior but it's still unproven.
How long did you wait until manually killed init process? Are there anything in dmesg/logs on the HN?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to change VPS network card to eth0??
Next Topic: delete
Goto Forum:
  


Current Time: Thu Jul 18 06:36:04 GMT 2024

Total time taken to generate the page: 0.02567 seconds