Hi,
Jimmy Cartrette wrote:
Arno,
Most of your suggestions helped alot, but now I ran into another gotcha.
Now the restore part is almost completely automated, but here's the
problem: If no tape is 'mounted' in bacula, the operator never gets the
email to put the correct tape in. If I put in (random tape) and mount
it, then the operator gets the email to put in the right tape. Do you or
anybody else know of any way around this?
No, I don't know a simple solution. The problem is that, when a device
is unmounted, bacula assumes that the user knew what he did :-)
If, like in your case, the unmount is not exactly a user requested one,
this is indeed a gotcha...
My first idea was that bacula should probably generate a mount request
even if a device was unmounted. This would require some code change, of
course, and I'm not sure if I myself like this - after all, the unmount
is the result of operator intervention and setup and thus not an
irregular condition. Well, you could try to patch bacula yourself, I
suppose.
My other idea was a little more complicated, and I don't know if this is
possible.
Use a run before script with your restore job. That script would spawn a
background job which sleeps for a while, the reads the storage daemons
status, determines if the device is unmounted, and if it is mounts it.
This should rsult in an operator message, I think, because even if
there's no tape in the drive bacula then decides that it needs help.
Just a Sunday-evening-idea :-)
Arno
Arno Lehmann wrote:
Hi,
Jimmy Cartrette wrote:
Arno,
These customers are not the most technically feasible people, and I
balk at them actually using a console program to do restores.
I won't argue here...
They were previously using a graphical Arcserve program under
Netware. I really don't want to make them open up another wx-console
and type mount, but from what I understand this might be what I have
to do.
Let's wait if someone with more experience in using the
wx-consolesrestore mode is around. It's quite possible that there will
be a better solution, if not now, then later.
I'm not certain, but I think that the right combination of the device
settings in the SD configuration might help you - I'm thinking about
Always Open, Volume Poll Interval, Close on Poll and Offline on
Unmount. You might try playing with those.
What I've done so far is added the Max Wait Time directive, and
changed the cron jobs to "RunBeforeScript" and "RunAfterScript" to do
the mounting/unmounting and labeling of Friday's tapes.
That sounds better. By the way, following my above suggestion these
might be (partly) unnecessary.
..........
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users