*SOLVED* red hat 7.2 on debian sarge HN [message #10512] |
Tue, 20 February 2007 07:29 |
stoffell
Messages: 16 Registered: February 2007 Location: Belgium
|
Junior Member |
|
|
Hi,
I have been trying to get a Red Hat 7.2 VE running on a Debian Sarge (with kernel 2.6.18-openvz-amd64) for a few days now. Startup goes well, as well as all the daemons. (mysql/apache/..)
The problem arises when I stop the VE, it takes 2 minutes and thus times out. (it gets stopped because of the 2 minute timeout)
I have tried stopping all the services (mysql/apache/cron/xinetd/..) before stopping the VE, but this does not help.
Any advice on how to troubleshoot this? I don't notice anything weird in the logs so I guess it's a minor issue that keeps the VE from stopping properly.
cheers!
[Updated on: Wed, 21 February 2007 08:52] by Moderator Report message to a moderator
|
|
|
|
|
Re: red hat 7.2 on debian sarge HN [message #10520 is a reply to message #10519] |
Tue, 20 February 2007 10:44 |
Vasily Tarasov
Messages: 1345 Registered: January 2006
|
Senior Member |
|
|
Well, if you stop all services in VE (mysql, named, apache, ...) manually - it is, I suppose, rather safe. But if you don't, it isn't.
Anyway, if you want to use such VE in production, it's better to investigate, what's the problem... If you can download me a OS template you're using or give me an access to the node, I can take a look at this problem.
Vasily
|
|
|
Re: red hat 7.2 on debian sarge HN [message #10541 is a reply to message #10520] |
Wed, 21 February 2007 08:51 |
Vasily Tarasov
Messages: 1345 Registered: January 2006
|
Senior Member |
|
|
During PMing and experiments at the node we found out what was the problem.
In the VE two different `halt` programs existed:
/sbin/halt
and
/usr/bin/halt
The right one, that stops VE is /sbin/halt, but vzctl seeks "halt" program to run in the following order: /bin:/usr/bin:/sbin. So, vzctl found /usr/bin/halt, ran it, but this "halt" didn't stop VE.
I don't know where /usr/bin/halt is from, at least it doesn't belong to any RPM installed on the system. So, I just moved /usr/bin/halt to /usr/bin/halt.backup. And now `vzctl stop` works quickly.
Good luck,
Vasily
|
|
|