OpenVZ Forum


Home » General » Support » How to stop the VE during service vz stop
How to stop the VE during service vz stop [message #48712] Wed, 07 November 2012 17:43 Go to next message
ccto is currently offline  ccto
Messages: 61
Registered: October 2005
Member
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.

[Updated on: Wed, 07 November 2012 17:44]

Report message to a moderator

Re: How to stop the VE during service vz stop [message #48720 is a reply to message #48712] Fri, 09 November 2012 08:34 Go to previous messageGo to next message
JAlbstmeijer is currently offline  JAlbstmeijer
Messages: 12
Registered: April 2006
Junior Member
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.
Re: How to stop the VE during service vz stop [message #48795 is a reply to message #48720] Tue, 04 December 2012 22:39 Go to previous messageGo to next message
AlexAT is currently offline  AlexAT
Messages: 13
Registered: February 2010
Junior Member
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" ?
Re: How to stop the VE during service vz stop [message #48810 is a reply to message #48712] Fri, 07 December 2012 10:49 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
In the /etc/init.d/vz file I changed:

stages="suspend stop"

to

stages="stop"


Re: How to stop the VE during service vz stop [message #48811 is a reply to message #48810] Fri, 07 December 2012 17:45 Go to previous messageGo to next message
mperkel is currently offline  mperkel
Messages: 253
Registered: December 2006
Senior Member
Try upgrading to the 4.1.1 release.

Re: How to stop the VE during service vz stop [message #48827 is a reply to message #48811] Tue, 11 December 2012 20:39 Go to previous messageGo to next message
AlexAT is currently offline  AlexAT
Messages: 13
Registered: February 2010
Junior Member
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

[Updated on: Tue, 11 December 2012 20:39]

Report message to a moderator

Re: How to stop the VE during service vz stop [message #48828 is a reply to message #48712] Wed, 12 December 2012 02:24 Go to previous message
ccto is currently offline  ccto
Messages: 61
Registered: October 2005
Member
You need to add
VE_STOP_MODE="stop"

into /etc/vz/vz.conf
Previous Topic: IP_conntrack limit per VPS
Next Topic: Ubuntu10.04 and vzctl4.1.1
Goto Forum:
  


Current Time: Mon Aug 26 15:23:27 GMT 2024

Total time taken to generate the page: 0.03209 seconds