OpenVZ Forum - RDF feed
type: channel
items: *SOLVED* red hat 7.2 on debian sarge HN
items: Re: red hat 7.2 on debian sarge HN

*SOLVED* red hat 7.2 on debian sarge HN
type: item
description: 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!
creator: stoffell
date: 2007-02-20T07:29:40-00:00

Re: red hat 7.2 on debian sarge HN
type: item
description: Hello, Well, I guess there are some problems with parameters, that are not properly managed by old init process... The easy they to solve it: try to stop the VEs by: # vzctl stop <veid> --fast Report, please, does it help you or not. Thanks, Vasily.
creator: Vasily Tarasov
date: 2007-02-20T08:33:29-00:00

Re: red hat 7.2 on debian sarge HN
type: item
description: Vasily Tarasov wrote on Tue, 20 February 2007 09:33 # vzctl stop <veid> --fast Report, please, does it help you or not. Thanks, Vasily. Thanks a lot, that does work! However, is this safe to do on a (production) server running mysql and other processes? (named, apache,..) Thanks! Kristof.
creator: stoffell
date: 2007-02-20T09:31:49-00:00

Re: red hat 7.2 on debian sarge HN
type: item
description: 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
creator: Vasily Tarasov
date: 2007-02-20T10:44:33-00:00

Re: red hat 7.2 on debian sarge HN
type: item
description: 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
creator: Vasily Tarasov
date: 2007-02-21T08:51:57-00:00