<?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: MC/ServiceGuard and application start/stop scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859561#M711596</link>
    <description>Do you have designated user to manage the database?&lt;BR /&gt;If so, use this user to control your start and stop procedure.&lt;BR /&gt;In your case it will translate to line like this in package.cntl for stop user defined apps:&lt;BR /&gt;&lt;BR /&gt;su - proguser -c ". .profile; proshut &amp;gt; /log/proshut.log 2&amp;gt;&amp;amp;1" &amp;amp;&lt;BR /&gt;&lt;BR /&gt;This approach we use for oracle and it's working like a charm :)&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;0leg</description>
    <pubDate>Mon, 09 Dec 2002 16:36:28 GMT</pubDate>
    <dc:creator>Oleg Zieaev_1</dc:creator>
    <dc:date>2002-12-09T16:36:28Z</dc:date>
    <item>
      <title>MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859554#M711589</link>
      <description>I have an application running a progress database that has a series of start/stop scripts.  These scripts perform the start/stop of the application processes and the progress database perfectly when ServiceGuard is NOT running.  I have been able to cluster the two nodes this app. runs on, and get the application configured into a package, but when I run the application start/stop scripts, they do not work properly.  In fact, the stop script hangs until the DBA manually shuts the database down.  Then the stop script will continue to shut everything else down properly and unmount the filesystems.  Has anyone ever seen anything like this before?&lt;BR /&gt;&lt;BR /&gt;In summary, the scripts work fine when ServiceGuard is NOT running and don't work when it is.  Same exact scripts in both instances.</description>
      <pubDate>Fri, 06 Dec 2002 22:01:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859554#M711589</guid>
      <dc:creator>David Niska</dc:creator>
      <dc:date>2002-12-06T22:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859555#M711590</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;You will find more details in /etc/cmcluster/your_package_name/your_package_name.ctl.log &lt;BR /&gt;&lt;BR /&gt;The above file name is dependent on your package name.&lt;BR /&gt;&lt;BR /&gt;When you are halting the cluster, make sure you do a tail -f of the file and see the progress. You will get good clues from there.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 06 Dec 2002 22:08:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859555#M711590</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-12-06T22:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859556#M711591</link>
      <description>What does your package control script log says. There should be some information there that can give a clue whats wrong .&lt;BR /&gt;&lt;BR /&gt;THe log file should be in /etc/cmcluster/&lt;PACKAGE_NAME&gt;/package_name.cntl.log  .&lt;BR /&gt;&lt;BR /&gt;Also look for any errors in syslog.log file .&lt;/PACKAGE_NAME&gt;</description>
      <pubDate>Fri, 06 Dec 2002 22:12:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859556#M711591</guid>
      <dc:creator>Ashwani Kashyap</dc:creator>
      <dc:date>2002-12-06T22:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859557#M711592</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;Remember that you don't have a "real" environment when the MC/SG script runs the start/stop scripts. You need to make sure the scripts source whatever env vars you need to run them. Set up all the needed env vars in a file and source that first thing in the start/stop scripts.&lt;BR /&gt;I suspect that some var(s) are not being set when MC/SG runs the stop script.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 06 Dec 2002 22:18:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859557#M711592</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2002-12-06T22:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859558#M711593</link>
      <description>Here is some more information:&lt;BR /&gt;&lt;BR /&gt;I am sourcing in the environment variables at the beginning of the start/stop script.  In the package.cntl.log file I get a message that the shutdown is executing which translates to a proshut command for the progress database.  That is where it hangs.&lt;BR /&gt;&lt;BR /&gt;I don't get any helpful information from the log.  Basically what's happening is that the progress database shutdown script will not shut the database down properly when ServiceGuard is running.  These scripts work fine when MCSG is not running.  I am currently looking into any environmental issues that could be causing this.  Thanks,&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Mon, 09 Dec 2002 14:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859558#M711593</guid>
      <dc:creator>David Niska</dc:creator>
      <dc:date>2002-12-09T14:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859559#M711594</link>
      <description>In looking at the differences between the environments, I found that the shell parameter for MCSG is set to /usr/bin/sh and it is set to /usr/bin/sh without MCSG.  Also, the PATH variable does not have all of the paths as when MCSG is not running.&lt;BR /&gt;&lt;BR /&gt;Where does MCSG get it's environment variables?&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Mon, 09 Dec 2002 16:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859559#M711594</guid>
      <dc:creator>David Niska</dc:creator>
      <dc:date>2002-12-09T16:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859560#M711595</link>
      <description>Sorry, that would be /usr/bin/sh when MCSG is running and /sbin/sh when it is not.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Mon, 09 Dec 2002 16:29:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859560#M711595</guid>
      <dc:creator>David Niska</dc:creator>
      <dc:date>2002-12-09T16:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859561#M711596</link>
      <description>Do you have designated user to manage the database?&lt;BR /&gt;If so, use this user to control your start and stop procedure.&lt;BR /&gt;In your case it will translate to line like this in package.cntl for stop user defined apps:&lt;BR /&gt;&lt;BR /&gt;su - proguser -c ". .profile; proshut &amp;gt; /log/proshut.log 2&amp;gt;&amp;amp;1" &amp;amp;&lt;BR /&gt;&lt;BR /&gt;This approach we use for oracle and it's working like a charm :)&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;0leg</description>
      <pubDate>Mon, 09 Dec 2002 16:36:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859561#M711596</guid>
      <dc:creator>Oleg Zieaev_1</dc:creator>
      <dc:date>2002-12-09T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859562#M711597</link>
      <description>One more important thing:&lt;BR /&gt;add wait right after that line.&lt;BR /&gt;&lt;BR /&gt;'&amp;amp;' in this case is not needed.&lt;BR /&gt;This will wait for DB to be down before continue and umount lvols.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;0leg</description>
      <pubDate>Mon, 09 Dec 2002 16:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859562#M711597</guid>
      <dc:creator>Oleg Zieaev_1</dc:creator>
      <dc:date>2002-12-09T16:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859563#M711598</link>
      <description>I already have the "su user -c shutdown script" in my start/stop script and the problem is that the start/stop script hangs and will not shutdown the database or kill the processes.&lt;BR /&gt;&lt;BR /&gt;In order to get the package to shutdown, we need to kill off the stop script process and run the proshut manually.&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any other ideas.  Do you know where MCSG gets it's environment variables?&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Mon, 09 Dec 2002 16:44:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859563#M711598</guid>
      <dc:creator>David Niska</dc:creator>
      <dc:date>2002-12-09T16:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859564#M711599</link>
      <description>David.&lt;BR /&gt;&lt;BR /&gt;First: you need su - user -c &lt;BR /&gt;(su minus user)&lt;BR /&gt;to activate all environment variables.&lt;BR /&gt;Just to ensure that I also added . .profile; before proshut. If .profile you can set any env. variables your DB requires.&lt;BR /&gt;&lt;BR /&gt;If you created package files from the template, you have all variables you need for MC/SG. Env variables required by application has to be initalized in your startup/shutdown script.&lt;BR /&gt;&lt;BR /&gt;If you login as proguser, you can issue commands to shutdown your database, right?&lt;BR /&gt;So, I do not see any reasons for the line I mentioned earlier to fail to do the job.&lt;BR /&gt;&lt;BR /&gt;WAIT is required, so script will not start umount and vgchage before DB is down.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;0leg</description>
      <pubDate>Mon, 09 Dec 2002 18:56:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859564#M711599</guid>
      <dc:creator>Oleg Zieaev_1</dc:creator>
      <dc:date>2002-12-09T18:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: MC/ServiceGuard and application start/stop scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859565#M711600</link>
      <description>This problem has been fixed!  After several days of working with HP on what could possibly be happening, I talked with an engineer that said that I needed to load patch PHSS_26270 in order to remain on a supported version of MCSG.  I loaded this patch last night and all of my problems went away.  Everything works great now!  Thanks for all of your help.</description>
      <pubDate>Wed, 11 Dec 2002 14:25:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mc-serviceguard-and-application-start-stop-scripts/m-p/2859565#M711600</guid>
      <dc:creator>David Niska</dc:creator>
      <dc:date>2002-12-11T14:25:07Z</dc:date>
    </item>
  </channel>
</rss>

