Veritas-bu

[Veritas-bu] NetBackup and Virtual Name

2002-10-17 11:05:13
Subject: [Veritas-bu] NetBackup and Virtual Name
From: Mark.Donaldson AT experianems DOT com (Donaldson, Mark)
Date: Thu, 17 Oct 2002 09:05:13 -0600
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C275EE.97F8B3C0
Content-Type: text/plain

You could backup both servers daily, each using the same pre-backup script
(../netbackup/bin/bpstart_notify.classname).  The script on the server with
the DB sets the DB into backup mode, the other script exits with a non-zero
return code which would kill the backup job with an error.

The hazard is that you'd get a daily error from the non-active server that
you'd have to get into the habit of ignoring - and ignoring one error can
lead to bad habits when there may reason for valid concern.

This'll look something like this:

#!/bin/ksh
if [ `mount | grep -c <failover_filesystem>` -eq 0 ]
then
  #No filesystem here means nothing to backup
  exit 1
else
  #DB is local to this box
  call DB preparation scheme
fi
exit


You might also backup both servers using an include_list that's actively set
when the backup job starts:

#!/bin/ksh
if [ `mount | grep -c <failover_filesystem>` -eq 0 ]
then
  #No filesystem here means nothing to backup
  #backup a dummy file to keep from getting errors (note, wastes a bit of
tape)
  echo "/etc/dummyfile" > /usr/openv/netbackup/include_list.class_name
else
  #DB is local to this box
  #Assuming Veritas VxVM disk group for failover method
  mount | awk '$3~/VxDG_Name/ {print $1}' >
/usr/openv/netbackup/include_list.class_name
  call DB preparation scheme
fi
exit

Anyway, there's probably more options - these are just quick off the top of
my head.  Drop a line if you need help.
-Mark

-----Original Message-----
From: Hocker, Don [mailto:dhocker AT adexisstorage DOT com]
Sent: Tuesday, October 15, 2002 11:33 AM
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: [Veritas-bu] NetBackup and Virtual Name


I currently attempting to backup a Solaris Sybase Cluster, with NetBackup
4.5.  I have virtual server called sybase1, that fails between Server1 and
Server2, I need to backup the database regardless of where it is at, would
like to know how to complete this without an agent.  

My thought process is a script that will df-k or ps -ef for and generate an
exit code for the process.  ANY EXAMPLE SCRIPTS are welcome.

DonH 
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

------_=_NextPart_001_01C275EE.97F8B3C0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Veritas-bu] NetBackup and Virtual Name</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>You could backup both servers daily, each using the =
same pre-backup script =
(../netbackup/bin/bpstart_notify.classname).&nbsp; The script on the =
server with the DB sets the DB into backup mode, the other script exits =
with a non-zero return code which would kill the backup job with an =
error.</FONT></P>

<P><FONT SIZE=3D2>The hazard is that you'd get a daily error from the =
non-active server that you'd have to get into the habit of ignoring - =
and ignoring one error can lead to bad habits when there may reason for =
valid concern.</FONT></P>

<P><FONT SIZE=3D2>This'll look something like this:</FONT>
</P>

<P><FONT SIZE=3D2>#!/bin/ksh</FONT>
<BR><FONT SIZE=3D2>if [ `mount | grep -c &lt;failover_filesystem&gt;` =
-eq 0 ]</FONT>
<BR><FONT SIZE=3D2>then</FONT>
<BR><FONT SIZE=3D2>&nbsp; #No filesystem here means nothing to =
backup</FONT>
<BR><FONT SIZE=3D2>&nbsp; exit 1</FONT>
<BR><FONT SIZE=3D2>else</FONT>
<BR><FONT SIZE=3D2>&nbsp; #DB is local to this box</FONT>
<BR><FONT SIZE=3D2>&nbsp; call DB preparation scheme</FONT>
<BR><FONT SIZE=3D2>fi</FONT>
<BR><FONT SIZE=3D2>exit</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>You might also backup both servers using an =
include_list that's actively set when the backup job starts:</FONT>
</P>

<P><FONT SIZE=3D2>#!/bin/ksh</FONT>
<BR><FONT SIZE=3D2>if [ `mount | grep -c &lt;failover_filesystem&gt;` =
-eq 0 ]</FONT>
<BR><FONT SIZE=3D2>then</FONT>
<BR><FONT SIZE=3D2>&nbsp; #No filesystem here means nothing to =
backup</FONT>
<BR><FONT SIZE=3D2>&nbsp; #backup a dummy file to keep from getting =
errors (note, wastes a bit of tape)</FONT>
<BR><FONT SIZE=3D2>&nbsp; echo &quot;/etc/dummyfile&quot; &gt; =
/usr/openv/netbackup/include_list.class_name</FONT>
<BR><FONT SIZE=3D2>else</FONT>
<BR><FONT SIZE=3D2>&nbsp; #DB is local to this box</FONT>
<BR><FONT SIZE=3D2>&nbsp; #Assuming Veritas VxVM disk group for =
failover method</FONT>
<BR><FONT SIZE=3D2>&nbsp; mount | awk '$3~/VxDG_Name/ {print $1}' &gt; =
/usr/openv/netbackup/include_list.class_name</FONT>
<BR><FONT SIZE=3D2>&nbsp; call DB preparation scheme</FONT>
<BR><FONT SIZE=3D2>fi</FONT>
<BR><FONT SIZE=3D2>exit</FONT>
</P>

<P><FONT SIZE=3D2>Anyway, there's probably more options - these are =
just quick off the top of my head.&nbsp; Drop a line if you need =
help.</FONT>
<BR><FONT SIZE=3D2>-Mark</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Hocker, Don [<A =
HREF=3D"mailto:dhocker AT adexisstorage DOT com">mailto:[email protected]=
om</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, October 15, 2002 11:33 AM</FONT>
<BR><FONT SIZE=3D2>To: 'veritas-bu AT mailman.eng.auburn DOT edu'</FONT>
<BR><FONT SIZE=3D2>Subject: [Veritas-bu] NetBackup and Virtual =
Name</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>I currently attempting to backup a Solaris Sybase =
Cluster, with NetBackup</FONT>
<BR><FONT SIZE=3D2>4.5.&nbsp; I have virtual server called sybase1, =
that fails between Server1 and</FONT>
<BR><FONT SIZE=3D2>Server2, I need to backup the database regardless of =
where it is at, would</FONT>
<BR><FONT SIZE=3D2>like to know how to complete this without an =
agent.&nbsp; </FONT>
</P>

<P><FONT SIZE=3D2>My thought process is a script that will df-k or ps =
-ef for and generate an</FONT>
<BR><FONT SIZE=3D2>exit code for the process.&nbsp; ANY EXAMPLE SCRIPTS =
are welcome.</FONT>
</P>

<P><FONT SIZE=3D2>DonH </FONT>
<BR><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Veritas-bu maillist&nbsp; -&nbsp; =
Veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu"; =
TARGET=3D"_blank">http://mailman.eng.auburn.edu/mailman/listinfo/veritas=
-bu</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C275EE.97F8B3C0--

<Prev in Thread] Current Thread [Next in Thread>