<?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: Implementing rc start/stop scripts within Service Guard in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994772#M710134</link>
    <description>Hi,&lt;BR /&gt;for the links: i prefer to create the script in the /etc/cmcluster/PACKAGENAME, and keep them aligned.&lt;BR /&gt;&lt;BR /&gt;If you rely on the system part of the cluster, sooner or later someone will change this file on one server and not on the other, and it will be hard to understand.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you use only the scripts in the /etc/cluster/*, it is easier to keep them on-line, and when you work with a cluster, specularity it a must.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;  Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 11 Jun 2003 15:19:46 GMT</pubDate>
    <dc:creator>Massimo Bianchi</dc:creator>
    <dc:date>2003-06-11T15:19:46Z</dc:date>
    <item>
      <title>Implementing rc start/stop scripts within Service Guard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994764#M710126</link>
      <description>We have Service Guard implemented on two servers.  The service guard stuff basically adds the IP, activates volume groups and does mounts.&lt;BR /&gt;&lt;BR /&gt;What are the normal steps to add rc startup/shutdown scripts into the cluster startup/shutdown?  Is it typical to include the steps in the normal /sbin/rc?.d/S* and /sbin/rc?-1.d/K* directories or would this information typically be in a cmcluster subdirectory or configuration file?&lt;BR /&gt;&lt;BR /&gt;Any recommendations?&lt;BR /&gt;&lt;BR /&gt;Thanks... &lt;BR /&gt;&lt;BR /&gt;Jack...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2003 14:08:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994764#M710126</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-06-11T14:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing rc start/stop scripts within Service Guard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994765#M710127</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;Shutdown/startup should now be handled by the cluster.  Refer to the book "managing MC/ServiceGuard" for how to create a script for a package.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Wed, 11 Jun 2003 14:12:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994765#M710127</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2003-06-11T14:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing rc start/stop scripts within Service Guard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994766#M710128</link>
      <description>Hi Jack,&lt;BR /&gt;&lt;BR /&gt;If you are talking about the scripts that would run when you start or stop a package, you'll find two sections in the package control file named 'customer_defined_run_cmds' and 'customer_defined_halt_cmds'.  Put your stop and start commands in those sections and the package will execute them when you start and stop the package.&lt;BR /&gt;&lt;BR /&gt;As for the rc scripts, you should have an /sbin/init.d/cmcluster script that will start and stop the MC/SG cluster during boot and shutdown.  It should have the appropriate links in /sbin/rc2.d and /sbin/rc3.d to run the kill and start script.  All this should be put in place automatically when you swinstall MC/SG.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2003 14:13:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994766#M710128</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-06-11T14:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing rc start/stop scripts within Service Guard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994767#M710129</link>
      <description>Hi,&lt;BR /&gt;From your question it looks like you have not a clear concept of a "package" in HPUX... or am i wrong ?&lt;BR /&gt;&lt;BR /&gt;However:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if you mean with rc start and stop script, the script used for starting your application, it's best practice (=compulsory) to create a directory under&lt;BR /&gt;/etc/cmcluster/DIR&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;put your control script there and whatever else is needed.&lt;BR /&gt;&lt;BR /&gt;replicate this directory over the two nodes &lt;BR /&gt;&lt;BR /&gt;create and apply the package&lt;BR /&gt;&lt;BR /&gt;punt your custom commands in the customer_defined_start_function and customer_defined_halt_function&lt;BR /&gt;&lt;BR /&gt;leaving the "test 51" and "test 52" there.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Start and stop script shall never be issued with start/stop of the server, they must be run from the cluster software, to avoid conflicts.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   HTH,&lt;BR /&gt;  Massimo&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2003 14:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994767#M710129</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-11T14:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing rc start/stop scripts within Service Guard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994768#M710130</link>
      <description>You need to be careful here about exect meaning. The CLUSTER startup scripts should already be installed in the rc directories and there is a configuration file "cmcluster" in /etc/rc.config.d. These files are automatically installed during the MC/SG swinstall. You set the AUTOSTART_CMCLD value in the config file to 1 to have this node automatically join the cluster.&lt;BR /&gt;&lt;BR /&gt;All other PACKAGE related startup/shutdown routines (including VG activation) should be handled by the package control scripts.&lt;BR /&gt;&lt;BR /&gt;The other startup/shutdown file that will need some attention is /etc/lvmrc. You should set AUTO_VG_ACTIVATE=0 and then include explicit vgchange statements for the VG's (other than vg00) which are NOT under the control of a package.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2003 14:20:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994768#M710130</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-06-11T14:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing rc start/stop scripts within Service Guard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994769#M710131</link>
      <description>Massimo... &lt;BR /&gt;&lt;BR /&gt;Do the start/stop scripts get placed before or after the test_return 51 / test_return 52?&lt;BR /&gt;&lt;BR /&gt;Is it also best practice to create a single file with links for the start/stop arguments like /sbin/rc3.d/S... ?&lt;BR /&gt;&lt;BR /&gt;I would have files/links something like&lt;BR /&gt;/etc/cmcluster/PACKAGENAME/informix&lt;BR /&gt;/etc/cmcluster/PACKAGENAME/S100informix&lt;BR /&gt;/etc/cmcluster/PACKAGENAME/K900informix.&lt;BR /&gt;&lt;BR /&gt;The start/stop arguments would be passed to the links.&lt;BR /&gt;&lt;BR /&gt;I would likely prefer to put the S*, K* links in rc subdirectories to be consisent with /sbin/rc?.d.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks all.  &lt;BR /&gt;&lt;BR /&gt;I'll be assigning points shortly.&lt;BR /&gt;&lt;BR /&gt;jack...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2003 14:35:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994769#M710131</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-06-11T14:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing rc start/stop scripts within Service Guard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994770#M710132</link>
      <description>Clay, thanks for the additional info.  Everything is properly set, e.g. /sbin/rc3.d/S800cmcluster with the exception of starting/stopping some background applications since the server was originally configured.  It looks like some of the background processes were started as separate /sbin/rc3.S* links and some were manually started.  I'd like to see about configuring the cluster to do all the starts/stops that rely on the cluster package within the cluster package.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks to all..&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2003 14:44:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994770#M710132</guid>
      <dc:creator>Jack C. Mahaffey</dc:creator>
      <dc:date>2003-06-11T14:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing rc start/stop scripts within Service Guard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994771#M710133</link>
      <description>Hi,&lt;BR /&gt;start and stop are to be placed *before* the test 51 and 52.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;These values are used to test the correctness of your scripts, examining the return code of the last command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pay attention in using commands inside remsh, because the return code of the remsh is 0 if the remsh works, 1 the other ways, and it takes in no consideration the command itself.&lt;BR /&gt;&lt;BR /&gt;  Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2003 15:12:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994771#M710133</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-11T15:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Implementing rc start/stop scripts within Service Guard</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994772#M710134</link>
      <description>Hi,&lt;BR /&gt;for the links: i prefer to create the script in the /etc/cmcluster/PACKAGENAME, and keep them aligned.&lt;BR /&gt;&lt;BR /&gt;If you rely on the system part of the cluster, sooner or later someone will change this file on one server and not on the other, and it will be hard to understand.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you use only the scripts in the /etc/cluster/*, it is easier to keep them on-line, and when you work with a cluster, specularity it a must.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;  Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jun 2003 15:19:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/implementing-rc-start-stop-scripts-within-service-guard/m-p/2994772#M710134</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-11T15:19:46Z</dc:date>
    </item>
  </channel>
</rss>

