<?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: dependencies between packages with ServiceGuard in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268036#M706653</link>
    <description>Its true that when the cluster starts automatically or when there is a failover , its impossible to control the order of packages startup .&lt;BR /&gt;&lt;BR /&gt;when I have package dependencies what I do is during the DB package startup , I explicity define in customer defined section , to halt the application package irrespective of whether its up or not . when the DB package is up it starts up the dependent package.</description>
    <pubDate>Wed, 05 May 2004 09:05:53 GMT</pubDate>
    <dc:creator>Ashwani Kashyap</dc:creator>
    <dc:date>2004-05-05T09:05:53Z</dc:date>
    <item>
      <title>dependencies between packages with ServiceGuard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268031#M706646</link>
      <description>Hey,&lt;BR /&gt;&lt;BR /&gt;I have an oracle pkg running on box A and another pkg running on box A that requires oracle be up.&lt;BR /&gt;&lt;BR /&gt;I start up the cluster manually. So I manually cope with the dependency.&lt;BR /&gt;&lt;BR /&gt;But I don't control the order in which pkgs are restarted in case of fail over on box B.&lt;BR /&gt;&lt;BR /&gt;Is there any way to ?&lt;BR /&gt;Should I use a resource to synchronize the two packages ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Wed, 05 May 2004 07:48:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268031#M706646</guid>
      <dc:creator>David Macchion</dc:creator>
      <dc:date>2004-05-05T07:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: dependencies between packages with ServiceGuard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268032#M706647</link>
      <description>One way i would suggest is to check for status of required package status in user defined commands segment of control script.&lt;BR /&gt;You put a shell script that check for the Online status of pkg1 and in case it is done then proceed with the startup of pkg2.&lt;BR /&gt;&lt;BR /&gt;It would be helpful if you closely monitor the startup time of other package and accordingly frame your script with sleep statement.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 May 2004 07:55:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268032#M706647</guid>
      <dc:creator>Bharat Katkar</dc:creator>
      <dc:date>2004-05-05T07:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: dependencies between packages with ServiceGuard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268033#M706648</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;I am not sure of the start order. &lt;BR /&gt;What you can do create a script that does a check of the package it depends on in runnin, if not start the package and continue, if so continue right away. And add that script in the custome_defined_run_cmds section of the package. This way you are sure package 1 is started first.&lt;BR /&gt;You can also add a check in node name.&lt;BR /&gt;&lt;BR /&gt;something file this&lt;BR /&gt;&lt;BR /&gt;NODE=`hostname`&lt;BR /&gt;cmviewcl -p &lt;DEPENTINGPACKAGE&gt; | grep -q running &lt;BR /&gt;if [ $? -ne 0]&lt;BR /&gt;then&lt;BR /&gt;    cmrunpkg -n $NODE &lt;DEPENDINGPACKAGE&gt; &lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Gideon&lt;BR /&gt;&lt;/DEPENDINGPACKAGE&gt;&lt;/DEPENTINGPACKAGE&gt;</description>
      <pubDate>Mon, 16 Sep 2024 09:20:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268033#M706648</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2024-09-16T09:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: dependencies between packages with ServiceGuard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268034#M706649</link>
      <description>I am sure, you can control the order in which packages will start. It is some there in cmclconfig.&lt;BR /&gt;&lt;BR /&gt;If I understand your question correctly, the concern is if any of these crash, needs to be switched to another node.&lt;BR /&gt;&lt;BR /&gt;In that case, you can put some code in control script of noth packages in such a way that if anyone of them crashes, it checks if other is running and shuts it down and brings both packages up on another node in the order you want.&lt;BR /&gt;&lt;BR /&gt;The trick here is that code which will go in each packages control scripts.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Wed, 05 May 2004 08:27:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268034#M706649</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-05-05T08:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: dependencies between packages with ServiceGuard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268035#M706651</link>
      <description>Thanks guys,&lt;BR /&gt;&lt;BR /&gt;If I wait for oracle to come up in my customer_defined_run_cmds, it means I have to increase the RUN_SCRIPT_TIMEOUT by the time oracle needs to come up.&lt;BR /&gt;&lt;BR /&gt;Typically, oracle may need 120 seconds while the pkg it depends on (let's call it PKG_D) may need only 10.&lt;BR /&gt;&lt;BR /&gt;So I'm not reactive anymore to detecting quickly failures on PKG_D when I start up the cluster manually.&lt;BR /&gt;&lt;BR /&gt;But I guess I'll be forced to that trade-off!</description>
      <pubDate>Wed, 05 May 2004 08:28:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268035#M706651</guid>
      <dc:creator>David Macchion</dc:creator>
      <dc:date>2004-05-05T08:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: dependencies between packages with ServiceGuard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268036#M706653</link>
      <description>Its true that when the cluster starts automatically or when there is a failover , its impossible to control the order of packages startup .&lt;BR /&gt;&lt;BR /&gt;when I have package dependencies what I do is during the DB package startup , I explicity define in customer defined section , to halt the application package irrespective of whether its up or not . when the DB package is up it starts up the dependent package.</description>
      <pubDate>Wed, 05 May 2004 09:05:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268036#M706653</guid>
      <dc:creator>Ashwani Kashyap</dc:creator>
      <dc:date>2004-05-05T09:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: dependencies between packages with ServiceGuard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268037#M706655</link>
      <description>As a sidenote I want to add that it is planned for the future Serviceguard version A.11.17 (sometime in 2005) to add real package dependencies. This means that it will be possible to define which packages have to run on the same or on different cluster nodes and in which order they have to be started or stopped.&lt;BR /&gt;&lt;BR /&gt;Carsten</description>
      <pubDate>Thu, 06 May 2004 00:47:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268037#M706655</guid>
      <dc:creator>Carsten Krege</dc:creator>
      <dc:date>2004-05-06T00:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: dependencies between packages with ServiceGuard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268038#M706657</link>
      <description>This document discusses dependent packages:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www2.itrc.hp.com/service/cki/search.do?category=c0&amp;amp;mode=id&amp;amp;searchString=UMCSGKBRC00008166&amp;amp;searchCrit=allwords&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&amp;amp;search.x=19&amp;amp;search.y=8" target="_blank"&gt;http://www2.itrc.hp.com/service/cki/search.do?category=c0&amp;amp;mode=id&amp;amp;searchString=UMCSGKBRC00008166&amp;amp;searchCrit=allwords&amp;amp;docType=Security&amp;amp;docType=Patch&amp;amp;docType=EngineerNotes&amp;amp;docType=BugReports&amp;amp;docType=Hardware&amp;amp;docType=ReferenceMaterials&amp;amp;docType=ThirdParty&amp;amp;search.x=19&amp;amp;search.y=8&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;UMCSGKBRC00008166  &lt;BR /&gt;TITLE: Dependent packages, can the order of package startup be controlled? &lt;BR /&gt;&lt;BR /&gt;-sd-</description>
      <pubDate>Thu, 06 May 2004 06:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268038#M706657</guid>
      <dc:creator>IT Response</dc:creator>
      <dc:date>2004-05-06T06:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: dependencies between packages with ServiceGuard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268039#M706659</link>
      <description>David --&lt;BR /&gt;&lt;BR /&gt;It seems as though you could also do this by nesting scripts.&lt;BR /&gt;&lt;BR /&gt;Lets call them Package A (oracle) and Package B (dependent package).&lt;BR /&gt;&lt;BR /&gt;Have Package B start up a script that calls the "real startup script" and then loops.&lt;BR /&gt;&lt;BR /&gt;If it dies then SG will restart it so you will have to have logic in that script to check to see if both oracle and the real process are already up.&lt;BR /&gt;&lt;BR /&gt;So if you are starting up "myapplication" in Package B then the logic would look like this:&lt;BR /&gt;&lt;BR /&gt;Service Guard Script logic:&lt;BR /&gt;   Start application script&lt;BR /&gt;&lt;BR /&gt;Application_script logic:&lt;BR /&gt;&lt;BR /&gt;If myapplication is not running&lt;BR /&gt;   LOOP: if oracle is running&lt;BR /&gt;             start my application&lt;BR /&gt;            else&lt;BR /&gt;              sleep and then do LOOP again&lt;BR /&gt;else (application is running)&lt;BR /&gt;sleep forever&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Thu, 06 May 2004 07:14:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dependencies-between-packages-with-serviceguard/m-p/3268039#M706659</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2004-05-06T07:14:52Z</dc:date>
    </item>
  </channel>
</rss>

