Veritas-bu

[Veritas-bu] multiple streams and bpend

2002-07-09 10:54:49
Subject: [Veritas-bu] multiple streams and bpend
From: Mark.Donaldson AT experianems DOT com (Donaldson, Mark)
Date: Tue, 9 Jul 2002 08:54:49 -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_01C22758.92F5C1E0
Content-Type: text/plain;
        charset="iso-8859-1"

Have each stream write a character to a file, when "wc -c" of the file
reaches "STREAM_COUNT" then the last backup stream has completed.

-M

-----Original Message-----
From: Moughan, Laurence [mailto:Laurence.Moughan AT o2 DOT com]
Sent: Tuesday, July 09, 2002 4:03 AM
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: [Veritas-bu] multiple streams and bpend
Importance: High


follow up,

Thanks all the advice already, come up with this,

# start db server
#
echo "Stream Number = " $STREAM_NUMBER >>$OUTF 2>>$OUTF
if [ $STREAM_NUMBER -eq 10 ]
then
echo "Stream $STREAM_NUMBER , Starting db" >>$OUTF 2>>$OUTF   
echo "starting db server" >>$OUTF 2>>$OUTF
#su - dbuser -c /dbdir/dbstart >>$OUTF 2>>$OUTF
#
# might want to mail this info to someone
#
cat $OUTF | mailx -s "db backup finished" laurence.moughan AT o2 DOT com
#
else
echo "not stream 10, Not Starting db yet !!!" >>$OUTF 2>>$OUTF
cat $OUTF | mailx -s stream_info laurence.moughan AT o2 DOT com
fi
#
#
#
fi

exit 0

I assumed stream number 10 as last stream, as there are 10 file sys on the
server and using ALL_LAOCAL_DRIVES give 10 streams in the activity window.

However .

How do i know that stream 10 will finish last ???? 


Is there a better way to do this ? 

is there an ENV VAR for the class backup state ? rather than the stream
number ?? 

I need basically to know when the whole job has ended.

Thanks in advance for any guidnace here.


Laurence


-----Original Message-----
From: Moughan, Laurence 
Sent: 09 July 2002 08:58
To: 'veritas-bu AT mailman.eng.auburn DOT edu'
Subject: RE: Veritas-bu digest, Vol 1 #1401 - 9 msgs
Importance: High


Hi all,


I am using bpstart_notify to stop a db, however when using n multiple
streams, i get n times the emails notification of the script./ I have
commented out the db stop - until i can be sure this actually will happen
only once ! - anyone seen\ solved this issue ??

Same for the bpend_notify - wher i want a db start ! ( once only though !))


----------

Also just installed a hpux10.20 client from my solaris 2.7 server - running
a test full sys backup - and see no % complete details in the acitvity mon -
however see tape winds and pathname details of the bacjup - any clues ??


Thanks


Laurence


****************************************************************************
************

This E-mail is from O2. The E-mail and any files
transmitted with it are confidential and may also be privileged and intended
solely for the use of the individual or entity to whom they are addressed.
Any unauthorised direct or indirect dissemination, distribution or copying
of this message and any attachments is strictly prohibited. If you have
received the E-mail in error please notify postmaster AT O2 DOT com or 
                  telephone ++ 353 1 6095000.

****************************************************************************
*************

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

------_=_NextPart_001_01C22758.92F5C1E0
Content-Type: text/html;
        charset="iso-8859-1"
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=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Veritas-bu] multiple streams and bpend</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Have each stream write a character to a file, when =
&quot;wc -c&quot; of the file reaches &quot;STREAM_COUNT&quot; then the =
last backup stream has completed.</FONT></P>

