OpenVZ Forum - RDF feed
type: channel
items: How to stop the VE during service vz stop
items: Re: How to stop the VE during service vz stop

How to stop the VE during service vz stop
type: item
description: Hello All, in the past, as I remember, if we stop the vz service (service vz stop), it will automatically stop all VE containers accordingly. Now, updated to the latest kernel, and vzctl, when we stop the vz, it will suspend all the VE(s), instead of stopping them. May I know anyway to make stop all the VE(s) when the vz service stop? I am afraid when we update the ovzkernel, it cannot resume the VE after reboot, and cause the mysql inside VE sudden poweroff , and cause an inconsistent state. Please advise. Thank you for your kind attention.
creator: ccto
date: 2012-11-07T17:43:22-00:00

Re: How to stop the VE during service vz stop
type: item
description: Hi, I would be in favor too of an option to change the default '/etc/init.d/vz stop' behavior from 'suspend' to 'stop'. Maybe even per ct. J.
creator: JAlbstmeijer
date: 2012-11-09T08:34:29-00:00

Re: How to stop the VE during service vz stop
type: item
description: I'm 3rd here. Suspending utilize more resources for suspending and unsuspending so my busy servers have MUCH more downtime for each standard reboot - tens of minutes instead of few minutes in case of stop/start. So now server rebooting is not just "reboot -n" but "vzctl stop EACH ct, then run reboot". Is it possible to tune this to have "stop" not "suspend" ?
creator: AlexAT
date: 2012-12-04T22:39:54-00:00

Re: How to stop the VE during service vz stop
type: item
description: In the /etc/init.d/vz file I changed: stages="suspend stop" to stages="stop"
creator: mperkel
date: 2012-12-07T10:49:38-00:00

Re: How to stop the VE during service vz stop
type: item
description: Try upgrading to the 4.1.1 release.
creator: mperkel
date: 2012-12-07T17:45:43-00:00

Re: How to stop the VE during service vz stop
type: item
description: I tried both 4.1.1 and 4.1.1-1. "service vz stop" still suspend VEs. # rpm -qa | grep vz ovzkernel-2.6.18-308.8.2.el5.028stab101.1 vzctl-4.1.1-1 vzquota-3.1-1 ovzkernel-devel-2.6.18-308.8.2.el5.028stab101.1 vzctl-core-4.1.1-1
creator: AlexAT
date: 2012-12-11T20:39:09-00:00

Re: How to stop the VE during service vz stop
type: item
description: You need to add VE_STOP_MODE="stop" into /etc/vz/vz.conf
creator: ccto
date: 2012-12-12T02:24:00-00:00