OpenVZ Forum


Home » General » Support » VE not rebooting
VE not rebooting [message #29118] Sat, 05 April 2008 14:08 Go to next message
ruber is currently offline  ruber
Messages: 4
Registered: March 2008
Junior Member
If I try to reboot a VE using "reboot", it never will back again if I don't log in to HN and run "vzctl XXX restart" manually. I've searched on this forum and everyone says about a "reboot" file. When I reboot a VE, this file isn't created, but the root directory of the VE has a "halt" file. So, what can I do to fix this?
Re: VE not rebooting [message #29149 is a reply to message #29118] Mon, 07 April 2008 10:44 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Quote:

When I reboot a VE, this file isn't created, but the root directory of the VE has a "halt" file.


So this is the problem. Host system scripts that auto-restart a container expects 'reboot' file to be present in container's root directory. If there is no such file, no autoreboot will be performed.

So the question is: what OS template do you use?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: VE not rebooting [message #29160 is a reply to message #29118] Mon, 07 April 2008 16:17 Go to previous messageGo to next message
ruber is currently offline  ruber
Messages: 4
Registered: March 2008
Junior Member
I had 3 VEs in a HN.
One with Fedora 7, one with Fedora 8 and one with CentOS 4.5

All of them have this problem.
Re: VE not rebooting [message #29162 is a reply to message #29160] Mon, 07 April 2008 18:55 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Can you check (in all of your containers) that there is a script called /etc/rc.d/rc6.d/S00vzreboot (or /etc/rc6.d/S00vzreboot)? It should be there and it should create the "reboot mark" (i.e. the file /reboot inside a container).

Also note that "reboot check" is initiated every 5 minutes (from cron) so please wait long enough.

BTW do you have cron daemon running on host?


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: VE not rebooting [message #29173 is a reply to message #29162] Tue, 08 April 2008 04:35 Go to previous messageGo to next message
wolvesled is currently offline  wolvesled
Messages: 6
Registered: April 2008
Junior Member
I have the same problem, my VE is gentoo, I made it by self following the openvz template creation documentation: http://wiki.openvz.org/Gentoo_template_creation

what should I check to make it work?
Re: VE not rebooting [message #31612 is a reply to message #29173] Fri, 04 July 2008 07:02 Go to previous message
azagzin is currently offline  azagzin
Messages: 38
Registered: May 2008
Location: Vilnius
Member
edit with you favorit editor /etc/init.d/reboot.sh
vi /etc/init.d/reboot.sh


and add ">//reboot" string
that's all

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
>//reboot
opts="-dpk"
[ "${RC_DOWN_INTERFACE}" = "yes" ] && opts="${opts}i"

/sbin/reboot "${opts}" 2>/dev/null

# hmm, if the above failed, that's kind of odd ...
# so let's force a reboot
/sbin/reboot -f
Previous Topic: Need Help Benchmarking vzmigrate
Next Topic: Put DB2 into template - impossible?
Goto Forum:
  


Current Time: Fri May 17 17:32:59 GMT 2024

Total time taken to generate the page: 0.01671 seconds