<?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: inter-package communication in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900725#M58353</link>
    <description>My solution was to modify toolkit.sh:&lt;BR /&gt;&lt;BR /&gt;HA_SERVER=NFS_SAMBA_HOME&lt;BR /&gt;HA_SCRIPT=${0%/*}/hanfs.sh&lt;BR /&gt;HA_SCRIPT2=${0%/*}/hasmb.sh&lt;BR /&gt;ACT=$1&lt;BR /&gt;R1=0&lt;BR /&gt;R2=0&lt;BR /&gt;&lt;BR /&gt;function test_return&lt;BR /&gt;{&lt;BR /&gt;    if (( $R1 + $R2 != 0 ))&lt;BR /&gt;    then&lt;BR /&gt;        echo "ERROR: $(date '+%b %e %T') - Failed to $ACT $HA_SERVER."&lt;BR /&gt;        exit 1&lt;BR /&gt;    fi&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;function log_info&lt;BR /&gt;{&lt;BR /&gt;[...]&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# Invoke the application toolkit&lt;BR /&gt;&lt;BR /&gt;if [ -x $HA_SCRIPT -a -x $HA_SCRIPT2 ]; then&lt;BR /&gt;    ./$HA_SCRIPT $ACT&lt;BR /&gt;    R1=$?&lt;BR /&gt;    ./$HA_SCRIPT2 $ACT&lt;BR /&gt;    R2=$?&lt;BR /&gt;    test_return&lt;BR /&gt;else&lt;BR /&gt;    log_info&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;exit 0;&lt;BR /&gt;&lt;BR /&gt;Thanks for all the replies!&lt;BR /&gt;&lt;BR /&gt;Krisztian</description>
    <pubDate>Thu, 02 Jun 2005 03:42:06 GMT</pubDate>
    <dc:creator>Informatikai Tanszekcso</dc:creator>
    <dc:date>2005-06-02T03:42:06Z</dc:date>
    <item>
      <title>inter-package communication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900721#M58349</link>
      <description>Hi all!&lt;BR /&gt;&lt;BR /&gt;Is there any way to "stick" two packages together, ie. they always have run on the same node?&lt;BR /&gt;&lt;BR /&gt;I want to share a particular filesystem via NFS and Samba at the same time - on the same node.&lt;BR /&gt;&lt;BR /&gt;Another solution could be to modify the toolkit.sh script to start two HA scripts (hasmb.sh and hanfs.sh), and combine two packages into one this way.&lt;BR /&gt;&lt;BR /&gt;What is the best way?&lt;BR /&gt;&lt;BR /&gt;Krisztian&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 May 2005 02:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900721#M58349</guid>
      <dc:creator>Informatikai Tanszekcso</dc:creator>
      <dc:date>2005-05-09T02:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: inter-package communication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900722#M58350</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;In the /etc/cmcluster/&lt;PKG&gt;.ascii file add a resource or use SAM and choose "Additional Package Dependencies" in the "Package Configuration" subarea.&lt;BR /&gt;&lt;BR /&gt;Cheerio,&lt;BR /&gt;&lt;BR /&gt;Renarios&lt;/PKG&gt;</description>
      <pubDate>Mon, 09 May 2005 03:05:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900722#M58350</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2005-05-09T03:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: inter-package communication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900723#M58351</link>
      <description>IPC from one node to antoher node?&lt;BR /&gt;&lt;BR /&gt;I don't see how that can work. Memory is not a resource that SG shares.&lt;BR /&gt;&lt;BR /&gt;I think you do have to run both packages on the same node. I think the suggestion in the prior post is an excellent solution quality post.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 09 May 2005 09:26:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900723#M58351</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-05-09T09:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: inter-package communication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900724#M58352</link>
      <description>Probably best to combine the two toolkits into one.  &lt;BR /&gt;&lt;BR /&gt;Extract the "startup" and "shutdown" portion of each toolkit and put them into combined startup and shutdown sections.  Make to packages dependant on all of the monitors instead of just the individual ones.</description>
      <pubDate>Fri, 13 May 2005 13:11:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900724#M58352</guid>
      <dc:creator>Serviceguard for Linux</dc:creator>
      <dc:date>2005-05-13T13:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: inter-package communication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900725#M58353</link>
      <description>My solution was to modify toolkit.sh:&lt;BR /&gt;&lt;BR /&gt;HA_SERVER=NFS_SAMBA_HOME&lt;BR /&gt;HA_SCRIPT=${0%/*}/hanfs.sh&lt;BR /&gt;HA_SCRIPT2=${0%/*}/hasmb.sh&lt;BR /&gt;ACT=$1&lt;BR /&gt;R1=0&lt;BR /&gt;R2=0&lt;BR /&gt;&lt;BR /&gt;function test_return&lt;BR /&gt;{&lt;BR /&gt;    if (( $R1 + $R2 != 0 ))&lt;BR /&gt;    then&lt;BR /&gt;        echo "ERROR: $(date '+%b %e %T') - Failed to $ACT $HA_SERVER."&lt;BR /&gt;        exit 1&lt;BR /&gt;    fi&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;function log_info&lt;BR /&gt;{&lt;BR /&gt;[...]&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;# Invoke the application toolkit&lt;BR /&gt;&lt;BR /&gt;if [ -x $HA_SCRIPT -a -x $HA_SCRIPT2 ]; then&lt;BR /&gt;    ./$HA_SCRIPT $ACT&lt;BR /&gt;    R1=$?&lt;BR /&gt;    ./$HA_SCRIPT2 $ACT&lt;BR /&gt;    R2=$?&lt;BR /&gt;    test_return&lt;BR /&gt;else&lt;BR /&gt;    log_info&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;exit 0;&lt;BR /&gt;&lt;BR /&gt;Thanks for all the replies!&lt;BR /&gt;&lt;BR /&gt;Krisztian</description>
      <pubDate>Thu, 02 Jun 2005 03:42:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900725#M58353</guid>
      <dc:creator>Informatikai Tanszekcso</dc:creator>
      <dc:date>2005-06-02T03:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: inter-package communication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900726#M58354</link>
      <description>One more thing I forget to mention:&lt;BR /&gt;&lt;BR /&gt;I had to modify test_return function in pkg.sh at case 50:&lt;BR /&gt;&lt;BR /&gt;            50)&lt;BR /&gt;                echo "ERROR: Function verify_ha_server; Failed to $action HA servers"&lt;BR /&gt;                &lt;BR /&gt;                if [[ "$action" = "start" ]]&lt;BR /&gt;                then&lt;BR /&gt;                    if [[ "$HA_APP_SERVER" = "post-IP" ]]&lt;BR /&gt;                    then&lt;BR /&gt;                        remove_ip_address&lt;BR /&gt;                    fi&lt;BR /&gt;&lt;BR /&gt;#ADDED:&lt;BR /&gt;&lt;BR /&gt;                    action=stop&lt;BR /&gt;                    verify_ha_server stop&lt;BR /&gt;&lt;BR /&gt;#END OF MODS&lt;BR /&gt;&lt;BR /&gt;                    umount_fs&lt;BR /&gt;                    deactivate_volume_group&lt;BR /&gt;                    deactivate_md&lt;BR /&gt;                    verify_physical_data_replication stop&lt;BR /&gt;                    to_exit=1&lt;BR /&gt;                else&lt;BR /&gt;                    exit_value=1&lt;BR /&gt;                fi&lt;BR /&gt;                ;;&lt;BR /&gt;&lt;BR /&gt;I had to add "verify_ha_server stop" because at startup failure of smbd the NFS shares were not unexported, so umount_fs failed. "action=stop" were added to avoid recursion (verify_ha_server calls test_return again, but $action should be "stop" at this time)&lt;BR /&gt;&lt;BR /&gt;Hope this helps those wanting something similar.&lt;BR /&gt;&lt;BR /&gt;Krisztian</description>
      <pubDate>Thu, 02 Jun 2005 04:22:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inter-package-communication/m-p/4900726#M58354</guid>
      <dc:creator>Informatikai Tanszekcso</dc:creator>
      <dc:date>2005-06-02T04:22:26Z</dc:date>
    </item>
  </channel>
</rss>

