Re: [Bacula-users] eject DLT
2008-09-27 23:49:46
> Hello all... I'm a recent convert to Bacula after having used Legato
> Networker (now EMC). I've pretty much got Bacula doing everything that
I
> had Legato doing with one exception, "ejecting" my DLT-7000 drive.
When a
> tape was full, Legato would not only unmount the volume, but also send
a
> command to the drive to unload the tape (as if someone had pressed the
> unload button on the drive).
>
> Can anyone suggest how I might get Bacula to do the same?
>
There is an 'offline on unmount' setting which I think may do what you
want, and is documented in
http://www.bacula.org/en/rel-manual/Storage_Daemon_Configuratio.html
For me though, that never quite did the trick as I didn't want the tape
always ejected whenever I issued an unmount command, so I use a 'Run
After Job' command as part of the last job in the nightly backup batch.
The script that is executed is this ('scuse the line wrapping):
"
#!/bin/sh
echo "unmount storage=bitvs2-tape-sd" | /usr/bin/bconsole -c
/etc/bacula/bconsole.conf
/bin/mt -f /dev/nst0 eject 2>/dev/null >/dev/null
echo "mount storage=bitvs2-tape-sd" | /usr/bin/bconsole -c
/etc/bacula/bconsole.conf
"
I think I put the 'mount' command in so that Bacula knows that the tape
drive is ready for use again. Otherwise it remained unmounted and bacula
wouldn't touch it.
Because I run concurrent spooled backups, I have an admin job execute
the command which runs with a lower priority (higher number) and
therefore only gets executed when all the jobs with a higher priority
have finished.
hth.
James
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|