<P><FONT SIZE=3D2>-M</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Moughan, Laurence [<A =
HREF=3D"mailto:Laurence.Moughan AT o2 DOT com">mailto:Laurence.Moughan AT o2 
DOT com</=
A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, July 09, 2002 4:03 AM</FONT>
<BR><FONT SIZE=3D2>To: 'veritas-bu AT mailman.eng.auburn DOT edu'</FONT>
<BR><FONT SIZE=3D2>Subject: [Veritas-bu] multiple streams and =
bpend</FONT>
<BR><FONT SIZE=3D2>Importance: High</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>follow up,</FONT>
</P>

<P><FONT SIZE=3D2>Thanks all the advice already, come up with =
this,</FONT>
</P>

<P><FONT SIZE=3D2># start db server</FONT>
<BR><FONT SIZE=3D2>#</FONT>
<BR><FONT SIZE=3D2>echo &quot;Stream Number =3D &quot; $STREAM_NUMBER =
&gt;&gt;$OUTF 2&gt;&gt;$OUTF</FONT>
<BR><FONT SIZE=3D2>if [ $STREAM_NUMBER -eq 10 ]</FONT>
<BR><FONT SIZE=3D2>then</FONT>
<BR><FONT SIZE=3D2>echo &quot;Stream $STREAM_NUMBER , Starting db&quot; =
&gt;&gt;$OUTF 2&gt;&gt;$OUTF&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=3D2>echo &quot;starting db server&quot; &gt;&gt;$OUTF =
2&gt;&gt;$OUTF</FONT>
<BR><FONT SIZE=3D2>#su - dbuser -c /dbdir/dbstart &gt;&gt;$OUTF =
2&gt;&gt;$OUTF</FONT>
<BR><FONT SIZE=3D2>#</FONT>
<BR><FONT SIZE=3D2># might want to mail this info to someone</FONT>
<BR><FONT SIZE=3D2>#</FONT>
<BR><FONT SIZE=3D2>cat $OUTF | mailx -s &quot;db backup finished&quot; =
laurence.moughan AT o2 DOT com</FONT>
<BR><FONT SIZE=3D2>#</FONT>
<BR><FONT SIZE=3D2>else</FONT>
<BR><FONT SIZE=3D2>echo &quot;not stream 10, Not Starting db yet =
!!!&quot; &gt;&gt;$OUTF 2&gt;&gt;$OUTF</FONT>
<BR><FONT SIZE=3D2>cat $OUTF | mailx -s stream_info =
laurence.moughan AT o2 DOT com</FONT>
<BR><FONT SIZE=3D2>fi</FONT>
<BR><FONT SIZE=3D2>#</FONT>
<BR><FONT SIZE=3D2>#</FONT>
<BR><FONT SIZE=3D2>#</FONT>
<BR><FONT SIZE=3D2>fi</FONT>
</P>

<P><FONT SIZE=3D2>exit 0</FONT>
</P>

<P><FONT SIZE=3D2>I assumed stream number 10 as last stream, as there =
are 10 file sys on the</FONT>
<BR><FONT SIZE=3D2>server and using ALL_LAOCAL_DRIVES give 10 streams =
in the activity window.</FONT>
</P>

<P><FONT SIZE=3D2>However .</FONT>
</P>

<P><FONT SIZE=3D2>How do i know that stream 10 will finish last ???? =
</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Is there a better way to do this ? </FONT>
</P>

<P><FONT SIZE=3D2>is there an ENV VAR for the class backup state ? =
rather than the stream</FONT>
<BR><FONT SIZE=3D2>number ?? </FONT>
</P>

<P><FONT SIZE=3D2>I need basically to know when the whole job has =
ended.</FONT>
</P>

<P><FONT SIZE=3D2>Thanks in advance for any guidnace here.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Laurence</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Moughan, Laurence </FONT>
<BR><FONT SIZE=3D2>Sent: 09 July 2002 08:58</FONT>
<BR><FONT SIZE=3D2>To: 'veritas-bu AT mailman.eng.auburn DOT edu'</FONT>
<BR><FONT SIZE=3D2>Subject: RE: Veritas-bu digest, Vol 1 #1401 - 9 =
msgs</FONT>
<BR><FONT SIZE=3D2>Importance: High</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hi all,</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>I am using bpstart_notify to stop a db, however when =
using n multiple</FONT>
<BR><FONT SIZE=3D2>streams, i get n times the emails notification of =
the script./ I have</FONT>
<BR><FONT SIZE=3D2>commented out the db stop - until i can be sure this =
actually will happen</FONT>
<BR><FONT SIZE=3D2>only once ! - anyone seen\ solved this issue =
??</FONT>
</P>

<P><FONT SIZE=3D2>Same for the bpend_notify - wher i want a db start ! =
( once only though !))</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>----------</FONT>
</P>

<P><FONT SIZE=3D2>Also just installed a hpux10.20 client from my =
solaris 2.7 server - running</FONT>
<BR><FONT SIZE=3D2>a test full sys backup - and see no % complete =
details in the acitvity mon -</FONT>
<BR><FONT SIZE=3D2>however see tape winds and pathname details of the =
bacjup - any clues ??</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Thanks</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Laurence</FONT>
</P>
<BR>

<P><FONT =
SIZE=3D2>***************************************************************=
*************************</FONT>
</P>

<P><FONT SIZE=3D2>This E-mail is from O2. The E-mail and any =
files</FONT>
<BR><FONT SIZE=3D2>transmitted with it are confidential and may also be =
privileged and intended</FONT>
<BR><FONT SIZE=3D2>solely for the use of the individual or entity to =
whom they are addressed.</FONT>
<BR><FONT SIZE=3D2>Any unauthorised direct or indirect dissemination, =
distribution or copying</FONT>
<BR><FONT SIZE=3D2>of this message and any attachments is strictly =
prohibited. If you have</FONT>
<BR><FONT SIZE=3D2>received the E-mail in error please notify =
postmaster AT O2 DOT com or </FONT>
<BR><FONT =
SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; telephone ++ 353 1 =
6095000.</FONT>
</P>

<P><FONT =
SIZE=3D2>***************************************************************=
**************************</FONT>
</P>

<P><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_01C22758.92F5C1E0--

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