<?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: auto control of packages on node reboot in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-control-of-packages-on-node-reboot/m-p/2699813#M713097</link>
    <description>sounds like a good idea, i'll give it a shot in a couple of nights :)</description>
    <pubDate>Tue, 09 Apr 2002 12:07:02 GMT</pubDate>
    <dc:creator>Richard Woolley</dc:creator>
    <dc:date>2002-04-09T12:07:02Z</dc:date>
    <item>
      <title>auto control of packages on node reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-control-of-packages-on-node-reboot/m-p/2699811#M713095</link>
      <description>does anyone know how to do the following:&lt;BR /&gt;I want to cron an auto reboot of some of my systems in the cluster.  However I would like the current pkgs run on the node to halt when the shutdown starts then re-run on the same node when it comes back into the cluster and registers itself.&lt;BR /&gt;&lt;BR /&gt;so far ive already started on my own script.&lt;BR /&gt;do i carry on with it, or can i achieve this some other (easier) way?&lt;BR /&gt;&lt;BR /&gt;As you can see i only want the pks to come down after 7pm. Just in case 1 node isnt running a pkg and i want to reboot it in the day and i cant put "cmhaltpkg (pkgname)" in the /sbin/rc2.d/K001pkg_halt link.</description>
      <pubDate>Tue, 09 Apr 2002 08:53:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-control-of-packages-on-node-reboot/m-p/2699811#M713095</guid>
      <dc:creator>Richard Woolley</dc:creator>
      <dc:date>2002-04-09T08:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: auto control of packages on node reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-control-of-packages-on-node-reboot/m-p/2699812#M713096</link>
      <description>Hi Mark,&lt;BR /&gt;&lt;BR /&gt;You can control the pakages from an other node of your cluster. For example, if you want to reboot node A, running pkgA.&lt;BR /&gt;&lt;BR /&gt;From node B at reboot time :&lt;BR /&gt;&lt;BR /&gt;cmhaltpkg pkgA&lt;BR /&gt;cmhaltnode nodeA&lt;BR /&gt;remsh nodeA /usr/sbin/shutdown ....&lt;BR /&gt; then wait for node A to be back (using a loop with a ping nodeA -n 1 for example)&lt;BR /&gt;then when it is ok&lt;BR /&gt;cmrunpkg -n nodeA pkgA&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Fr??d??ric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Apr 2002 10:09:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-control-of-packages-on-node-reboot/m-p/2699812#M713096</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2002-04-09T10:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: auto control of packages on node reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-control-of-packages-on-node-reboot/m-p/2699813#M713097</link>
      <description>sounds like a good idea, i'll give it a shot in a couple of nights :)</description>
      <pubDate>Tue, 09 Apr 2002 12:07:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-control-of-packages-on-node-reboot/m-p/2699813#M713097</guid>
      <dc:creator>Richard Woolley</dc:creator>
      <dc:date>2002-04-09T12:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: auto control of packages on node reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-control-of-packages-on-node-reboot/m-p/2699814#M713098</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The way I would recommend doing this is to disable the package from starting on every node except the one you are going to reboot.&lt;BR /&gt;&lt;BR /&gt;cmmodpkg -d -n &lt;OTHER node=""&gt; &lt;PKG name=""&gt;&lt;BR /&gt;&lt;BR /&gt;When the server shuts down it will halt the package on itself.  The package switch parameter (or auto run as they now call it) will still be enabled, but the only server allowed to run it will be the one that is stopping.  Therefore as soon as the server is available again the package will restart on that node.&lt;BR /&gt;&lt;BR /&gt;Then enable the package to run on all the other nodes again.&lt;BR /&gt;&lt;BR /&gt;This will ensure the package is down for the shortest time possible, if thats important.&lt;BR /&gt;&lt;BR /&gt;BTW are you the Mark I met at Grahams christmas party?&lt;BR /&gt;&lt;BR /&gt;Chris Garman&lt;BR /&gt;PSL&lt;/PKG&gt;&lt;/OTHER&gt;</description>
      <pubDate>Wed, 01 May 2002 18:37:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-control-of-packages-on-node-reboot/m-p/2699814#M713098</guid>
      <dc:creator>Chris Garman</dc:creator>
      <dc:date>2002-05-01T18:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: auto control of packages on node reboot</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/auto-control-of-packages-on-node-reboot/m-p/2699815#M713099</link>
      <description>I have read your question..so let's hope my mind is understanding.&lt;BR /&gt;First, I know it's your decision, but why cron a reboot?  I have boxes that have been up for months and still don't need a reboot (until I get around to loaded a few patches maybe).  But like I said that's your call.&lt;BR /&gt;&lt;BR /&gt;To the real question....&lt;BR /&gt;&lt;BR /&gt;Yes you can do the cmmodpkg -d &lt;PKG&gt; to disable the pkg from failing over.. and this way you would control manually where/what it runs on.&lt;BR /&gt;Now for the halting of the package....&lt;BR /&gt;...in your package control script there is a section for defined_run_commands and defined_halt_commands.  On ours (running Oracle) we put the line to run our Oracle_start_script and Oracle_stop_script respectively.  Now when you bring down the system it will shutdown the packages via your /sbin/init.d/rc* instructions, this will cause your shutdown to hang for a bit while it does this...but it should bring the package down...and then when the system restarts the /sbin/init.d/rc.* will start it all (and pkg) back up.&lt;BR /&gt;Now if you run a cmhaltpkg &lt;PKG&gt; before you do the reboot than when you bring the server backup the package will NOT start because the last flag set in cmcluster instructions showed halt...so halted it remains, so you now must manually again have to run cmrunpkg &lt;PKG&gt;&lt;BR /&gt;&lt;BR /&gt;So....how's this for a quick sum up...&lt;BR /&gt;If your pkg control script has the auto_start and auto_stop set up in this script...then just disable package failover (cmmodpkg -d ...) and reboot the box...&lt;BR /&gt;&lt;BR /&gt;At least (so far) this has worked for me..&lt;BR /&gt;Rgrds,&lt;BR /&gt;Rit&lt;/PKG&gt;&lt;/PKG&gt;&lt;/PKG&gt;</description>
      <pubDate>Wed, 01 May 2002 18:57:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/auto-control-of-packages-on-node-reboot/m-p/2699815#M713099</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2002-05-01T18:57:39Z</dc:date>
    </item>
  </channel>
</rss>

