<?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: Failover database application in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932080#M709786</link>
    <description>Thanks to both of you. I now understand what I'll need to do, and unfortunately, it's not going to be easy enough to fit it into my schedule anytime soon. Thanks again for all the help!&lt;BR /&gt;&lt;BR /&gt;Gary</description>
    <pubDate>Mon, 24 Mar 2003 16:05:41 GMT</pubDate>
    <dc:creator>Gary Hines</dc:creator>
    <dc:date>2003-03-24T16:05:41Z</dc:date>
    <item>
      <title>Failover database application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932073#M709779</link>
      <description>Hi All,&lt;BR /&gt; Situation:&lt;BR /&gt;1) 2-node cluster, hp1 and hp2 with VA7100 array&lt;BR /&gt;2) Failover VG is vg01 which contains the data volumes and the volume with the database application (UniVerse)&lt;BR /&gt;3) The database volume (/dev/vg00/lvuv) is mounted under /uv on hp1, and fails over to same on hp2&lt;BR /&gt;4) hp2 has a VG, vg01bcv, which is used to snapshot vg01 every night using Business Copy&lt;BR /&gt;5) hp2 runs backup after copy, but is otherwise idle.&lt;BR /&gt;&lt;BR /&gt;I've installed a copy of UniVerse to /dev/vg00/lvuv to use for testing and large reports on hp2. Now I'm trying to figure out the best way to mount it in regards to failovers. If I mount it under /uv, which is where /dev/vg01/lvuv would go on failover, what would happen? Would I still be able to shut down the testing version, and start the failed over copy of the DB. Almost forgot, there's 3 small files in the / directory, that point to the locations of the database, so if I put it somewhere else, I'll have to swap files or something before starting the failed over copy...&lt;BR /&gt;&lt;BR /&gt;Anybody else tried anything like this? Thanks for any pointers.&lt;BR /&gt;&lt;BR /&gt;Gary</description>
      <pubDate>Thu, 20 Mar 2003 15:23:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932073#M709779</guid>
      <dc:creator>Gary Hines</dc:creator>
      <dc:date>2003-03-20T15:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Failover database application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932074#M709780</link>
      <description>You're going to have to make a new package and enable it.  No biggie.&lt;BR /&gt;&lt;BR /&gt;cmmakepkg -p test_package.conf&lt;BR /&gt;&lt;BR /&gt;vi test...&lt;BR /&gt;fill in the template&lt;BR /&gt;I'd leave AUTO_RUN / PKG_SWITCHING_ENABLED off.&lt;BR /&gt;&lt;BR /&gt;cmmakepkg -s test_package.conf&lt;BR /&gt;&lt;BR /&gt;vi test...&lt;BR /&gt;fill in file systems, vgs, etc.&lt;BR /&gt;&lt;BR /&gt;I'd use the same network but remember, with the extra traffic you're production heartbeat latency will increase.&lt;BR /&gt;&lt;BR /&gt;Select all the defaults if in doubt or compare to the other package values.&lt;BR /&gt;&lt;BR /&gt;cmcheckconf -P test_package.conf&lt;BR /&gt;&lt;BR /&gt;cmapplyconf -P test_package.conf&lt;BR /&gt;&lt;BR /&gt;vgchange -c y vg##&lt;BR /&gt;vgchange -a n vg##&lt;BR /&gt;&lt;BR /&gt;cmmodpkg -e test package&lt;BR /&gt;&lt;BR /&gt;Failover testing with cmmodpkg disable node1.  Don't cmhaltnode or anything else with the cluster.</description>
      <pubDate>Thu, 20 Mar 2003 16:19:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932074#M709780</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-03-20T16:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Failover database application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932075#M709781</link>
      <description>I'm not quite sure what you're getting at here. From what I can tell, you're saying that I need to setup a separate package for the test package, which I can handle. But when failover occurs from hp1 to hp2, would the test package know that it needs to shutdown before /dev/vg00/lvuv attempts to mount under /uv on the backup system? Thanks again for any help. &lt;BR /&gt;</description>
      <pubDate>Fri, 21 Mar 2003 16:02:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932075#M709781</guid>
      <dc:creator>Gary Hines</dc:creator>
      <dc:date>2003-03-21T16:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Failover database application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932076#M709782</link>
      <description>Regarding....&lt;BR /&gt;&lt;BR /&gt;"...But when failover occurs from hp1 to hp2, would the test package know that it needs to shutdown before /dev/vg00/lvuv attempts to mount under /uv on the backup system? Thanks again for any help. ..."&lt;BR /&gt;&lt;BR /&gt;Of course. ????&lt;BR /&gt;&lt;BR /&gt;Refer to your current package.cntl file.  Aren't logical volumes and file systems indicated here?&lt;BR /&gt;&lt;BR /&gt;SG binaries handle everything.  SG binaries bypass the normal config files of HP-UX.  You don't use /etc/fstab because the SG binaries don't refer to /etc/fstab they mount via the package.cntl file entries.&lt;BR /&gt;&lt;BR /&gt;This is MC/ServiceGuard right?  You've tested cluster and LAN failovers right?&lt;BR /&gt;&lt;BR /&gt;Attach your cluster.ascii file also run and attach the cmscancl and cmviewcl -v reports.&lt;BR /&gt;</description>
      <pubDate>Fri, 21 Mar 2003 16:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932076#M709782</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-03-21T16:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Failover database application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932077#M709783</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;Frederick has a point.&lt;BR /&gt;&lt;BR /&gt;However, you cannot use /dev/vg00/lvuv and you must define another disk in a seperate vg that is shared across both the systems. Though you wouldn't use it on the primary ever, since this is a two node cluster, you don't have much choice.&lt;BR /&gt;&lt;BR /&gt;Then you will have to write quite some scripting to achieve it&lt;BR /&gt;.&lt;BR /&gt;Your test package should constantly be monitoring the original package. If it finds either the node or the package down|halting status, it should go down itself. It is achieved by defining the monitoring script as a service. Put a loop in there that checks for the primary node and package continuously and exits if it doesn't find. Once ServiceGuard finds the script (service) not running anymore, it will bring down the package and hence the logical volume.&lt;BR /&gt;&lt;BR /&gt;Do not keep any code in the startup and shutdown procedures. This will ensure speedy shutdown of the package.&lt;BR /&gt;&lt;BR /&gt;Also define only one node which is the failover node  in the package configuration file.&lt;BR /&gt;&lt;BR /&gt;Do thorough testing before implementing it into production.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Mar 2003 00:14:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932077#M709783</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-03-22T00:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Failover database application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932078#M709784</link>
      <description>Sridhar's absolutely right.  You can mount anything from vg00.</description>
      <pubDate>Sat, 22 Mar 2003 13:48:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932078#M709784</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-03-22T13:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Failover database application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932079#M709785</link>
      <description>Sridhar's absolutely right.  You can't mount anything from vg00.</description>
      <pubDate>Sat, 22 Mar 2003 13:48:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932079#M709785</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-03-22T13:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Failover database application</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932080#M709786</link>
      <description>Thanks to both of you. I now understand what I'll need to do, and unfortunately, it's not going to be easy enough to fit it into my schedule anytime soon. Thanks again for all the help!&lt;BR /&gt;&lt;BR /&gt;Gary</description>
      <pubDate>Mon, 24 Mar 2003 16:05:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/failover-database-application/m-p/2932080#M709786</guid>
      <dc:creator>Gary Hines</dc:creator>
      <dc:date>2003-03-24T16:05:41Z</dc:date>
    </item>
  </channel>
</rss>

