OpenVZ Forum


Home » General » Support » Differences between vzctl stop/start and restart?
Differences between vzctl stop/start and restart? [message #30285] Tue, 20 May 2008 07:06 Go to next message
imknight is currently offline  imknight
Messages: 15
Registered: January 2008
Junior Member
From: *imknight.co.uk
Just wondering what the significant differences were between doing
vzctl stop
vzctl start

and

vzctl restart

On a server when i do the initial two it has no issues:

[root@node0 ~]# service vz stop
Shutting down VE 101
Bringing down interface venet0: [ OK ]
Stopping OpenVZ: [ OK ]
[root@node0 ~]# service vz start
Starting OpenVZ: [ OK ]
Bringing up interface venet0: [ OK ]
Configuring interface venet0: [ OK ]
Starting VE 101: [ OK ]
[root@node0 ~]#


But when doing a vzctl restart:

[root@node0 ~]# service vz restart
Shutting down VE 101
Bringing down interface venet0: [ OK ]
Stopping OpenVZ: [ OK ]
/etc/init.d/vz: line 200: echo: write error: Broken pipe
/etc/init.d/vz: line 200: echo: write error: Broken pipe
Starting OpenVZ: [ OK ]
Bringing up interface venet0: [ OK ]
Configuring interface venet0: [ OK ]
Starting VE 101: [ OK ]
[root@node0 ~]#


Are these 'Broken pipe' errors anything to worry about?

197 conf="`zcat /proc/config.gz 2>/dev/null | grep -E -v '^#|^$'`"
198
199 for opt in $opt_must; do
200 if ! echo "$conf" | grep -q "$opt="; then
201 echo "ERROR: Missing kernel config option: CONFIG_$opt"
202 err=1
203 fi
204 done

As it doesnt actually echo any missing kernel config options so bit unsure as if restart is having an issue or not.

Re: Differences between vzctl stop/start and restart? [message #32578 is a reply to message #30285] Sun, 17 August 2008 12:59 Go to previous messageGo to next message
omshivaprakash is currently offline  omshivaprakash
Messages: 1
Registered: November 2006
Junior Member
From: 117.192.98*
I'm also facing the same issue
Re: Differences between vzctl stop/start and restart? [message #32584 is a reply to message #30285] Mon, 18 August 2008 09:41 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
From: *sw.ru
Hello,

the question that you've asked differs from the list of command that you've shown.

"service vz stop && service vz start" = "service vz restart"
from /etc/init.d/vz
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart|force-reload)
        stop
        start



To my mind that "broken pipe" message is not OpenVZ specific question.
Bash can write the message "write error: Broken pipe" when grep command finishes before echo. It's bash specific question.
Re: Differences between vzctl stop/start and restart? [message #53407 is a reply to message #32584] Sun, 15 July 2018 04:27 Go to previous message
vinesh is currently offline  vinesh
Messages: 2
Registered: May 2018
Junior Member
From: *actcorp.in
Hello,

My openvz slave node rebooting every 10 minutes.

~~~~~~
[root@lax10 ~]# /etc/init.d/vz status
OpenVZ is stopped.
[root@lax10 ~]# /etc/init.d/vz restart
OpenVZ is locked [FAILED]
OpenVZ is locked [FAILED]
~~~~~~~
I have checked with above commands.

Note:
[root@lax10 ~]# cat /etc/issue
CentOS release 6.10 (Final)
Kernel \r on an \m

[root@lax10 ~]# uname -a
Linux lax10.jinserver.com 2.6.32-042stab131.1 #1 SMP Wed Jun 20 16:32:07 MSK 2018 x86_64 x86_64 x86_64 GNU/Linux



Please help me to resolve this issue.....

Thanks,


Vinesh
Previous Topic: auditd and OpenVZ
Next Topic: lost messages
Goto Forum:
  


Current Time: Fri Nov 16 15:45:21 GMT 2018