<?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: Shutdown cluster package with shutdown command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263431#M659311</link>
    <description>Do NOT run "/sbin/init.d/K002cmcluster"&lt;BR /&gt;&lt;BR /&gt;Do run one of the following:&lt;BR /&gt;To force packages that are running on the node to failover:&lt;BR /&gt;# cmhaltnode -f&lt;BR /&gt;&lt;BR /&gt;To halt packages running on the node (but not force them to move to an adoptive node):&lt;BR /&gt;# cmhaltpkg [-v] [-n node_name]...  package_name...&lt;BR /&gt;&lt;BR /&gt;Then 'shutdown' the system and "/sbin/init.d/K002cmcluster" will perform cmhaltnode and shutdown cluster daemons on the node if you only ran the  cmhaltpkg command above.&lt;BR /&gt;</description>
    <pubDate>Mon, 22 Nov 2010 12:07:45 GMT</pubDate>
    <dc:creator>Stephen Doud</dc:creator>
    <dc:date>2010-11-22T12:07:45Z</dc:date>
    <item>
      <title>Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263423#M659303</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is there any option to shutdown the package running with the shutdown -hy 0 command . In our environment we have many maintaince activity . I heard that if we copy some files to the /etc/cmcluster/rc directory  then when we shutdown the server with shutdown 0hy 0 command it will first shutdown hte package and then shutdown the server.&lt;BR /&gt;&lt;BR /&gt;Can sone one pls give a brief idea about this ,How its working and which are the files need to copy and from where</description>
      <pubDate>Fri, 19 Nov 2010 06:39:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263423#M659303</guid>
      <dc:creator>joseph51</dc:creator>
      <dc:date>2010-11-19T06:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263424#M659304</link>
      <description>If configured correctly, the shutdown of the server will halt the package and node too (gracefully).</description>
      <pubDate>Fri, 19 Nov 2010 06:53:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263424#M659304</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2010-11-19T06:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263425#M659305</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;When you issue a shutdown command, the /sbin/rc?.d/K* scripts are executed in order to gracefully stop running processes.&lt;BR /&gt;&lt;BR /&gt;I believe you could make a script in order to stop the package.&lt;BR /&gt;&lt;BR /&gt;The script can be either as simple as calling cmhaltpkg or you should move the package from the current node to another one (cmhaltpkg then cmrunpkg -n other_node).&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Horia.</description>
      <pubDate>Fri, 19 Nov 2010 07:19:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263425#M659305</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-11-19T07:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263426#M659306</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Look /sbin/init.d/cmcluster scripts.&lt;BR /&gt;&lt;BR /&gt;##########################&lt;BR /&gt;function halt_cluster_node&lt;BR /&gt;##########################&lt;BR /&gt;# Halt Serviceguard components&lt;BR /&gt;{&lt;BR /&gt;    findproc cmcld&lt;BR /&gt;    if [ "$pid" = "" ]&lt;BR /&gt;    then&lt;BR /&gt;        # No cmcld is running. Return N/A&lt;BR /&gt;        exit 2&lt;BR /&gt;    fi&lt;BR /&gt;&lt;BR /&gt;    if [ -x $cmhaltnode ]&lt;BR /&gt;    then&lt;BR /&gt;        #&lt;BR /&gt;        # Perform application specific halt actions&lt;BR /&gt;        #&lt;BR /&gt;        if [ -d /etc/cmcluster/rc ]&lt;BR /&gt;        then&lt;BR /&gt;            for APP_RC in $(ls /etc/cmcluster/rc/K*)&lt;BR /&gt;            do&lt;BR /&gt;                $APP_RC&lt;BR /&gt;                if [ $? -ne 0 ]&lt;BR /&gt;                then&lt;BR /&gt;                    echo "ERROR: Unable to stop cluster application from $APP_RC"&lt;BR /&gt;                    exit 1&lt;BR /&gt;                fi&lt;BR /&gt;            done&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;        $cmhaltnode -vf&lt;BR /&gt;        if [ $? -ne 0 ]&lt;BR /&gt;        then&lt;BR /&gt;            echo "ERROR: Unable to halt cluster on this node."&lt;BR /&gt;            exit 1&lt;BR /&gt;        fi&lt;BR /&gt;    fi&lt;BR /&gt;&lt;BR /&gt;    if [ -x /usr/sbin/vxdisk ]&lt;BR /&gt;    then&lt;BR /&gt;        deport_vxvm_dgs&lt;BR /&gt;    fi&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;rgs,</description>
      <pubDate>Fri, 19 Nov 2010 11:33:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263426#M659306</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2010-11-19T11:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263427#M659307</link>
      <description>Hi,&lt;BR /&gt;I should have another approach to stop a package.&lt;BR /&gt;&lt;BR /&gt;As already mentioned shutdown command already shuts all services on the system gracefully, included SG and its packages but instead of such approach I'd stop it manually (cmhaltpkg &lt;PKGNAME&gt;) and restart it on another node (of course, if for any reasons the package only runs on that node, then just stop it) before of issuing shutdown command.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Fabio&lt;/PKGNAME&gt;</description>
      <pubDate>Fri, 19 Nov 2010 11:53:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263427#M659307</guid>
      <dc:creator>Fabio Ettore</dc:creator>
      <dc:date>2010-11-19T11:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263428#M659308</link>
      <description>Page 275 of the A.11.20 "Managing Serviceguard" manual states:&lt;BR /&gt;"NOTE: The /sbin/init.d/cmcluster file may call files that Serviceguard stores&lt;BR /&gt;in /etc/cmcluster/rc. This directory is for Serviceguard use only! Do not move,&lt;BR /&gt;delete, modify, or add files in this directory."&lt;BR /&gt;&lt;BR /&gt;Though a shutdown command will cause /sbin/rc2.d/K002cmcluster -&amp;gt; /sbin/init.d/cmcluster to perform cmhaltnode, cmhaltnode cannot terminate cmlvmd correctly if a package shutdown does not completely umount all file systems controlled by the package.  This situation leaves cmcld running, so when shutdown executes killall, cmcld is terminated ungracefully, potentially exposing the system to a TOC (tranfer-of-control) - a memory dump, before rebooting.&lt;BR /&gt;&lt;BR /&gt;Page 343 states:&lt;BR /&gt;"NOTE: HP recommends that you remove a node from participation in the cluster (by running cmhaltnode as shown below, or Halt Node in Serviceguard Manager) before running the HP-UX shutdown command, especially in cases in which a packaged application might have trouble during shutdown and not halt cleanly."&lt;BR /&gt;&lt;BR /&gt;Fabio's recommendation to perform cmhaltpkg on each package running on the node before performing a shutdown is standard procedure.</description>
      <pubDate>Fri, 19 Nov 2010 13:55:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263428#M659308</guid>
      <dc:creator>Stephen Doud</dc:creator>
      <dc:date>2010-11-19T13:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263429#M659309</link>
      <description>Hi Stephan ,&lt;BR /&gt; thanks for your valuable information .&lt;BR /&gt;&lt;BR /&gt;I have a small query also .I could not find any directory "rc" under /etc/cmcluster/ ..&lt;BR /&gt;&lt;BR /&gt;In this case what we have to do .. in this case also the /sbin/init.d/K002cmclustet will gracefully shutdown the package ..?&lt;BR /&gt;&lt;BR /&gt;Or do I need to modify anythin gmore for a graceful shutdown</description>
      <pubDate>Sat, 20 Nov 2010 04:19:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263429#M659309</guid>
      <dc:creator>joseph51</dc:creator>
      <dc:date>2010-11-20T04:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263430#M659310</link>
      <description>"NOTE: HP recommends that you remove a node from participation in the cluster (by running cmhaltnode as shown below, or Halt Node in Serviceguard Manager) before running the HP-UX shutdown command, especially in cases in which a packaged application might have trouble during shutdown and not halt cleanly."&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sooraj</description>
      <pubDate>Sat, 20 Nov 2010 05:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263430#M659310</guid>
      <dc:creator>SoorajCleris</dc:creator>
      <dc:date>2010-11-20T05:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263431#M659311</link>
      <description>Do NOT run "/sbin/init.d/K002cmcluster"&lt;BR /&gt;&lt;BR /&gt;Do run one of the following:&lt;BR /&gt;To force packages that are running on the node to failover:&lt;BR /&gt;# cmhaltnode -f&lt;BR /&gt;&lt;BR /&gt;To halt packages running on the node (but not force them to move to an adoptive node):&lt;BR /&gt;# cmhaltpkg [-v] [-n node_name]...  package_name...&lt;BR /&gt;&lt;BR /&gt;Then 'shutdown' the system and "/sbin/init.d/K002cmcluster" will perform cmhaltnode and shutdown cluster daemons on the node if you only ran the  cmhaltpkg command above.&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Nov 2010 12:07:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263431#M659311</guid>
      <dc:creator>Stephen Doud</dc:creator>
      <dc:date>2010-11-22T12:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263432#M659312</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Do assign points for those who have helped. I learned a lot from this thread!!!&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ismail Azad</description>
      <pubDate>Sat, 27 Nov 2010 17:04:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263432#M659312</guid>
      <dc:creator>Ismail Azad</dc:creator>
      <dc:date>2010-11-27T17:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263433#M659313</link>
      <description>Thanks for all of you for the replays ... this helped me to realise the proper way of down the package while the shutdown happens</description>
      <pubDate>Sat, 27 Nov 2010 17:24:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263433#M659313</guid>
      <dc:creator>joseph51</dc:creator>
      <dc:date>2010-11-27T17:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shutdown cluster package with shutdown command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263434#M659314</link>
      <description>Thanks once again ..</description>
      <pubDate>Sat, 27 Nov 2010 17:25:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-cluster-package-with-shutdown-command/m-p/5263434#M659314</guid>
      <dc:creator>joseph51</dc:creator>
      <dc:date>2010-11-27T17:25:11Z</dc:date>
    </item>
  </channel>
</rss>

