<?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: Package start script or utility in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870060#M703428</link>
    <description>Oops, I have to correct myself after rebrowsing through man vgchange&lt;BR /&gt; &lt;BR /&gt;&lt;SNIPPET_FROM_MAN_VGCHANGE&gt;&lt;BR /&gt; &lt;BR /&gt;           -c cluster          Control the membership of volume groups in a&lt;BR /&gt;                               high availability  cluster.  cluster can have&lt;BR /&gt;                               one of the following values:&lt;BR /&gt; &lt;BR /&gt;                                    y    Mark each specified volume group as&lt;BR /&gt;                                         a member of the high availability&lt;BR /&gt;                                         cluster.  The high availability&lt;BR /&gt;                                         software must be running;&lt;BR /&gt;                                         otherwise, the volume group is not&lt;BR /&gt;                                         marked.  Needs to be done on one&lt;BR /&gt;                                         node only.&lt;BR /&gt; &lt;BR /&gt;                                    n    Remove each specified volume group&lt;BR /&gt;                                         from membership in the high&lt;BR /&gt;                                         availability cluster.  The high&lt;BR /&gt;                                         availability software does not need&lt;BR /&gt;                                         to be running.&lt;BR /&gt; &lt;BR /&gt;&lt;/SNIPPET_FROM_MAN_VGCHANGE&gt;&lt;BR /&gt; &lt;BR /&gt;So revocation shouldn't be the problem.&lt;BR /&gt;But if my memory serves me correctly I can recall once having had enormous difficulties to reset the bit in absence of cluster services.&lt;BR /&gt;Unfortunately I have only productive servers under my "reign", where I cannot get hands on to give it try right now.</description>
    <pubDate>Thu, 11 Nov 2004 11:45:55 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2004-11-11T11:45:55Z</dc:date>
    <item>
      <title>Package start script or utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870053#M703421</link>
      <description>Has anyone developed a script that accesses a package configuration file and then starts the package outside of the cluster, i.e. imports the VGs, lights up the IP addresses and starts the associated applications. This would be useful in cases where cluster or package maintenance needs to be performed  but packages still need to be available.</description>
      <pubDate>Thu, 11 Nov 2004 09:48:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870053#M703421</guid>
      <dc:creator>Scott Tinsley</dc:creator>
      <dc:date>2004-11-11T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Package start script or utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870054#M703422</link>
      <description>Hi Scott,&lt;BR /&gt; &lt;BR /&gt;I did something similar but was too lazy to "reinvent the wheel" and rescript all those handy custom functions the cmmakepkg command provides as a template.&lt;BR /&gt;Thus I extracted what seemed reusable from there, and sourced it in my script to invoke those functions.&lt;BR /&gt;Maybe also an option for you?&lt;BR /&gt; &lt;BR /&gt;The part that did this looks something like this:&lt;BR /&gt; &lt;BR /&gt;# code reuse of handy functions&lt;BR /&gt;TMP_CMLIB=$(mktemp)&lt;BR /&gt;cmmakepkg -s |\&lt;BR /&gt;    sed -n '/# START OF RUN FUNCTIONS/,/# END OF FUNCTIONS COMMON TO BOTH RUN AN&lt;BR /&gt;D HALT/p' \&lt;BR /&gt;    &amp;gt; $TMP_CMLIB&lt;BR /&gt;if [ -s $TMP_CMLIB ]; then&lt;BR /&gt;    echo "Dumped custom functions to $TMP_CMLIB"&lt;BR /&gt;    . $TMP_CMLIB&lt;BR /&gt;    echo "Sourced custom functions from $TMP_CMLIB:"&lt;BR /&gt;    typeset -f|grep function&lt;BR /&gt;fi&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Nov 2004 10:01:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870054#M703422</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-11-11T10:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Package start script or utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870055#M703423</link>
      <description>Look at the bottom of your package control script (viz. the "main" block) how these functions are called during a normal package stop|start.&lt;BR /&gt;I also inserted a custom function that touch-es some sort of semaphore file to indicate that the cluster services should start up in maintenance mode.&lt;BR /&gt;Then in the customer_defined_*_cmds() funcs there are test blocks that look for this file, and if found only do VG activation, FS checking and mounting, IP address binding etc. (whatever your needs are).&lt;BR /&gt;After ending maintenance one has to halt the packages with the semaphore file in place, then remove the file and restart normally.</description>
      <pubDate>Thu, 11 Nov 2004 10:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870055#M703423</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-11-11T10:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Package start script or utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870056#M703424</link>
      <description>I see where you are heading with this. Do the functions in the package control script depend on the cluster actually be active an running?</description>
      <pubDate>Thu, 11 Nov 2004 10:17:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870056#M703424</guid>
      <dc:creator>Scott Tinsley</dc:creator>
      <dc:date>2004-11-11T10:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Package start script or utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870057#M703425</link>
      <description>Hi Scott,&lt;BR /&gt;&lt;BR /&gt;I have never gotten to situations where I had to do like this. However as long as you have the 'cluster' up and running, you should be able to use 'package.cntl start|stop' to bring up/down the package outside serviceguard. However, you will not be able to bring up/down the services and resources even if serviceguard is running as they use cm*serv and cm*res commands. And you will have to modify it quite a bit like changing 'cmmodnet' command to 'ifconfig' etc., if the cmcld process is not running.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 11 Nov 2004 11:01:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870057#M703425</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-11T11:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Package start script or utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870058#M703426</link>
      <description>Turns out that if you just source the package control script and the cluster is running, you can call the appropriate fucntions and essentially activate the package without knowledge of the cluster. For instance,&lt;BR /&gt;&lt;BR /&gt;cd /etc/cmcluster/pkg&lt;BR /&gt;. ./pkg.cntl&lt;BR /&gt;activate_volume_group&lt;BR /&gt;check_and_mount&lt;BR /&gt;add_ip_address&lt;BR /&gt;customer_defined_run_cmds&lt;BR /&gt;&lt;BR /&gt;This should work when the cluster is down except you cannot do a vgchange -a e (exclusive) with cluster services down. I assume you could export the VG and then reimport and mark as not sharable.&lt;BR /&gt;&lt;BR /&gt;Thanks for the insite</description>
      <pubDate>Thu, 11 Nov 2004 11:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870058#M703426</guid>
      <dc:creator>Scott Tinsley</dc:creator>
      <dc:date>2004-11-11T11:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Package start script or utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870059#M703427</link>
      <description>If you need to activate the shared VG I think you have to revoke the "cluster bit" by something like&lt;BR /&gt; &lt;BR /&gt;vgchange -c n vgXX&lt;BR /&gt; &lt;BR /&gt;Issueing this command, however seems to require a running cmlvmd daemon which is part of cluster services of a running cluster.&lt;BR /&gt;So a bit like the hen and egg catch once again?</description>
      <pubDate>Thu, 11 Nov 2004 11:40:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870059#M703427</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-11-11T11:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Package start script or utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870060#M703428</link>
      <description>Oops, I have to correct myself after rebrowsing through man vgchange&lt;BR /&gt; &lt;BR /&gt;&lt;SNIPPET_FROM_MAN_VGCHANGE&gt;&lt;BR /&gt; &lt;BR /&gt;           -c cluster          Control the membership of volume groups in a&lt;BR /&gt;                               high availability  cluster.  cluster can have&lt;BR /&gt;                               one of the following values:&lt;BR /&gt; &lt;BR /&gt;                                    y    Mark each specified volume group as&lt;BR /&gt;                                         a member of the high availability&lt;BR /&gt;                                         cluster.  The high availability&lt;BR /&gt;                                         software must be running;&lt;BR /&gt;                                         otherwise, the volume group is not&lt;BR /&gt;                                         marked.  Needs to be done on one&lt;BR /&gt;                                         node only.&lt;BR /&gt; &lt;BR /&gt;                                    n    Remove each specified volume group&lt;BR /&gt;                                         from membership in the high&lt;BR /&gt;                                         availability cluster.  The high&lt;BR /&gt;                                         availability software does not need&lt;BR /&gt;                                         to be running.&lt;BR /&gt; &lt;BR /&gt;&lt;/SNIPPET_FROM_MAN_VGCHANGE&gt;&lt;BR /&gt; &lt;BR /&gt;So revocation shouldn't be the problem.&lt;BR /&gt;But if my memory serves me correctly I can recall once having had enormous difficulties to reset the bit in absence of cluster services.&lt;BR /&gt;Unfortunately I have only productive servers under my "reign", where I cannot get hands on to give it try right now.</description>
      <pubDate>Thu, 11 Nov 2004 11:45:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870060#M703428</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2004-11-11T11:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Package start script or utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870061#M703429</link>
      <description>Scott,&lt;BR /&gt;&lt;BR /&gt;If the cluster is down, you will not be able to add the package IP address either as  'cmmodnet'  fails if it doesn't find cmcld process. You will need to use ifconfig to bypass that issue. The best bet is to have atleast the cluster up and running for minimum modifications.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 11 Nov 2004 11:48:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870061#M703429</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-11-11T11:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Package start script or utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870062#M703430</link>
      <description>Consider this document:&lt;BR /&gt;DKKBRC00006487&lt;BR /&gt;(locate by document ID in the Knowledge Database search tool)&lt;BR /&gt;&lt;BR /&gt;-SD.</description>
      <pubDate>Thu, 11 Nov 2004 13:29:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870062#M703430</guid>
      <dc:creator>Stephen Doud</dc:creator>
      <dc:date>2004-11-11T13:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Package start script or utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870063#M703431</link>
      <description>Thanks for all the great leads. Using the functions in the package control script accomplishes about 95% of what I was looking to do. If I wrap calls to those functions in a script to handle management of the VGs when the cluster is down, I will have what I need. &lt;BR /&gt;&lt;BR /&gt;Thanks for all your help and quick responses.</description>
      <pubDate>Fri, 12 Nov 2004 07:56:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/package-start-script-or-utility/m-p/4870063#M703431</guid>
      <dc:creator>Scott Tinsley</dc:creator>
      <dc:date>2004-11-12T07:56:13Z</dc:date>
    </item>
  </channel>
</rss>

