Veritas-bu

[Veritas-bu] bpbackupdb confirmation

2002-05-22 15:31:25
Subject: [Veritas-bu] bpbackupdb confirmation
From: david AT datastaff DOT com (David A. Chapa)
Date: Wed, 22 May 2002 15:31:25 -0400
Here's what I would do:  

1. Terminate the request daemon.
2. Check for running jobs.
3. If there are running jobs, sleep.
4. If there are no jobs, then run bpbackupdb.

PS. You may also want to put some logic in there to check for duplication jobs 
as well.

David

---BEGIN CODE SAMPLE---
bprdreq -terminate      

bpdbjobs -M <master> -report | egrep -i "Active" > /dev/null 2>&1
JOBS=$?
until [ $NOJOBS -ne 0 ]
do
 echo "Checking Jobs"
 sleep 300
 bpdbjobs -M <master> report | egrep -i "Active" >/dev/null 2>&1
 NOJOBS=$?
done
bpbackupdb
initbprd
#
---END CODE SAMPLE---

Quoting "Raghavan, Shyam" <Shyam.Raghavan AT weac DOT com>:

> David,
> 
> Interesting. that was a good piece of information. I have been running the
> Netbackup DB backup through Cron and occasionally, when people run manual
> backups,  it used to run the backup job  along with the DB backup.
> 
> If that is not a normal operation, then I would like to know how do I
> suspend the request daemon 
> 
> Thanks,
> Shyam.
> 
> 
> 
> -----Original Message-----
> From: david AT dsihost-srv01 DOT com [mailto:david AT dsihost-srv01 DOT com]
> Sent: Wednesday, May 22, 2002 9:59 AM
> To: Whelan, Patrick
> Cc: Veritas-Bu (E-mail)
> Subject: Re: [Veritas-bu] bpbackupdb confirmation
> 
> 
> Patrick, 
> 
> The primary difference is this.
> 
> When NBU runs it via its automatic schedule, it causes bprd to suspend its 
> ability to submit any jobs to the queue (actually it suspends its ability
> to
> 
> wake-up bpsched that looks for something to do).  So if no backup jobs are 
> running then your database will be in a quieted state suitable for a proper
> 
> backup.  
> 
> When you run it manually, bprd is not suspended and jobs may potentially be
> 
> submitted during the backup putting it in a questionable state.  You will
> have 
> to manually suspend the request daemon.
> 
> David
> 
> 
> 
> Quoting "Whelan, Patrick" <Patrick.Whelan AT commerzbankib DOT com>:
> 
> > Can someone please explain what differences there are between running
> > bpbackupdb manually and letting NBU run it. Also is there a difference
> from
> > running it from session_notify or cron? Any help would be greatly
> > appreciated.
> > 
> > 
> > Patrick Whelan
> > Commerzbank
> > Frankfurt, Germany
> > +49 69 136.44927
> > 
> > Of all the things I've lost, I miss my mind the most.
> > 
> > _______________________________________________
> > 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
> 




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