<?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 Failover scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-scripts/m-p/2768335#M710508</link>
    <description>Heres the situation:&lt;BR /&gt;&lt;BR /&gt;I have a 2 node cluster&lt;BR /&gt;&lt;BR /&gt;Prod node:  I have 2 db instances on individual packages, snfuprd and snfcprd.&lt;BR /&gt;Each of these packages have a dbstart script in the "customer run defined commands"&lt;BR /&gt;&lt;BR /&gt;Test Node:  I have 4 db instances set up the same way.&lt;BR /&gt;&lt;BR /&gt;What I want to:&lt;BR /&gt;When one of my prod packages fails over to the test server I want to shut down one of the test packages on the test server....&lt;BR /&gt;&lt;BR /&gt;Any one have any examples of scripts that do this?  Any help would be appreciated...&lt;BR /&gt;&lt;BR /&gt;I hope this makes sense.</description>
    <pubDate>Fri, 19 Jul 2002 18:28:25 GMT</pubDate>
    <dc:creator>Mike Barron_3</dc:creator>
    <dc:date>2002-07-19T18:28:25Z</dc:date>
    <item>
      <title>Failover scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-scripts/m-p/2768335#M710508</link>
      <description>Heres the situation:&lt;BR /&gt;&lt;BR /&gt;I have a 2 node cluster&lt;BR /&gt;&lt;BR /&gt;Prod node:  I have 2 db instances on individual packages, snfuprd and snfcprd.&lt;BR /&gt;Each of these packages have a dbstart script in the "customer run defined commands"&lt;BR /&gt;&lt;BR /&gt;Test Node:  I have 4 db instances set up the same way.&lt;BR /&gt;&lt;BR /&gt;What I want to:&lt;BR /&gt;When one of my prod packages fails over to the test server I want to shut down one of the test packages on the test server....&lt;BR /&gt;&lt;BR /&gt;Any one have any examples of scripts that do this?  Any help would be appreciated...&lt;BR /&gt;&lt;BR /&gt;I hope this makes sense.</description>
      <pubDate>Fri, 19 Jul 2002 18:28:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-scripts/m-p/2768335#M710508</guid>
      <dc:creator>Mike Barron_3</dc:creator>
      <dc:date>2002-07-19T18:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Failover scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-scripts/m-p/2768336#M710509</link>
      <description>If test and production are both different packages then you can use RESOURCE Dependencies within service guard to accomplish this.&lt;BR /&gt;&lt;BR /&gt;I think you could use these to create a dependency that says only run if the prod package != test server.&lt;BR /&gt;&lt;BR /&gt;I don't have an exact example of this, but have used resource dependencies in the package ascii file to tie packages together (i.e. application package starts after database packages, etc.)&lt;BR /&gt;&lt;BR /&gt;Hope that helps.</description>
      <pubDate>Fri, 19 Jul 2002 18:59:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-scripts/m-p/2768336#M710509</guid>
      <dc:creator>George A Bodnar</dc:creator>
      <dc:date>2002-07-19T18:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Failover scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-scripts/m-p/2768337#M710510</link>
      <description>Herer is an example from &lt;PKG&gt;.cntl file.&lt;BR /&gt;-------------------&lt;BR /&gt;function customer_defined_run_cmds&lt;BR /&gt;{&lt;BR /&gt;# ADD customer defined run commands.&lt;BR /&gt;&lt;BR /&gt;   # This will execute any PRE_STARTUP commands that need to execute before&lt;BR /&gt;   # bringing up this package.  The most likely contents of this script&lt;BR /&gt;   # will be to execute a series of shutdown commands for the databases&lt;BR /&gt;   # on the failover node.&lt;BR /&gt;&lt;BR /&gt;   if [ -x $PRE_STARTUP ];then&lt;BR /&gt;      $PRE_STARTUP&lt;BR /&gt;   fi&lt;BR /&gt;----------------------&lt;BR /&gt;The script defined as $PRE_STARTUP is different on each node depending on what needs to be shut down prior to starting the package. &lt;BR /&gt;&lt;/PKG&gt;</description>
      <pubDate>Fri, 19 Jul 2002 19:55:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-scripts/m-p/2768337#M710510</guid>
      <dc:creator>Rich Wright</dc:creator>
      <dc:date>2002-07-19T19:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Failover scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-scripts/m-p/2768338#M710511</link>
      <description>Hi Mike,&lt;BR /&gt;&lt;BR /&gt;George &amp;amp; Rich have pretty much set you on the correct track.&lt;BR /&gt;What I want to point out is that in your scenario you'll have to wait until the pre-startup scripts complete successfully before the adopted pkg will start.&lt;BR /&gt;So bear in mind that you'll have to calculate the DB shutdown &amp;amp; startup time as well as detection in the failover times as a whole. &lt;BR /&gt;And note the deliberate use of the word successfully in that statement, if pkg_to_stop doesn't, then pkg_to_start won't as well. Your monitor scripts are just as critical. If you don't failover a DB that doesn't respond to normal client traffic but does respond to simple monitors,  than you have no failover.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My $0.02&lt;BR /&gt;Jeff&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Jul 2002 21:42:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-scripts/m-p/2768338#M710511</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-07-19T21:42:36Z</dc:date>
    </item>
  </channel>
</rss>

