Veritas-bu

[Veritas-bu] Multiple data stream and bpend_notify script

2005-11-08 11:57:18
Subject: [Veritas-bu] Multiple data stream and bpend_notify script
From: Asiye.Yigit AT gantek DOT com (Asiye Yiğit)
Date: Tue, 8 Nov 2005 18:57:18 +0200
Hi Mark,
The following is perfect! Thanks to you, I have understood
The logic of the variables, STREAM_NUMBER, STREAM_COUNT. 
Best regards,

Asiye Yigit


-----Original Message-----
From: Mark.Donaldson AT cexp DOT com [mailto:Mark.Donaldson AT cexp DOT com] 
Sent: Tuesday, November 08, 2005 6:33 PM
To: Asiye.Yigit AT gantek DOT com; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Multiple data stream and bpend_notify script


As I think about this, you need something that compensates if this is a
single-streamed job, STREAM_COUNT, if I recall correctly, is set to 0 if
allow-multiple-streams is not set.

if [ $STREAM_COUNT -gt 0 ]
then
  echo $STREAM_NUMBER >> /tmp/countfile
  if [ `wc -l /tmp/countfile | awk '{print $1}'` -ge $STREAM_COUNT ]
  then
    echo "Last stream"
    rm /tmp/countfile
    <run end-of-job-stuff>
  fi
else 
  <run end-of-job-stuff>
fi

-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of
Mark.Donaldson AT cexp DOT com
Sent: Tuesday, November 08, 2005 9:19 AM
To: Asiye.Yigit AT gantek DOT com; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Multiple data stream and bpend_notify script


In unix, I do this with what I call a "count" file.

As each stream ends, it writes appends a line to a common file.  The
script then checks the number of lines in the file and compares it
against the "STREAM_COUNT" variable.  If they match then the end-job is
run & the count file removed.

Beats me how to do this in MS Batch files but here's my script's logic:

echo $STREAM_NUMBER >> /tmp/countfile
if [ `wc -l /tmp/countfile | awk '{print $1}'` -eq $STREAM_COUNT ] then
  echo "Last stream"
  rm /tmp/countfile
  <run end-of-job-stuff>
fi


There's some additional logic in the bpstart_notify script to check for
an old countfile that's gotten "lost" because a previous stream ended
without running it bpend_notify script.  This, of course, may lead to
the end-of-job startup stuff not running.  Usually, for me, that's not
an issue.

-M

-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of Asiye Yigit
Sent: Tuesday, November 08, 2005 2:37 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Multiple data stream and bpend_notify script


Hi gurus,

We have a file system backup. It is being backuped as multiple data
stream. We are backing up offline sql backup. So, in the bpend_notify
script, There is start command to start sql after finishing backup. As
there are multiple data stream, after completion of each data stream, Nb
run bpend_notify script. We have to instruct the script, There are
multiple data stream. In fact, in the admin guide, We have found some
variables to support multiple data stream: STREAM_NUMBER STREAM_COUNT

However, I do not know how can I use these variables in my bpend_notify
script. Does  "Set STREAM_NUMBER=1"  work? I am not sure. How can I tell
the script, This backup is being backed up via multiple data stream.
Please wait?

Is there any idea about that? I would appreciate if you could help me.

Regards,

Asiye


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