Veritas-bu

[Veritas-bu] Can I stop bprd while backups are running?

2001-02-09 09:41:56
Subject: [Veritas-bu] Can I stop bprd while backups are running?
From: David A. Chapa david AT datastaff DOT com
Date: Fri, 9 Feb 2001 08:41:56 -0600
Depends on how you are stopping it.

if you are using bprdreq -terminate, then it will terminate only if it has
completed all of its transactions.  If you kill -9 then that's a different
story.

My question would be this:

Why not, after the bpdbjobs check for active jobs and finds NONE, don't you
just kick off a bpbackupdb then?  That should handle the problem of whether
or not subsequent backup jobs will be submitted or not.

I've been trying to test this out for you, but my test box is ill.

I was going to simply test:

1.  bpdbjobs returns no active jobs
2.  run bpbackupdb
3.  then try to initiate a manual or schedule backup to see if they are
    submitted or do they wait until the bpbackupdb has completed.

If I can get to it and try it on my HP/UX box, I will.  The only problem I
see is if you have a need to do a restore while the bpbackupdb is running
you will be unable to do so because bprd is down.

David

-----Original Message-----
From: veritas-bu-admin AT Eng.Auburn DOT EDU
[mailto:veritas-bu-admin AT Eng.Auburn DOT EDU]On Behalf Of W. Curtis Preston
Sent: Thursday, February 08, 2001 3:35 PM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Can I stop bprd while backups are running?


This question pertains to the database backup script that I'm almost done
with.  (It supports the 'my database is too big for a tape' workaround, and
consists of five main steps:

1. Wait until there are no queued or active jobs
2. Backup a class that backs up all of /usr/openv
3. Stop bprd
4. Run bpbackupdb
5. Start bprd

What I'd like to do is this:

1. Wait until there are no queued or active jobs
2. Run the class that backs up all of /usr/openv (without the -w switch)
3. Use bpdbjobs to verify the class is active
4. Stop bprd
5. Use bpdbjobs to verify that no other jobs went active.  If they did,
I'll start all over.
    (The running of the class is mainly meant to back up the indexes OTHER
     than the master server's index.  This class will modify the master
server's
     index and the media index, but they will be backed up by bpbackupdb.
     However, by stopping any OTHER classes from running, we can ensure
     that the OTHER indexes (/usr/openv/netbackupd/db/images/*) are
     stable while we are backing them up.)
6. Use bpdbjobs to determine when the class is done
7. Run bpbackupdb
8. Start bprd

Does anyone see any problems with this plan?  I've actually tested this,
and backups that are already active seem to continue on, but


_______________________________________________
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>