<?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: packages can not failover when process down in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7017051#M558976</link>
    <description>&lt;P&gt;Hi Patrick&lt;/P&gt;&lt;P&gt;Thank you for your advice,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand SG design by your advice. I will try it.&lt;/P&gt;&lt;P&gt;Keiko&lt;/P&gt;</description>
    <pubDate>Tue, 04 Sep 2018 22:16:10 GMT</pubDate>
    <dc:creator>mk707</dc:creator>
    <dc:date>2018-09-04T22:16:10Z</dc:date>
    <item>
      <title>packages can not failover when process down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7016663#M558971</link>
      <description>&lt;P&gt;I created 2 nodes cluster as failover type, and 4 packages, but my packages could not failover.&lt;BR /&gt;Could you please advice this issue?&lt;/P&gt;&lt;P&gt;node1 and node2 has AUTO_RUN setting.&lt;BR /&gt;all packages set aut_run yes, failover_policy configured_node.&lt;BR /&gt;pkg1 provides VIP with and monitored_subnet X.Y.Z.0.&lt;BR /&gt;pkg2 provides shared disk.&lt;BR /&gt;pkg3 provides ftp server as external_script with dependent on pkg1 up state and pkg2 up state.&lt;BR /&gt;external script invokes vsftpd using /etc/init.d/vsftpd start/stop.&lt;BR /&gt;pkg4 monitors vsftpd process and exit with status=1 when missing process.&lt;/P&gt;&lt;P&gt;I want to failover all packages when vsftpd down, but it was not.&lt;BR /&gt;When I killed vsftpd process, nothing happened. Only pkg4 move to down status, but the other packages were still running on node1.&lt;/P&gt;&lt;P&gt;I need another scripts or another settings to move all packages to standby node?&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Keiko&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 23:18:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7016663#M558971</guid>
      <dc:creator>mk707</dc:creator>
      <dc:date>2018-08-31T23:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: packages can not failover when process down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7016711#M558972</link>
      <description>&lt;P&gt;The logic used to monitor the availability of vsftpd may need some rework. The program vsftpd (&lt;STRONG&gt;&lt;A href="https://security.appspot.com/vsftpd.html" target="_blank"&gt;https://security.appspot.com/vsftpd.html&lt;/A&gt;&lt;/STRONG&gt;) seems to be a typical daemon which&amp;nbsp;usually is scheduled through inittab with a respawn action in case the program disappears. This would be the preferred design to ensure that the daemon is always running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If pkg4 detected the loss of vsftpd, then the other 3 packages need to be shutdown. So the settings you are using for all the packages needs some additional work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 04:35:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7016711#M558972</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2018-09-02T04:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: packages can not failover when process down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7016712#M558973</link>
      <description>&lt;P&gt;Hi Bill, thank you for your advice.&lt;/P&gt;&lt;P&gt;I know Serviguguard package needs to "always running". At first, I defined /etc/init.d/vfstd as service_cmd in pkg3, but I got fail because /etc/init.d/vsftpd script immediately exited. (SG manual said this is bad definition.)&lt;BR /&gt;So, the second time, I temporally added sleep 1d at last of /etc/init./vsftpd and I put /etc/init.d/vsftpd into start function in external script. But this way did not success, because the package status was startting not up state.&lt;BR /&gt;The third time, I changed start function from my tempolally vsftpd to original /etc/init.d/vfstpd. Then pkg3 went to run state.&lt;BR /&gt;Now I recognized daemon program such as vsftpd must execute as external script.&lt;/P&gt;&lt;P&gt;My pkg4 watches vsftpd process. pkg4's function is as follows.&lt;/P&gt;&lt;P&gt;while true&lt;BR /&gt;do&lt;BR /&gt;echo `date`&lt;BR /&gt;# string=`ps -e | grep "vsftpd.conf"|grep -v grep` &amp;gt; /dev/null&lt;BR /&gt;string=`ps -aef | grep "vsftpd.conf"|grep -v grep`&lt;BR /&gt;if [ $? -eq 1 ]; then&lt;BR /&gt;exit 1&lt;BR /&gt;else&lt;BR /&gt;pid=`echo ${string} | awk '{print $1}'`&lt;BR /&gt;if [[ $pid = "" ]]; then&lt;BR /&gt;return 1&lt;BR /&gt;fi&lt;BR /&gt;fi&lt;BR /&gt;sleep 60s&lt;BR /&gt;done&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 04:56:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7016712#M558973</guid>
      <dc:creator>mk707</dc:creator>
      <dc:date>2018-09-02T04:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: packages can not failover when process down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7016715#M558974</link>
      <description>&lt;P&gt;A few hints on your script:&lt;/P&gt;&lt;P&gt;The ps command can find a process by name (-C option). No need for the double grep.&lt;BR /&gt;The UNIX95=1 construct turns on extra options just for ps (see: man ps)&lt;/P&gt;&lt;P&gt;Not sure about vsftpd.conf.&amp;nbsp;In the script below, I assume that the process you want to monitor is vsftpd.&lt;/P&gt;&lt;PRE&gt;while true
do
     UNIX95=1 ps -C vsftpd &amp;gt; /dev/null
     if [[ $? -ne 0 ]]
     then
        return 1
     fi
     sleep 60
done&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 06:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7016715#M558974</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2018-09-02T06:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: packages can not failover when process down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7017001#M558975</link>
      <description>&lt;P&gt;Why do you have all of the different resources in different packages?&amp;nbsp; This is not how a SG package is typically designed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a single service like this, you typically have your network, shared disk, running process, and process monitor all in a single SG package.&amp;nbsp; Then if the process goes down the entire package, encompassing all needed resources, fails over to the other node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 14:13:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7017001#M558975</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2018-09-04T14:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: packages can not failover when process down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7017051#M558976</link>
      <description>&lt;P&gt;Hi Patrick&lt;/P&gt;&lt;P&gt;Thank you for your advice,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand SG design by your advice. I will try it.&lt;/P&gt;&lt;P&gt;Keiko&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 22:16:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7017051#M558976</guid>
      <dc:creator>mk707</dc:creator>
      <dc:date>2018-09-04T22:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: packages can not failover when process down</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7017052#M558977</link>
      <description>&lt;P&gt;Hi Bill&lt;/P&gt;&lt;P&gt;I could pickup ftp process&amp;nbsp; perfectly. Thank you.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 22:24:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/packages-can-not-failover-when-process-down/m-p/7017052#M558977</guid>
      <dc:creator>mk707</dc:creator>
      <dc:date>2018-09-04T22:24:06Z</dc:date>
    </item>
  </channel>
</rss>

