<?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: Managing Active/Passive Cluster. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449349#M208554</link>
    <description>this script fixes the vg and lv changes&lt;BR /&gt;-paul&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;# Export volum group and logical volum from primary maskin to secondary maskin&lt;BR /&gt;# This must be done after making any change to volum group in cluster on either&lt;BR /&gt;machine&lt;BR /&gt;&lt;BR /&gt;if [ $# -lt 2 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "Usage: $0 &lt;VOLUMEGROUP fullpath=""&gt; &lt;SECONDARY machine=""&gt;"&lt;BR /&gt;   exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;PRI_HOST=`hostname`&lt;BR /&gt;&lt;BR /&gt;# ==================================================&lt;BR /&gt;# Check the volume group on the primary machine&lt;BR /&gt;# ==================================================&lt;BR /&gt;VOLGRP=$1&lt;BR /&gt;vgdisplay $VOLGRP &amp;gt; /dev/null&lt;BR /&gt;status=$?&lt;BR /&gt;if [ $status -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "The volum group does not exist..."&lt;BR /&gt;   exit 1&lt;BR /&gt;else&lt;BR /&gt;   GRPID=`ll $VOLGRP/group | awk '{print $6}'`&lt;BR /&gt;&lt;BR /&gt;   # Zero length&lt;BR /&gt;   if [ -z "$GRPID" ]&lt;BR /&gt;   then&lt;BR /&gt;       echo "Make sure that the fullpath of volume group is given."&lt;BR /&gt;       exit 1&lt;BR /&gt;   fi&lt;BR /&gt;   VOLNAME=`echo $VOLGRP | cut -d"/" -f3`&lt;BR /&gt;   echo "GroupID for $VOLGRP is $GRPID"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# ==================================================&lt;BR /&gt;# Check the accessibility to secondary machine&lt;BR /&gt;# ==================================================&lt;BR /&gt;SEC_HOST=$2&lt;BR /&gt;#grep $SEC_HOST /etc/hosts &amp;gt; /dev/null&lt;BR /&gt;status1=0&lt;BR /&gt;grep $SEC_HOST $HOME/.rhosts &amp;gt; /dev/null&lt;BR /&gt;status2=$?&lt;BR /&gt;if [ $status1 -ne 0 -o $status2 -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "Cannot remote access the secondary machine $SEC_HOST..."&lt;BR /&gt;   exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# ==================================================&lt;BR /&gt;# Begin to export the volume group on Primary machine&lt;BR /&gt;# ==================================================&lt;BR /&gt;TMPGRP=${PRI_HOST}_${VOLNAME}&lt;BR /&gt;EXPSTR="vgexport -p -s -v -m /tmp/$TMPGRP.map $VOLGRP"&lt;BR /&gt;echo "execute '$EXPSTR' [y/n?]\c "&lt;BR /&gt;read svar&lt;BR /&gt;case $svar in&lt;BR /&gt;   ["y|Y"]) $EXPSTR;;&lt;BR /&gt;   ["n|N"]) echo "End of wizard...Nothing done."; exit 1;;&lt;BR /&gt;        * ) echo "Please enter y|Y or n|N. End of wizard"; exit 1;;&lt;BR /&gt;esac&lt;BR /&gt;rcp /tmp/$TMPGRP.map $SEC_HOST:/tmp&lt;BR /&gt;tar cvf /tmp/${TMPGRP}_lv.tar $VOLGRP/*&lt;BR /&gt;rcp /tmp/${TMPGRP}_lv.tar $SEC_HOST:/tmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ==================================================&lt;BR /&gt;# Now run remsh on the secondary machine&lt;BR /&gt;# ==================================================&lt;BR /&gt;echo "Importing volume group ${VOLGRP} to Secondary machine $SEC_HOST, please wa&lt;BR /&gt;it..."&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/sbin/vgexport ${VOLGRP})"&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/bin/mkdir ${VOLGRP})"&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/sbin/mknod ${VOLGRP}/group c 64 ${GRPID})"&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/sbin/vgimport -s -v -m /tmp/$TMPGRP.map ${VOLG&lt;BR /&gt;RP})"&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/bin/rm ${VOLGRP}/*l*)"&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/bin/tar xpvf /tmp/${TMPGRP}_lv.tar)"&lt;BR /&gt;&lt;BR /&gt;&lt;/SECONDARY&gt;&lt;/VOLUMEGROUP&gt;</description>
    <pubDate>Thu, 23 Dec 2004 05:13:14 GMT</pubDate>
    <dc:creator>Paul Torp</dc:creator>
    <dc:date>2004-12-23T05:13:14Z</dc:date>
    <item>
      <title>Managing Active/Passive Cluster.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449347#M208552</link>
      <description>Hi,&lt;BR /&gt; We are having active passive cluster &lt;BR /&gt; environment and we are running webMethods on&lt;BR /&gt; it.&lt;BR /&gt; The problem we are having is whenever we do&lt;BR /&gt; any changes we need to do a failover and then&lt;BR /&gt; do the same task on the passive one as well.&lt;BR /&gt;&lt;BR /&gt; Can anybody help how to make this thing &lt;BR /&gt; automatic so that we deploy any package/fixes &lt;BR /&gt; on webmethods and should get replicated on &lt;BR /&gt; the passive one.&lt;BR /&gt;&lt;BR /&gt; Thanks,&lt;BR /&gt; Amit.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Dec 2004 20:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449347#M208552</guid>
      <dc:creator>Amit Dixit_2</dc:creator>
      <dc:date>2004-12-22T20:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Active/Passive Cluster.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449348#M208553</link>
      <description>&lt;BR /&gt; Hi!&lt;BR /&gt;&lt;BR /&gt; If you mean HA cluster, there are not direct way to simultaneous changes. If you change something in the staff of package,this change could be moved togather with the package on the passive node. So try this. Another solution is to try to &lt;BR /&gt;create small client-server system between 2 nodes,which be responsible to carry any changes between it. But it is more sophisticated solution.&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2004 03:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449348#M208553</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2004-12-23T03:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Active/Passive Cluster.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449349#M208554</link>
      <description>this script fixes the vg and lv changes&lt;BR /&gt;-paul&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;# Export volum group and logical volum from primary maskin to secondary maskin&lt;BR /&gt;# This must be done after making any change to volum group in cluster on either&lt;BR /&gt;machine&lt;BR /&gt;&lt;BR /&gt;if [ $# -lt 2 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "Usage: $0 &lt;VOLUMEGROUP fullpath=""&gt; &lt;SECONDARY machine=""&gt;"&lt;BR /&gt;   exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;PRI_HOST=`hostname`&lt;BR /&gt;&lt;BR /&gt;# ==================================================&lt;BR /&gt;# Check the volume group on the primary machine&lt;BR /&gt;# ==================================================&lt;BR /&gt;VOLGRP=$1&lt;BR /&gt;vgdisplay $VOLGRP &amp;gt; /dev/null&lt;BR /&gt;status=$?&lt;BR /&gt;if [ $status -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "The volum group does not exist..."&lt;BR /&gt;   exit 1&lt;BR /&gt;else&lt;BR /&gt;   GRPID=`ll $VOLGRP/group | awk '{print $6}'`&lt;BR /&gt;&lt;BR /&gt;   # Zero length&lt;BR /&gt;   if [ -z "$GRPID" ]&lt;BR /&gt;   then&lt;BR /&gt;       echo "Make sure that the fullpath of volume group is given."&lt;BR /&gt;       exit 1&lt;BR /&gt;   fi&lt;BR /&gt;   VOLNAME=`echo $VOLGRP | cut -d"/" -f3`&lt;BR /&gt;   echo "GroupID for $VOLGRP is $GRPID"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# ==================================================&lt;BR /&gt;# Check the accessibility to secondary machine&lt;BR /&gt;# ==================================================&lt;BR /&gt;SEC_HOST=$2&lt;BR /&gt;#grep $SEC_HOST /etc/hosts &amp;gt; /dev/null&lt;BR /&gt;status1=0&lt;BR /&gt;grep $SEC_HOST $HOME/.rhosts &amp;gt; /dev/null&lt;BR /&gt;status2=$?&lt;BR /&gt;if [ $status1 -ne 0 -o $status2 -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "Cannot remote access the secondary machine $SEC_HOST..."&lt;BR /&gt;   exit 1&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;# ==================================================&lt;BR /&gt;# Begin to export the volume group on Primary machine&lt;BR /&gt;# ==================================================&lt;BR /&gt;TMPGRP=${PRI_HOST}_${VOLNAME}&lt;BR /&gt;EXPSTR="vgexport -p -s -v -m /tmp/$TMPGRP.map $VOLGRP"&lt;BR /&gt;echo "execute '$EXPSTR' [y/n?]\c "&lt;BR /&gt;read svar&lt;BR /&gt;case $svar in&lt;BR /&gt;   ["y|Y"]) $EXPSTR;;&lt;BR /&gt;   ["n|N"]) echo "End of wizard...Nothing done."; exit 1;;&lt;BR /&gt;        * ) echo "Please enter y|Y or n|N. End of wizard"; exit 1;;&lt;BR /&gt;esac&lt;BR /&gt;rcp /tmp/$TMPGRP.map $SEC_HOST:/tmp&lt;BR /&gt;tar cvf /tmp/${TMPGRP}_lv.tar $VOLGRP/*&lt;BR /&gt;rcp /tmp/${TMPGRP}_lv.tar $SEC_HOST:/tmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ==================================================&lt;BR /&gt;# Now run remsh on the secondary machine&lt;BR /&gt;# ==================================================&lt;BR /&gt;echo "Importing volume group ${VOLGRP} to Secondary machine $SEC_HOST, please wa&lt;BR /&gt;it..."&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/sbin/vgexport ${VOLGRP})"&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/bin/mkdir ${VOLGRP})"&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/sbin/mknod ${VOLGRP}/group c 64 ${GRPID})"&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/sbin/vgimport -s -v -m /tmp/$TMPGRP.map ${VOLG&lt;BR /&gt;RP})"&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/bin/rm ${VOLGRP}/*l*)"&lt;BR /&gt;remsh $SEC_HOST "(umask 022; /usr/bin/tar xpvf /tmp/${TMPGRP}_lv.tar)"&lt;BR /&gt;&lt;BR /&gt;&lt;/SECONDARY&gt;&lt;/VOLUMEGROUP&gt;</description>
      <pubDate>Thu, 23 Dec 2004 05:13:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449349#M208554</guid>
      <dc:creator>Paul Torp</dc:creator>
      <dc:date>2004-12-23T05:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Active/Passive Cluster.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449350#M208555</link>
      <description>i forgot..   the syntax:&lt;BR /&gt;&lt;BR /&gt;Run on the node where the changes are being made in a 2 node cluster.&lt;BR /&gt;&lt;BR /&gt;./exp_imp_vol.sh /dev/vg_whatever 2ndHostname</description>
      <pubDate>Thu, 23 Dec 2004 05:16:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449350#M208555</guid>
      <dc:creator>Paul Torp</dc:creator>
      <dc:date>2004-12-23T05:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Active/Passive Cluster.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449351#M208556</link>
      <description>for the cntl and conf files and any other files.&lt;BR /&gt;&lt;BR /&gt;cd /etc/cmcluster/packagename&lt;BR /&gt;rcp * 2ndHostname:$PWD</description>
      <pubDate>Thu, 23 Dec 2004 05:18:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449351#M208556</guid>
      <dc:creator>Paul Torp</dc:creator>
      <dc:date>2004-12-23T05:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Active/Passive Cluster.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449352#M208557</link>
      <description>Hi,&lt;BR /&gt;  What if I just copy the entire folder of&lt;BR /&gt;  java packages from active to passive &lt;BR /&gt;  cluster will it work ??&lt;BR /&gt; &lt;BR /&gt;  Anyone having any other IDEA please let me&lt;BR /&gt;  know.&lt;BR /&gt;&lt;BR /&gt;  Thanks,&lt;BR /&gt;  Amit.</description>
      <pubDate>Thu, 23 Dec 2004 13:54:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449352#M208557</guid>
      <dc:creator>Amit Dixit_2</dc:creator>
      <dc:date>2004-12-23T13:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Active/Passive Cluster.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449353#M208558</link>
      <description>Hi amit,&lt;BR /&gt;&lt;BR /&gt;The best solution in this king of situation is to failover all the filesystems associated with the package from one node to another. That way, all the binaries are transferred from onehost to another. The only think left to be synced up is the package control and startup / shutdown scripts which are under /etc/cmcluster and must reside on both the nodes. So do rcp/scp from one node to another whenever a change is made to the cluster control, startup / shutdown scripts.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Dec 2004 14:15:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/managing-active-passive-cluster/m-p/3449353#M208558</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-12-23T14:15:26Z</dc:date>
    </item>
  </channel>
</rss>

