SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Auto update slots on mount
Author Message
Post Auto update slots on mount 
Hi,

Quick question: Is it possible to tell Bacula to do an "update slots" automatically whenever it has to mount a new tape from the autochanger?


Why:  Some times bacula requests tapes that are not in the changer during a job. The manual procedure is to 


- Unmount/release (not quite needed, as it is already unmounted by then)
- Remove/insert new labeled tapes
- Update slots 
- Let Bacula do the mounting on next try, ou mount manually.


I want to just load/unload tapes on the changer upon request, and let bacula do the rest, so I need bacula to do an "update slots" every time it mounts a tape, while in the middle of a job.


Pre job scripts won't do it, as this happens inside a job.


Any ideias?


Thanks!

Post Auto update slots on mount 
2012/1/16 Miguel Afonso <mafonso < at > gmail.com>:
Hi,

Quick question: Is it possible to tell Bacula to do an "update
slots" automatically whenever it has to mount a new tape from the
autochanger?

Why:  Some times bacula requests tapes that are not in the changer during a
job. The manual procedure is to

- Unmount/release (not quite needed, as it is already unmounted by then)
- Remove/insert new labeled tapes
- Update slots
- Let Bacula do the mounting on next try, ou mount manually.

I want to just load/unload tapes on the changer upon request, and let bacula
do the rest, so I need bacula to do an "update slots" every time it mounts a
tape, while in the middle of a job.

Pre job scripts won't do it, as this happens inside a job.

Any ideias?

How would bacula know you changed the tape in the archive unless you
told it to update slots? I guess you can run a job that issues an
update slots every 5 minutes but that would be wasteful and could get
you into trouble if the autochanger was initializing.

John

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

View user's profile Send private message
Post Auto update slots on mount 
If the command was issued before the mount command, which in turn triggers the Autochanger change script,
that would not be a problem. Either there would be no change to the slots, or the newly inserted tapes would be identified as being on the changer.


When bacula can't find a tape in the changer (slot=0) with sends an email (once an hour?) requesting manual intervention. 
I was hopping it could be done via a script called before the email bacula sends this email. 


I believe it was just a matter of trying a last resort update before requesting manual assistance.


I thought of the crontab solution as well, but I'm afraid it can cause some unexpected disruption. But I might try it if can't find a cleaner way of doing it. 


Miguel


On Mon, Jan 16, 2012 at 7:12 PM, John Drescher <drescherjm < at > gmail.com ([email]drescherjm < at > gmail.com[/email])> wrote:



How would bacula know you changed the tape in the archive unless you
told it to update slots? I guess you can run a job that issues an
update slots every 5 minutes but that would be wasteful and could get
you into trouble if the autochanger was initializing.

John


Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB