<?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: Making changes to package scripts in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516925#M717045</link>
    <description>The short answer is "possibly".&lt;BR /&gt;&lt;BR /&gt;If the desired script alterations do not require modifications to&lt;BR /&gt;the package configuration file, then it is possible to alter&lt;BR /&gt;the package control script while the package is running because&lt;BR /&gt;the script is only accessed when the package is started or&lt;BR /&gt;stopped.&lt;BR /&gt;&lt;BR /&gt;If the alteration includes the addition of resources such as LVM&lt;BR /&gt;volume groups and/or logical volumes or relocatable IPs, they&lt;BR /&gt;should be activated (and mounted) manually, so that the updated&lt;BR /&gt;control script will be able to (umount and) deactivate them when&lt;BR /&gt;the package is halted.&lt;BR /&gt;&lt;BR /&gt;If the updated script no longer references certain resources,&lt;BR /&gt;manually deactivate them so as not to hinder the script from&lt;BR /&gt;completing when the package is eventually halted.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Altering the package script file name or adding / removing&lt;BR /&gt;/ modifying package SERVICEs generally requires a new&lt;BR /&gt;cmapplyconf with the package down.&lt;BR /&gt;&lt;BR /&gt;The cmcheckconf and cmapplyconf commands read the package&lt;BR /&gt;configuration file (not the package control script).  cmapplyconf&lt;BR /&gt;loads the package configuration file variable declarations into&lt;BR /&gt;the cluster binary cmclconfig.&lt;BR /&gt;&lt;BR /&gt;The variables in the package configuration file that reference&lt;BR /&gt;the package control script are:&lt;BR /&gt;&lt;BR /&gt;RUN_SCRIPT                     &lt;USER-DEFINED&gt;&lt;BR /&gt;HALT_SCRIPT                    (usually the same as RUN_SCRIPT)&lt;BR /&gt;SERVICE_NAME                   &lt;USER-DEFINED&gt;&lt;BR /&gt;SERVICE_FAIL_FAST_ENABLED      YES/NO&lt;BR /&gt;SERVICE_HALT_TIMEOUT           &lt;USER-DEFINED&gt;&lt;BR /&gt;SUBNET                         &lt;USER-DEFINED&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE:  the SUBNET reference is validated during cmcheckconf&lt;BR /&gt;and cmapplyconf activities.  If legitimate, it is listed as a&lt;BR /&gt;monitored resource in the cluster binary.  It is not necessary to have&lt;BR /&gt;a matching reference in the package control script.  Likewise, it is&lt;BR /&gt;possible to have no SUBNET reference in the package configuration&lt;BR /&gt;file, but list SUBNET/Relocatable IP pairs in the package control&lt;BR /&gt;script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;A word to the wise - complex modifications to the package control&lt;BR /&gt;script should be tested immediately!&lt;BR /&gt;&lt;BR /&gt;Don't forget to copy the altered form of the script to the adoptive&lt;BR /&gt;nodes.&lt;/USER-DEFINED&gt;&lt;/USER-DEFINED&gt;&lt;/USER-DEFINED&gt;&lt;/USER-DEFINED&gt;</description>
    <pubDate>Fri, 20 Apr 2001 20:23:15 GMT</pubDate>
    <dc:creator>Stephen Doud</dc:creator>
    <dc:date>2001-04-20T20:23:15Z</dc:date>
    <item>
      <title>Making changes to package scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516920#M717040</link>
      <description>We had consultants configure our cluster and service guard software.  Now, we want to make a few changes to the run and halt scripts.&lt;BR /&gt;&lt;BR /&gt;From what we can tell, the consultants used the standard template for creating our single package.  In the control script, the customer_defined_run_cmd section contains the follwing lines:&lt;BR /&gt;&lt;BR /&gt;  /etc/cmcluster/prodora1.pkg/prodora1.check&lt;BR /&gt;  test_return 51&lt;BR /&gt;&lt;BR /&gt;In the customer_defined_halt_cmd section, the following lines:&lt;BR /&gt;&lt;BR /&gt;  su - oracle -c "/etc/cmcluster/prodora1.pkg/prodora1.stop"&lt;BR /&gt;  test_return 52&lt;BR /&gt;&lt;BR /&gt;My question is this:  Can we make modifications to the shell scripts prodora1.stop and prodora1.check (and scripts called from these scripts) without recreating the package (cmhaltpkg, cmcheckconf, cmapplconf, etc.)?&lt;BR /&gt;&lt;BR /&gt;There are some concerns from members of our staff, that any changes requires a complete rebuild of the package.  If so, why would you use shell scripts in the first place?</description>
      <pubDate>Fri, 13 Apr 2001 13:08:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516920#M717040</guid>
      <dc:creator>Brian Bientz</dc:creator>
      <dc:date>2001-04-13T13:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Making changes to package scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516921#M717041</link>
      <description>cmhaltpkg package,modify the script,and cmrunpkg -n node package,cmmodpkg -e package.</description>
      <pubDate>Fri, 13 Apr 2001 14:42:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516921#M717041</guid>
      <dc:creator>Vincenzo Restuccia</dc:creator>
      <dc:date>2001-04-13T14:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Making changes to package scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516922#M717042</link>
      <description>There are two files associated with a package...(1) the control script and (2) the configuration file.  Mine usually end with .cntl and .conf.  You can change the control scipt without a necessary package rebuild, but you may want to halt the package first.  If you change the configuration file, then you must rebuild.</description>
      <pubDate>Fri, 13 Apr 2001 15:37:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516922#M717042</guid>
      <dc:creator>Jim Mulshine</dc:creator>
      <dc:date>2001-04-13T15:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Making changes to package scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516923#M717043</link>
      <description>In theory you don't have to execute any cm* commands.  Any changes you make to your start/stop scripts will take effect the next time the package does a start/stop.  &lt;BR /&gt;&lt;BR /&gt;In practice, however, it may be a good idea to test the package start/stop on all nodes using cm* commands.  FYI, we have a simple script for moving packages you may find helpful:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;# $1 = packagename&lt;BR /&gt;# $2 = nodename&lt;BR /&gt;date&lt;BR /&gt;cmhaltpkg $1&lt;BR /&gt;cmrunpkg -n $2 $1&lt;BR /&gt;date&lt;BR /&gt;cmmodpkg -e $1&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;If you are going to be supporting an MCSG environment, I would highly recommend attending the MCSG training.  In 13 years with HP it is the best class I've ever attended, and I'd say it is essential for supporting an MCSG cluster.&lt;BR /&gt;&lt;BR /&gt;Hope this helps...&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Mike Taylor&lt;BR /&gt;HP Corvallis&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Apr 2001 16:23:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516923#M717043</guid>
      <dc:creator>Mike Taylor_3</dc:creator>
      <dc:date>2001-04-13T16:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Making changes to package scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516924#M717044</link>
      <description>Ideally speaking you do not have to stop start or recreate the package for changing these scripts but if you want changes to be applied immediately then you can stop and start the package and also this will confirm your modification.</description>
      <pubDate>Fri, 13 Apr 2001 18:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516924#M717044</guid>
      <dc:creator>Rajeev Tyagi</dc:creator>
      <dc:date>2001-04-13T18:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Making changes to package scripts</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516925#M717045</link>
      <description>The short answer is "possibly".&lt;BR /&gt;&lt;BR /&gt;If the desired script alterations do not require modifications to&lt;BR /&gt;the package configuration file, then it is possible to alter&lt;BR /&gt;the package control script while the package is running because&lt;BR /&gt;the script is only accessed when the package is started or&lt;BR /&gt;stopped.&lt;BR /&gt;&lt;BR /&gt;If the alteration includes the addition of resources such as LVM&lt;BR /&gt;volume groups and/or logical volumes or relocatable IPs, they&lt;BR /&gt;should be activated (and mounted) manually, so that the updated&lt;BR /&gt;control script will be able to (umount and) deactivate them when&lt;BR /&gt;the package is halted.&lt;BR /&gt;&lt;BR /&gt;If the updated script no longer references certain resources,&lt;BR /&gt;manually deactivate them so as not to hinder the script from&lt;BR /&gt;completing when the package is eventually halted.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Altering the package script file name or adding / removing&lt;BR /&gt;/ modifying package SERVICEs generally requires a new&lt;BR /&gt;cmapplyconf with the package down.&lt;BR /&gt;&lt;BR /&gt;The cmcheckconf and cmapplyconf commands read the package&lt;BR /&gt;configuration file (not the package control script).  cmapplyconf&lt;BR /&gt;loads the package configuration file variable declarations into&lt;BR /&gt;the cluster binary cmclconfig.&lt;BR /&gt;&lt;BR /&gt;The variables in the package configuration file that reference&lt;BR /&gt;the package control script are:&lt;BR /&gt;&lt;BR /&gt;RUN_SCRIPT                     &lt;USER-DEFINED&gt;&lt;BR /&gt;HALT_SCRIPT                    (usually the same as RUN_SCRIPT)&lt;BR /&gt;SERVICE_NAME                   &lt;USER-DEFINED&gt;&lt;BR /&gt;SERVICE_FAIL_FAST_ENABLED      YES/NO&lt;BR /&gt;SERVICE_HALT_TIMEOUT           &lt;USER-DEFINED&gt;&lt;BR /&gt;SUBNET                         &lt;USER-DEFINED&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE:  the SUBNET reference is validated during cmcheckconf&lt;BR /&gt;and cmapplyconf activities.  If legitimate, it is listed as a&lt;BR /&gt;monitored resource in the cluster binary.  It is not necessary to have&lt;BR /&gt;a matching reference in the package control script.  Likewise, it is&lt;BR /&gt;possible to have no SUBNET reference in the package configuration&lt;BR /&gt;file, but list SUBNET/Relocatable IP pairs in the package control&lt;BR /&gt;script.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;A word to the wise - complex modifications to the package control&lt;BR /&gt;script should be tested immediately!&lt;BR /&gt;&lt;BR /&gt;Don't forget to copy the altered form of the script to the adoptive&lt;BR /&gt;nodes.&lt;/USER-DEFINED&gt;&lt;/USER-DEFINED&gt;&lt;/USER-DEFINED&gt;&lt;/USER-DEFINED&gt;</description>
      <pubDate>Fri, 20 Apr 2001 20:23:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-changes-to-package-scripts/m-p/2516925#M717045</guid>
      <dc:creator>Stephen Doud</dc:creator>
      <dc:date>2001-04-20T20:23:15Z</dc:date>
    </item>
  </channel>
</rss>

