How to stop the VE during service vz stop
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.
Re: How to stop the VE during service vz stop
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.
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" ?
In the /etc/init.d/vz file I changed: stages="suspend stop" to stages="stop"
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
You need to add VE_STOP_MODE="stop" into /etc/vz/vz.conf