<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: shutdown issue in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-issue/m-p/4042499#M303247</link>
    <description>While scheduled reboot of one of my cluster node shutdown gets hung.&lt;BR /&gt;&lt;BR /&gt;steps 1-4 shows the sequence  &lt;BR /&gt;&lt;BR /&gt;1) AWSBIS307I Starting /opt/maestro/jobmanrc /usr/local/bin/shutdown.sh&lt;BR /&gt; &lt;BR /&gt;Content of the usr/local/bin/shutdown.sh&lt;BR /&gt;cat /usr/local/bin/shutdown.sh&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;cd /&lt;BR /&gt;nohup /sbin/shutdown -ry 0 &amp;gt;&amp;gt;/usr/local/logs/shutdown.log 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;2)  VCS stop scripts[K110vcs ]  executes offline node in the cluster  . &lt;BR /&gt;/opt/VRTSvcs/bin/hastop -local -noautodisable &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &lt;BR /&gt;&lt;BR /&gt;3) After maestro Service Group sgotcpmaestro offline procedure did not complete within the expected time, maestro_clean clean script for the app. resource script rans&lt;BR /&gt;***************************************************&lt;BR /&gt;$ cat maestro_clean&lt;BR /&gt;#! /usr/bin/sh&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# Meastro start script for VCS.&lt;BR /&gt;# This script has multiple links, one for each instance of maestro.&lt;BR /&gt;# Instance that will be executed will depend upon the link with which&lt;BR /&gt;# the script is called.&lt;BR /&gt;#&lt;BR /&gt;# Created 11/18/03                                     &lt;BR /&gt;export MAESTROUSER=maestro&lt;BR /&gt;PIDS=`ps -ef | grep $MAESTROUSER | grep -v -E 'grep|_clean' \&lt;BR /&gt;| awk "BEGIN { ORS = \" \"} { print \\$2 }"`&lt;BR /&gt;kill -9 $PIDS&lt;BR /&gt;$&lt;BR /&gt; &lt;BR /&gt;5) Shutdown gets killed automatically [nohup /sbin/shutdown -ry 0 &amp;gt;&amp;gt;/usr/local/logs/shutdown.log 2&amp;gt;&amp;amp;1 &amp;amp; ] .&lt;BR /&gt;&lt;BR /&gt;I did a ps -ef | grep -i shut ,&lt;BR /&gt; i couldnt find the /sbin/shutdown -ry 0 executed in nohup mode. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 24 Jul 2007 08:46:28 GMT</pubDate>
    <dc:creator>josutilities</dc:creator>
    <dc:date>2007-07-24T08:46:28Z</dc:date>
    <item>
      <title>shutdown issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-issue/m-p/4042497#M303245</link>
      <description>1) VCS stop scripts[K110vcs ]  executes offline node in the cluster  . /opt/VRTSvcs/bin/hastop -local -noautodisable &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;2) After maestro Service Group sgotcpmaestro offline procedure did not complete within the expected time, maestro_clean script rans &lt;BR /&gt;***************************************************&lt;BR /&gt;$ cat maestro_clean&lt;BR /&gt;#! /usr/bin/sh&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# Meastro start script for VCS.&lt;BR /&gt;# This script has multiple links, one for each instance of maestro.&lt;BR /&gt;# Instance that will be executed will depend upon the link with which&lt;BR /&gt;# the script is called.&lt;BR /&gt;#&lt;BR /&gt;# Created 11/18/03                                      &lt;BR /&gt;&lt;BR /&gt;export MAESTROUSER=maestro&lt;BR /&gt;&lt;BR /&gt;PIDS=`ps -ef | grep $MAESTROUSER | grep -v -E 'grep|_clean' \&lt;BR /&gt;| awk "BEGIN { ORS = \" \"} { print \\$2 }"`&lt;BR /&gt;&lt;BR /&gt;kill -9 $PIDS&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;3) Shutdown gets killed automatically [nohup /sbin/shutdown -ry 0 &amp;gt;&amp;gt;/usr/local/logs/shutdown.log 2&amp;gt;&amp;amp;1 &amp;amp; ] . &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any body can help me why Shutdown gets killed automatically &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks In Advance&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2007 06:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-issue/m-p/4042497#M303245</guid>
      <dc:creator>josutilities</dc:creator>
      <dc:date>2007-07-24T06:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-issue/m-p/4042498#M303246</link>
      <description>&lt;!--!*#--&gt;I only have a VCS running on Solaris nodes to compare.&lt;BR /&gt;But you may be relieved to note that in our vcs init scripts the cluster services are halted almost identically.&lt;BR /&gt;This is the excerpt from the stop case/esac block:&lt;BR /&gt;&lt;BR /&gt;'stop')&lt;BR /&gt;        $HASTOP -local -evacuate -noautodisable &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;        $CMDSERVER -stop&lt;BR /&gt;        ;;&lt;BR /&gt;&lt;BR /&gt;Ours only seems to deviate in that it uses the -evacuate switch, which according to man hastop takes care to bring up the so far locally active service groups on the failover node(s).&lt;BR /&gt;Strangely, the -noautodisable doesn't get mention in the manpage at all.&lt;BR /&gt;&lt;BR /&gt;Since we don't use an application/service group called MAESTRO I cannot help you there.&lt;BR /&gt;But the SIGKILL you send in the Maestro script to a parsed PID from the proc table (hopefully the right one) looks pretty daring to me.&lt;BR /&gt;&lt;BR /&gt;I don't quite get your 3rd question.&lt;BR /&gt;Does it refer to a manually executed shutdown?&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2007 07:46:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-issue/m-p/4042498#M303246</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-07-24T07:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-issue/m-p/4042499#M303247</link>
      <description>While scheduled reboot of one of my cluster node shutdown gets hung.&lt;BR /&gt;&lt;BR /&gt;steps 1-4 shows the sequence  &lt;BR /&gt;&lt;BR /&gt;1) AWSBIS307I Starting /opt/maestro/jobmanrc /usr/local/bin/shutdown.sh&lt;BR /&gt; &lt;BR /&gt;Content of the usr/local/bin/shutdown.sh&lt;BR /&gt;cat /usr/local/bin/shutdown.sh&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;cd /&lt;BR /&gt;nohup /sbin/shutdown -ry 0 &amp;gt;&amp;gt;/usr/local/logs/shutdown.log 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;2)  VCS stop scripts[K110vcs ]  executes offline node in the cluster  . &lt;BR /&gt;/opt/VRTSvcs/bin/hastop -local -noautodisable &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &lt;BR /&gt;&lt;BR /&gt;3) After maestro Service Group sgotcpmaestro offline procedure did not complete within the expected time, maestro_clean clean script for the app. resource script rans&lt;BR /&gt;***************************************************&lt;BR /&gt;$ cat maestro_clean&lt;BR /&gt;#! /usr/bin/sh&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# Meastro start script for VCS.&lt;BR /&gt;# This script has multiple links, one for each instance of maestro.&lt;BR /&gt;# Instance that will be executed will depend upon the link with which&lt;BR /&gt;# the script is called.&lt;BR /&gt;#&lt;BR /&gt;# Created 11/18/03                                     &lt;BR /&gt;export MAESTROUSER=maestro&lt;BR /&gt;PIDS=`ps -ef | grep $MAESTROUSER | grep -v -E 'grep|_clean' \&lt;BR /&gt;| awk "BEGIN { ORS = \" \"} { print \\$2 }"`&lt;BR /&gt;kill -9 $PIDS&lt;BR /&gt;$&lt;BR /&gt; &lt;BR /&gt;5) Shutdown gets killed automatically [nohup /sbin/shutdown -ry 0 &amp;gt;&amp;gt;/usr/local/logs/shutdown.log 2&amp;gt;&amp;amp;1 &amp;amp; ] .&lt;BR /&gt;&lt;BR /&gt;I did a ps -ef | grep -i shut ,&lt;BR /&gt; i couldnt find the /sbin/shutdown -ry 0 executed in nohup mode. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Jul 2007 08:46:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-issue/m-p/4042499#M303247</guid>
      <dc:creator>josutilities</dc:creator>
      <dc:date>2007-07-24T08:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown issue</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-issue/m-p/4042500#M303248</link>
      <description>Hm, pretty confusing.&lt;BR /&gt;Does this mean that you can't shutdown the node at all,&lt;BR /&gt;or is only your shutdown.sh wrapper script failing?&lt;BR /&gt;(I guess the latter)&lt;BR /&gt;I don't no if it would change a thing,&lt;BR /&gt;since I still can't overlook the Maestro and VCS script interaction (I guess Maestro is a VCS service group (SG) that needs to be failed over when you reboot the node)?&lt;BR /&gt;Alternatively to nohup you could try running shutdown as a mere batch job like&lt;BR /&gt;&lt;BR /&gt;echo /sbin/shutdown -ry 0 | batch&lt;BR /&gt;&lt;BR /&gt;You may add your redirections of stdout and stderr, but what is the purpose?&lt;BR /&gt;The /etc/rc.log isn't sufficient?&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jul 2007 03:29:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-issue/m-p/4042500#M303248</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-07-25T03:29:06Z</dc:date>
    </item>
  </channel>
</rss>

